Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement