SHARE
TWEET

Untitled

a guest Sep 19th, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var INVERSE_SPEED = 1000;
  2. var previousTime;
  3.  
  4.  
  5. function setup() {
  6.   createCanvas(500, 850);
  7.   background(random(255), random(255), random(255));
  8.   noStroke();
  9. }
  10.  
  11. function draw() {
  12.   currentTime = floor(millis() / INVERSE_SPEED);
  13.  
  14.   if (previousTime != currentTime) {
  15.     fill(random(255), random(255), random(255));
  16.     rect(55, 280, 395, 500);
  17.  
  18.     fill(random(255), random(255), random(255));
  19.     rect(55, 60, 395, 175);
  20.  
  21.     filter(BLUR, 6);
  22.    
  23.     previousTime = currentTime;
  24.   }
  25. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top