I was making something, but i noticed that i can't randomize with minimum. So i used that:
- Code: Select all
setpen(min(100,100)+rand(255), 0, 0, 0, 1);
It seems, work, the pen's color is random from 100 to 255. If someone is interested, can tell me is that the right way and if it exist another one.
I have to be sure c:
..Since i can randomize with minimum, i can make something to blink with rgb vars:
Or i can do something like: That should make an canvas blink with two colors.
- Code: Select all
int color
color = rand(255)
setpen(color, 0, 0, 0, 1);
if (color > 99) {
color = 255;
}
if (color < 100) {
color = 0;
}