Sunday, May 31, 2009

day in the dunes

// just type here
// and click "submit" when done

int barWidth = 5;
int[] brightness;


void setup()
{
size(301,301);
background(270, 450, 350);
noStroke();
fill(450, 200, 100);
rect(45, 45, 45, 45);
fill(450,290,100);
rect(50, 50, 35, 35);

fill(450,290,100);
triangle(20,300,30,250,40,300);
fill(130, 130, 40);
triangle(25,270,30,250,35,270);


fill(450,290,100);
triangle(40,300,50,250,60,300);
fill(120, 240, 40);
triangle(45,270,50,240,55,270);

fill(450,290,100);
triangle(55,300,60,250,80,300);
fill(100, 210, 60);
triangle(55,280,60,245,76,280);

fill(450,290,100);
triangle(60,300,70,250,90,300);
fill(100, 260, 60);
triangle(63,280,70,240,82,280);

fill(450,290,100);
triangle(90,300,100,250,110,300);
fill(120, 140, 40);
triangle(95,273,100,250,107,279);


stroke(3,250,250,240);
colorMode(HSB, 360, height, height);  
  brightness = new int[width/barWidth];
  
}
void draw()
{   

ellipse(mouseX, height/2, mouseY/2+10, mouseY/2+10);
  fill(200,200,200);
ellipse(width-mouseX, height/2, ((height-mouseY)/2)+10, ((height-mouseY)/2)+10);
}

infoinfo

submitted by: sophie.mcdonald

inspired by my day out on the sand dunes with Maz in Devon, where the sun never shines! code adapted from one of the Processing examples.

Tags: sand_dunes

commentscomment

loading loading...

 

sign in to Add a comment: