noisejs icon indicating copy to clipboard operation
noisejs copied to clipboard

Why does the demo have sharp steps in the color?

Open donpinkus opened this issue 7 years ago • 1 comments

If you look at the demo (https://josephg.com/perlin/3/) you will see distinct step changes in the color.

Why does this occur? How can it be prevented so the colors transition smoothly?

screen shot 2017-08-13 at 11 31 55 pm

donpinkus avatar Aug 14 '17 18:08 donpinkus

Notice the user uses HSLA instead of RGBA image

hsla is a different color scheme than rgba, (hue,light,saturation,alpha and red, green, blue, alpha)

hsla changes really quickly and i guess the colors last quite long image

In case you're wondering, saturation and light are given in percentages (%)

FIX ?: I'm not really sure, you could (maybe) use rgba instead of hsla, and initially change red, then after a certian interval change blue, after a certian interval change green, or something similar.

therealadityashankar avatar May 04 '18 16:05 therealadityashankar