We are about to switch to a new forum software. Until then we have removed the registration on this forum.
colorMode() can set maximum values for rgb hsb gray alpha parameters, creating ranges between 0 and the given argument between 1 and 255. Can colorMode() also set minimum values for these parameters?
For example: how could I add a minimum value of 50 to the grayscale for this code? colorMode(RGB, 100)
Answers
@benw999999999 --
No, colorMode doesn't take a min argument:
What are you trying to express with RGB min 50, max 100? Would that mean that
background(50)
would draw black, andbackground(100)
would draw what? Or are you trying to have colors never go below a certain gray value...?I believe (?) that color math throughout Processing is zero-range based. Depending on what you are trying to do, might be easier to map your color inputs -- or normalize the into a 0-1.0 colorspace: