We are about to switch to a new forum software. Until then we have removed the registration on this forum.
My code is something like this:
stroke(random([0,255]),random([0,255]),random([0,255]));
Now, what I want is to eliminate the possibility of getting stroke(0,0,0) here. I know I can do this with a condition, something like:
if (Stroke.value() == [0,0,0]){...}
but that doesn't exist.
Can someone tell me the correct way to do this?
Answers
Instead of random([0,255] do random([1,255].
Kf
@kfrajer
[1,1,1] on a black background will look pretty terrible.
@GoToLoop That's not what I asked...
Elaboration of question:
this will have 8 possible outcomes: red, green, blue, yellow, blue-green, violet, white and black.
What I want to do, is get only the other 7 colours as the output.
https://OpenProcessing.org/sketch/427034
Got the idea. Thanks!