sketchDownload
// Ilia Urgen
// Section B
var numLines = 60;
function setup() {
createCanvas (400,300);
color_1 = color (135,206,245);
color_2 = color (253,217,181);
// ombre
for (var y = 0; y < height; y++ ) {
n = map (y,0, height, 0, 1);
var color_3 = lerpColor (color_1, color_2, n);
stroke (color_3);
line (0, y, width, y);
}
stroke (0);
// canvas border lines
line (1,1,1,299);
line (1,1,399,1);
line (1,299,399,299);
line (399,1,399,299);
}
function draw() {
for (var i = 0; i <= numLines; i += 1) {
var x1 = 0;
var y1 = i * width / numLines;
var x2 = i * height / numLines;
var y2 = 300;
// lower eye curve
strokeWeight(0.5);
line (x1, y1, x2, y2);
// upper eye curve and pyramid side
line (x2, 0, 400, y1);
// lower eye lines
line (y1, x2 * 1.05, x1, y1 - 20);
// pyramid face
line (y2, x2, x1 - 2.1, y2 + 200);
// eye line
strokeWeight(2);
line (0,0,382,303);
}
//illuminati eye
push();
translate (185, 152);
rotate(radians(38));
fill (0);
ellipse (0,0,180,80);
fill (255);
ellipse (0,0,80);
fill (0);
ellipse (0,0,20);
pop();
noLoop();
}