Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function setup() {
  2.   createCanvas(800,600);
  3.   noLoop();
  4. }
  5. function draw() {  
  6.   //noprotect
  7.   background(0);
  8.   for(y=0; y<height; y++)
  9.    for(x=0; x<width; x++) {  
  10.      set(x, y, color(200, 200, 255));
  11.   }
  12.   for(y=height-200; y<height; y++)
  13.    for(x=0; x<width; x++) {  
  14.      set(x, y, color(0, 100, 0));
  15.   }
  16.   for(i=0; i<1000; i++) {  
  17.      set(floor(random(0, width)), floor(random(height-200, height)), color(random(0, 255)));
  18.   }
  19.   for(y=200; y<height-200; y++)
  20.    for(x=200; x<width-200; x++) {  
  21.      set(x, y, color(100, 50, 30));
  22.   }
  23.   for(y=50, i=(width-240)/2; y<height-400; y++, i-=2)
  24.    for(x=120 + i; x<width-120 - i; x++) {  
  25.      set(x, y, color(255, 100, 100));
  26.   }
  27.   updatePixels();
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement