Advertisement
xeromino

nadia

May 11th, 2017
163
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void setup() {
  2.  
  3.   size(500, 500);
  4.  
  5.   background(255);
  6.  
  7.   rectMode(RADIUS);
  8. }
  9.  
  10. void draw() {
  11.   if (mousePressed) {
  12.     stroke(170);
  13.     fill(0, 150);
  14.     rect(mouseX, mouseY, random(6), random(6));
  15.   }
  16.   if (keyPressed == true && key=='s') {
  17.     saveFrame("Nadia.jpg");
  18.   }
  19.  
  20.   if (keyPressed == true && key == 'r') {
  21.     background(255);
  22.   }
  23. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement