Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why does the demo have sharp steps in the color? #22

Open
donpinkus opened this issue Aug 14, 2017 · 1 comment
Open

Why does the demo have sharp steps in the color? #22

donpinkus opened this issue Aug 14, 2017 · 1 comment

Comments

@donpinkus
Copy link

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 donpinkus changed the title Why does the demo have clear steps in the color? Why does the demo have sharp steps in the color? Aug 14, 2017
@therealadityashankar
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants