mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 11:43:19 +08:00
`ColorEffect`'s API was a bit confusing because it used `Offset` for getting values of opacity start and end from user. This PR changes that to use optional `opacityFrom` and `opacityTo` double parameters. It also adds validate checks on these value to make sure that are between 0 and 1.