SHARE
TWEET

Untitled

a guest Oct 12th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void setup(){
  2.  
  3.   size(600,600);
  4.  
  5. }
  6.  
  7. void draw(){
  8.  
  9.   background(mouseY, mouseX, 25);
  10.  
  11.   float angle = 0;
  12.   float x = mouseX;
  13.   float y = mouseY;
  14.  
  15.   fill(map(x, 0, width, 0, 255), map(y, 0, height, 0, 255), 75);
  16.  
  17.  
  18.  
  19.   for(int i = 0; i < width; i += 10){
  20.     for(int j = 0; j < height; j += 20){
  21.        rotate(radians(angle));
  22.        angle += 1;
  23.         rect(i,j, 5,5);
  24.   }
  25.   }
  26.  
  27.  
  28. }
RAW Paste Data
Top