Purwa’s landscape

Screen Shot 2013-09-19 at 10.58.23 AM

I was fiddling around with basic shapes and positions, and landed up with a (very childish) landscape. But i think im slowly getting a hang of the program.  🙂  http://www.openprocessing.org/sketch/110548

The code 

size(400,400);
background(102,204,255);
noStroke();
rectMode(CORNER); //grass
fill(102, 204, 102);
rect(0, 320, 400, 80);

//clouds
noStroke();
fill(255,255,255);
ellipse(20,50,50,50);
//sun
stroke(247,148,29);
strokeWeight(4);
fill(255,255,2);
stroke(242,101,34);//ray9
strokeWeight(5);
line(39,87,39,107);
ellipse(40,50,70,70);
noStroke();
fill(255,255,255);
ellipse(10,50,70,50);
noStroke();
fill(255,255,255);
ellipse(70,70,70,70);
noStroke();
fill(255,255,255);
ellipse(95,70,60,60);

fill(255,255,255);
ellipse(120,70,70,65);

//cloud2
noStroke();
fill(255,255,255,230);
ellipse(250,50,150,45);
fill(255,255,255,230);
ellipse(300,50,130,30);

//cloud3
noStroke();
fill(255,255,255,220);
ellipse(200,100,70,20);
fill(255,255,255,220);
ellipse(230,100,70,15);

//sunrays
stroke(242,101,34);//ray1
strokeWeight(5);
line(5,7,20,20);
stroke(251,175,93);//ray2
strokeWeight(3);
line(25,3,29,13);
stroke(242,101,34);//ray3
strokeWeight(5);
line(40,3,40,12);
stroke(251,175,93);//ray4
strokeWeight(3);
line(57,3,55,14);
stroke(242,101,34);//ray5
strokeWeight(5);
line(73,7,64,20);
stroke(251,175,93);//ray6
strokeWeight(3);
line(85,16,71,27);
stroke(242,101,34);//ray7
strokeWeight(5);
line(20,80,8,90);
stroke(251,175,93);//ray8
strokeWeight(3);
line(27,85,20,100);

//tree1
noStroke();
fill(0,114,54);
ellipse(300,350,20,20);
fill(0,114,54);
ellipse(320,350,20,20);
fill(0,114,54);
ellipse(320,340,25,20);
fill(0,114,54);
ellipse(310,340,25,20);
fill(0,114,54);
ellipse(310,330,25,20);

//fruits
stroke(168,71,51);
strokeWeight(5);
point(300,350);
point(320,350);
point(320,340);
point(310,330);

//branch1
stroke(117,76,36);
strokeWeight(5);
line(310,355,310,385);

//tree2
noStroke();
fill(0,114,54);
ellipse(200,285,20,20);
fill(0,114,54);
ellipse(190,285,20,20);
fill(0,114,54);
ellipse(190,270,20,20);
fill(0,114,54);
ellipse(200,270,20,20);
fill(0,114,54);
ellipse(210,280,20,20);

//fruits
stroke(168,71,51);
point(200,285);
point(202,275);
point(193,268);
point(190,285);
//branch2
stroke(117,76,36);
strokeWeight(5);
line(200,293,200,320);
//birdsrightside
//bird1
stroke(51,51,102);
strokeWeight(5);
line(180,190,190,200); //wing1
stroke(51,51,102);
strokeWeight(5);
line(190,200,200,190);//wing2
//bird2
stroke(51,51,102);
strokeWeight(5);
line(200,180,210,190);//wing1
stroke(51,51,102);
strokeWeight(5);
line(210,190,220,180);//wing2
//bird3
stroke(51,51,102);
strokeWeight(5);
line(220,170,230,180);//wing1
stroke(51,51,102);
strokeWeight(5);
line(230,180,240,170);//wing2
//birds left side
//bird4
stroke(51,51,102);
strokeWeight(5);
line(160,180,170,190); //wing1
stroke(51,51,102);
strokeWeight(5);
line(170,190,180,180);//wing2
//bird5
stroke(51,51,102);
strokeWeight(5);
line(140,170,150,180); //wing1
stroke(51,51,102);
strokeWeight(5);
line(150,180,160,170);//wing2

//tree3
noStroke();
fill(0,114,54);
ellipse(100,285,20,20); //100
fill(0,114,54);
ellipse(90,285,20,20); //90
fill(0,114,54);
ellipse(90,270,20,20); //90
fill(0,114,54);
ellipse(100,270,20,20); //100
fill(0,114,54);
ellipse(110,280,20,20); //110
fill(0,114,54);
ellipse(80,275,20,20);

//fruits
stroke(160,65,13);
point(100,285);
point(90,280);
point(100,268);

//branch3
stroke(117,76,36);
strokeWeight(5.5);
line(95,292,95,320);

//tree4
noStroke();
fill(0,114,54);
ellipse(40,370,20,20);
fill(0,114,54);
ellipse(60,370,20,20);
fill(0,114,54);
ellipse(40,360,25,20);
fill(0,114,54);
ellipse(60,360,25,20);
fill(0,114,54);
ellipse(50,350,25,20);

//fruits
stroke(158,11,15);
point(40,370);
point(60,360);
point(50,355);

//branch4
stroke(117,76,36);
strokeWeight(5.5);
line(50,370,50,400);

This entry was posted in Uncategorized on by .

About purwachauhan

Hi Guys! My name is Purwa and im from India. Im a sophomore in Communication Design. Creative Computing is as new to me as is to everyone else. But i think we can all take up that challenge! Well a few expectations from this course is to learn the basics of Processing and the fundamentals of computer programming in a visual context, which serves as the foundation for electronic sketchbooks.

Leave a Reply

Your email address will not be published.