Need help with Color program!
in
Programming Questions
•
10 months ago
Hey everybody!
I made some code that was supposed to cycle through the color saturations of Red, but when I run it, the screen just stays grey. Nothing happens! Please help!
Code:
I made some code that was supposed to cycle through the color saturations of Red, but when I run it, the screen just stays grey. Nothing happens! Please help!
Code:
- void setup() {
size(480, 480);
}
void draw() {
for (int i = 0; i < 256; i++) {
fill(i, 0, 0);
rect(240, 240, 50, 50);
delay(500);
}
}
1