xxxxxxxxxx
199
function setup() {
createCanvas(400, 400);
angleMode(DEGREES)
}
function draw() {
background(200)
console.log(mouseX,mouseY)
describe('White Nintendo Ds Lite game console with light blue cover and a Pichu keychain attached to the top right corner of the object. The game console has two screens, one on the top and one on the bottom, with arrows on the left side of the controller. Pichu is a Pokemon from the anime called Pokemon');
push()
translate(-30,0)
//nintendo case in light blue
fill(204,255,255);
rect(40,64,320,315,20);
//nintendo machine
//top box
fill(255);
rect(50,71,300,150);
//small screen
push();
strokeWeight(3);
fill(255,255,204)
rect(125,100,150,90);
pop();
//top box speakers left row 1
push();
fill(0);
circle(78,125,5);
circle(90,125,5);
circle(102,125,5);
//top box speakers left row 2
circle(78,136,5);
circle(90,136,5);
circle(102,136,5);
pop();
//top box speakers right row 1
push();
translate(220,0)
fill(0)
circle(78,125,5);
circle(90,125,5);
circle(102,125,5);
//top box speakers right row 2
circle(78,136,5);
circle(90,136,5);
circle(102,136,5);
pop();
//bottom box
fill(255);
rect(50,219,300,150);
//small screen bottom
push();
strokeWeight(3);
fill(255,255,204)
rect(125,260,150,90);
pop();
// //outside shadow of arrow
push();
noStroke();
fill(100,100,100)
rect(76,279,18,36);
rect(66,289,37,14);
pop();
// arrows on left
push();
blendMode(ADD)
fill(255);
stroke(0);
strokeWeight(4);
rect(80,281,10,30);
rect(70,291,30,10);
pop();
//buttons on right
circle(300,300,15); //left
circle(330,300,15);//right
circle(315,284,15); // top
circle(315,315,15); //bottom
//text on button
push();
textSize(12);
fill(0)
textAlign(CENTER);
text('Y',300, 305);
text('X',315,289);
text('A',330,305);
text('B',315,320);
pop();
//connection point
push();
rect(50,210,300,20,20);
pop();
pop();
//line on top of connection point
line(82,210,82,229)
line(247,210,247,229)
//Nintendo Text
textSize(12);
fill(0)
textAlign(CENTER);
text('NINTENDO',143,140);
textSize(40)
textStyle(BOLD);
text('DS',200,160);
//new section
//PICHU
//key chain behind head
push();
noFill();
arc(370,80,100,100,180,245) // bottom key chain
pop();
//left ear
push();
noStroke();
translate(330,-10);
fill(255,255,153);
rotate(70)
quad(25, 21, 76, 10, 49, 53, 20, 46);
pop();
//right ear
push();
noStroke();
translate(430,45);
fill(255,255,153);
rotate(160);
quad(25, 21, 76, 10, 49, 53, 20, 46);
pop();
//line on ear
push();
strokeWeight(7);
line(294,27,298,52);//left ear
line(294,27,316,20);//left ear
line(294,27,308,34);// mini poke + end of left ear
line(367,14,394,10);//right ear
line(394,12,399,33);//right ear
line(394,12,385,21);//mini poke + end of right ear
pop();
//head
push();
noStroke();
fill(255,255,153);
circle(355,60,50);//face
//eye left and right
fill(0);
circle(342,59,10);
circle(366,53,10);
//eye sparkle white
fill(255)
circle(342,58,5);
circle(366,52,5);
//nose
fill(0)
circle(355,63,3);
//pink cheeks
fill(255,204,255);
circle(342,72,14); //left cheek
circle(373,65,14);//right cheek
//lips
push();
fill(255,102,118);
noStroke();
translate(-10,60)
rotate(-10)
arc(360,70,20,20,0,180);
pop();
pop(); //end of nintendo machine push pop
//key chain section 2
//new section key chain over on top
push();
noFill();
arc(300,30,100,100,5,60); // top key chain
pop();
//the attachment on top of pichu's head for key ring
push();
fill(255,153,51);
noStroke();
arc(350,36,15,10,180,360);
pop();
}