Skip to content

Instantly share code, notes, and snippets.

@yoggy
Created June 10, 2015 12:24
Show Gist options
  • Select an option

  • Save yoggy/cbda0421908a92bb4795 to your computer and use it in GitHub Desktop.

Select an option

Save yoggy/cbda0421908a92bb4795 to your computer and use it in GitHub Desktop.
void setup() {
size(200, 200);
}
void draw() {
background(255);
strokeWeight(3);
stroke(0, 255, 0);
for (int i = 0; i < width; i+=20) {
line(i, 0, i, height);
}
stroke(0, 0, 255);
for (int i = 0; i < height; i+=20) {
line(0, i, width, i);
}
stroke(255, 0, 0);
noFill();
rect(1, 1, width-3, height-3);
stroke(255, 0, 0);
fill(255, 255, 255);
rect(16, 54, 169, 102);
fill(0, 0, 0);
textFont(createFont("Impact", 52));
text("DUMMY", 22, 108);
textFont(createFont("Impact", 30));
text("200x200", 47, 146);
}
void keyPressed() {
if (key == 's') {
save("dummy_200x200.png");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment