I need to change randomly the color of a personal SVG sprite, in some known ranges of H,S,V.
I don't really understand what are the exact definitions of :
color effect
saturation effect
brightness effect
In the help of those blocks, you can find that those parameters are numbers from -100 to 100.
And I've read in this closed post :
The colour effect is the hue, which is why the sprites is red. The brightness effect is the brightness times two minus 100, and the saturation effect is 100 less than the saturation.
First, my sprite is not red at the beginning of the script...
Unfortunately, the fabulous new library colors and crayons doesn't help me.
Does anyone have the kindness to tell me how I can process ?
For each pixel in the costume, the effects say how much to add to that pixel's H, S, or V. So, a positive color effect causes a blue shift, like a star that's moving, umm, toward us, I think? But hues wrap around, so if the pixel starts out blue and you use a positive color effect, it could become red.
For the other two, bear in mind that a full-intensity spectral color has both S=100 and V=100, and you can't get any higher than that, so if your initial costume is a rainbow, it only makes sense to use negative effect values. But if some pixels are other than spectral colors, then positive saturation or brightness effect can make them more colorful.