top of page
Search

Assignment 8: p5 drawing

  • Writer: Steven Gonzalez
    Steven Gonzalez
  • Oct 22, 2019
  • 1 min read

the reason I decided to make this drawing was during class what we had on our monitors looked like a robot so then bender from futurama popped into my head so I attempted it and it looks like a knock off bender.

CODE:

_______________

function setup() {

createCanvas(600,600);

}

function draw() {

background(280);

//stroke(0,255,0);

noStroke()

fill('lightSteelBlue')

rect(250,100,72,100);

fill('lightYellow')

noStroke()

ellipse(267,180,20)

rect(265,170,50,20)

//ellipse(200,200,50,50);

stroke(1)

noFill()

arc(267,180,20,20,HALF_PI,PI+HALF_PI)

line(267,170,315,170)

line(267,190,315,190)

line(290,170,322,170)

noStroke()

fill('white')

rect(315,170.5,10,40)

stroke(1);

//line(258,175,315,175)

//line(258,185,315,185)

noFill()

arc(286,175,55,5,TWO_PI,PI)

line(314,170,314,190)

//arc(308,194,19,19,PI+QUARTER_PI+QUARTER_PI+QUARTER_PI,QUARTER_PI)

noStroke()

fill('lightSteelBlue')

ellipse(315,195,4,13)

stroke(1)

noFill()

arc(307,194,19,19,PI+QUARTER_PI+QUARTER_PI+QUARTER_PI,QUARTER_PI)

line(310,190,316,190)

arc(286,183,55,5,TWO_PI,PI)

line(270,170,270,190)

line(285,170,285,190)

line(300,170,300,190)

line(250,100,250,200)

//arc(283,200,64,6,TWO_PI,PI)

noStroke()

fill('lightSteelBlue')

ellipse(284,200,60,7)

stroke(1)

arc(283,200,64,6,TWO_PI,PI)

arc(286,100,71,40,PI,TWO_PI)

line(322,160,322,170)

line(322,99,322,125)

noStroke()

ellipse(326,144,30,32)

noFill()

stroke(1)

arc(271,134,13,15,PI,PI+HALF_PI+HALF_PI)

line(265,130,265,150)

line(265,150,280,160)

line(280,160,335,160)

line(322,127,335,130)

arc(331,144.5,20,30,HALF_PI+PI,TWO_PI+HALF_PI)

//arc(271,138,15,25,HALF_PI,PI+HALF_PI)

arc(296,125,50,15,TWO_PI,PI)

noStroke()

fill('lightSteelBlue')

rect(274,130,4,4)

noFill()

stroke(1)

arc(325,147,20,17,HALF_PI+PI,TWO_PI+HALF_PI)

arc(290,147,20,17,TWO_PI+HALF_PI,HALF_PI+PI)

line(290,156,325,156)

line(290,138,325,138)

arc(295,147,13,16,HALF_PI+PI,TWO_PI+HALF_PI)

arc(314,147,13,16,HALF_PI+PI,TWO_PI+HALF_PI)

arc(308,147,13,16,TWO_PI+HALF_PI,HALF_PI+PI)

fill('black')

rect(290,139,40,16)

ellipse(327,148,15,15)

fill('lightYellow')

ellipse(309,147,21,20)

ellipse(290,147,21,20)

fill('black')

rect(285,145,3,3)

rect(305,145,3,3)

fill('lightSteelBlue')

arc(286,80,20,5,TWO_PI,PI)

line(275,80,283,78)

line(295,80,290,78)

noFill()

arc(286,77,7,5,TWO_PI,PI)

//line(275,280,)

fill('lightSteelBlue')

triangle(282,78,289,78,286,10)

noStroke()

fill('white')

rect(279,10,10,35)

fill('lightSteelBlue')

stroke(1)

ellipse(285,40,10,10)

}

________________


 
 
 

Recent Posts

See All
Algorithms:Homework 13

how I found the algorithms that is unfair is by just searching in google companies using unfair algorithms. In this article it has five...

 
 
 
Assignment 11

for this I tried to go off what we did last class and delete a ball i tried using array.pop() and array.splice() but I couldn't get it to...

 
 
 

Comments


©2019 by Steven. Proudly created with Wix.com

bottom of page