Skip to content

Instantly share code, notes, and snippets.

@kunishi
Last active July 21, 2017 06:41
Show Gist options
  • Save kunishi/42f1782c5bf261c5cdf4038c73950879 to your computer and use it in GitHub Desktop.
Save kunishi/42f1782c5bf261c5cdf4038c73950879 to your computer and use it in GitHub Desktop.
float X;
void setup() {
size(200, 200);
colorMode(RGB, 100);
background(99);
X = 0;
}
void draw() {
noStroke();
fill(99, 30);
rect(0, 0, width, height);
X = X + 1.0;
noStroke();
fill(0);
rect(X, 100, 10, 10);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment