Hello! Freinds,
I want to set different color whenever draw() loop is executed. Am using this newly created color to set color for the curves. I am trying to increment, decrement the rgb values
say by 1 or 2 but not that much noticeable change Also they shouldn't cross their limit i.e. 0-255.
draw()
{ // r = 10; g = 255; & b = 180; are static & set previously
color.setRgb(r,g,b);
..
... // using the color
....
r += 2;
g -= 5;
b -= 8;
}
draw()
{ // r = 10; g = 255; & b = 180; are static & set previously
color.setRgb(r,g,b);
..
... // using the color
....
r += 2;
g -= 5;
b -= 8;
}
To copy to clipboard, switch view to plain text mode
Can anyone please give me a hint how to solve this.
Thanks in advance.
Bookmarks