FXGL icon indicating copy to clipboard operation
FXGL copied to clipboard

Images.kt Pixel data structure should limit rgba values in 0-1 range

Open AlmasB opened this issue 6 years ago • 2 comments

Some blend modes in Images.kt file can produce a value outside of the [0..1] range, resulting in Color.color() crashing.

A solution to this should figure out how to avoid this and whether changes to the Pixel data structure are necessary. In any case, the solution changes should only happen in Images.kt.

AlmasB avatar Dec 20 '19 21:12 AlmasB

Do you have steps to recreate this?

ross-holloway94 avatar Apr 07 '20 14:04 ross-holloway94

Good point, leave this with me to add a crashing sample.

AlmasB avatar Apr 07 '20 14:04 AlmasB