Changing parameters on the fly
in
Programming Questions
•
2 years ago
I do a lot of image pixel manipulation sketches.
So i create colours a lot using e.g color k = color(c/2,c*2,c/2,c/2);
Now how do I change this on the fly so I can say k = color (c/3,c,c/4,c/3);
...without declaring fixed colours, and selecting the variables I already have present ?
So i create colours a lot using e.g color k = color(c/2,c*2,c/2,c/2);
Now how do I change this on the fly so I can say k = color (c/3,c,c/4,c/3);
...without declaring fixed colours, and selecting the variables I already have present ?
1