mirror of
https://github.com/processing/processing4.git
synced 2026-02-02 21:29:17 +01:00
23 lines
372 B
Plaintext
23 lines
372 B
Plaintext
/**
|
|
* Width and Height.
|
|
*
|
|
* The 'width' and 'height' variables contain the width and height
|
|
* of the display window as defined in the size() function.
|
|
*/
|
|
|
|
void setup() {
|
|
size(640, 360);
|
|
}
|
|
|
|
void draw() {
|
|
background(127);
|
|
noStroke();
|
|
for (int i=0; i<height; i+=20) {
|
|
fill(0);
|
|
rect(0, i, width, 10);
|
|
fill(255);
|
|
rect(i, 0, 10, height);
|
|
}
|
|
}
|
|
|