leios / Fable.jl

General purpose animations via iterated function systems
MIT License
28 stars 4 forks source link

CPU sometimes out of bounds #9

Closed leios closed 1 year ago

leios commented 2 years ago

If creating a white object, sometimes the CPU will create an object that has an RGB slightly higher than (1,1,1) (like 1.001, 1.001, 1.001). This does not seem to happen on the GPU and is specific to the naive chaos kernel.

If I cannot find the error, I will just clamp the colors down to the 3rd sig fig

As an example, run examples/triangle.jl multiple times. It should appear eventually.

Maybe force all colors to be min(1, c) where c is the color

leios commented 1 year ago

This has been fixed in #24