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

Updating color palette of dots. #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sjavella
Copy link

I did a little testing with the RGB palette and noticed that the closer the values are in relative to each other the closer the color is to a grayscale palette(EX. R = 140, G = 140, B = 140; R = 24 G = 24, B = 24, etc. So to avoid that, I added new integers "p,w,v" that represent the difference between the RGB values to vary by at least 80. These "p,w,v" values are then inputted into the while parameter. Example: if R was at a value of 200, the green and blue value being outputted cannot be anything over 120, and if otherwise the values will be "re-rolled" at another value until the parameters are met.

Additionally, addressing the dot.isRGBNotWhite's parameters, since the greater the RGB values are the darker it is, these parameters are to avoid darker colors? I personally like that as an extra precaution to get rid of the grayscale colors in the darker area to avoid a "near-black" color. So in addition to parameters values of over 220, perhaps we can also add parameters that are less than something like 50 (or a smaller value) as they represent more of the "lighter" palette?

If we go through those changes of both not white, nor black, or a grayscale color in that matter LOL. Maybe we can rename the boolean function to like "isRGBNotGrayscale" or something like that.

I did a little testing with the RGB palette and noticed that the closer the values are in relative to each other the closer the color is to a grayscale palette(EX. R = 140, G = 140, B = 140; R = 24 G = 24, B = 24, etc. So to avoid that, I added new integers "p,w,v" that represent the difference between the RGB values to vary by at least 80. These "p,w,v" values are then inputted into the while parameter. Example: if R was at a value of 200, the green and blue value being outputted cannot be anything over 120, and if otherwise the values will be "re-rolled" at another value until the parameters are met.

Additionally, addressing the dot.isRGBNotWhite's parameters, since the greater the RGB values are the darker it is, these parameters are to avoid darker colors? I personally like that as an extra precaution to get rid of the grayscale colors in the darker area to avoid a "near-black" color. So in addition to parameters values of over 220, perhaps we can also add parameters that are less than something like 50 (or a smaller value) as they represent more of the "lighter" palette? 

If we go through those changes of both not white, nor black, or a grayscale color in that matter LOL. Maybe we can rename the boolean function to like "isRGBNotGrayscale" or something like that.
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

Successfully merging this pull request may close these issues.

1 participant