Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function setup() {
- createCanvas(800,600);
- noLoop();
- }
- function draw() {
- //noprotect
- background(0);
- for(y=0; y<height; y++)
- for(x=0; x<width; x++) {
- set(x, y, color(200, 200, 255));
- }
- for(y=height-200; y<height; y++)
- for(x=0; x<width; x++) {
- set(x, y, color(0, 100, 0));
- }
- for(i=0; i<1000; i++) {
- set(floor(random(0, width)), floor(random(height-200, height)), color(random(0, 255)));
- }
- for(y=200; y<height-200; y++)
- for(x=200; x<width-200; x++) {
- set(x, y, color(100, 50, 30));
- }
- for(y=50, i=(width-240)/2; y<height-400; y++, i-=2)
- for(x=120 + i; x<width-120 - i; x++) {
- set(x, y, color(255, 100, 100));
- }
- updatePixels();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement