xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight, WEBGL);
// stroke("#43658b");
// debugMode(500, 10); // Add a grid and an axes guide. RGB indicate XYZ, respectively (so Red is X axis. Direction of the stick outward indicates +ve on that axis.)
}
function draw() {
background(200);
orbitControl(5, 5, 0.01);
penguin()
}
function penguin() {
noStroke()
//body
fill("white")
ellipsoid(60, 100, 57);
fill('#302733')
ellipsoid(80, 120, 50);
//head
push()
translate(0, -130, 0)
ellipsoid(50, 50, 50)
//beak
translate(0, -5, 50)
fill('#FF5F1F')
ellipsoid(20, 5, 20)
//eyes
fill('white')
translate(-10, -18, -5)
ellipsoid(10, 10, 5)
fill("black")
ellipsoid(5, 5, 8)
fill('white')
translate(25, 0, 0)
ellipsoid(10, 10, 5)
fill("black")
ellipsoid(5, 5, 8)
//feet
translate(10,270,-5)
fill('orange')
ellipsoid(20,10,40)
translate(-50,0,0)
ellipsoid(20,10,40)
pop()
}