xxxxxxxxxx
86
function setup() {
createCanvas(500, 500);
noStroke()
background(143,255,248,50);
rectMode(CENTER)
angleMode(DEGREES)
}
function draw() {
//body
translate(250,250)
push()
fill(0)
push()
noFill()
strokeWeight(8)
stroke(0,252,255)
rect(-100,0,60,75,10)
rect(100,0,60,75,10)
pop()
rect(0,0,195,110,20)
rect(-100,0,60,75,10)
rect(100,0,60,75,10)
noFill()
strokeWeight(4)
stroke(0,252,255)
rect(0,0,195,110,20)
pop()
//corner left bottom
push()
noFill()
stroke(0,252,255)
strokeWeight(2)
arc(-90-33,54,70,30,270,0)
//corner right upper
rotate(180)
arc(-90-33,54,70,30,270,0)
//corner left upper
arc(90+33,54,70,30,180,270)
//corner right upper
rotate(180)
arc(90+33,54,70,30,180,270)
pop()
//Buttons
fill(102,209,255)
rect(-60,30,10,30,15)
rect(-60,30,30,10,15)
ellipse(60,25, 10,10)
ellipse(70,35, 10,10)
push()
noFill()
strokeWeight(2)
stroke(0,230,255)
rect(-60,30,10,30,15)
rect(-60,30,30,10,15)
ellipse(60,25, 10,10)
ellipse(70,35, 10,10)
pop()
//Screen
push()
blendMode(SCREEN)
fill(0,203,210)
rect(0,-10,90,50,15)
fill(255,0,200)
rect(0,-10,75,40,15)
pop()
//text
push()
textSize(15)
fill(255,240,250)
text("meow~:)", -31, -6)
fill(255,151,219)
text("meow~:)", -30, -5)
}