xxxxxxxxxx
33
/*
debugging exercise
there are several bugs in this program
use the console to find the bugs
some bugs will not appear in the console
the finished version should look like this image:
https://210.owen.cool/notes/debug/debug.png
*/
var faceSize = "one hundred" * 3;
function setup() {
createcanvas(640, 480);
backGround(50);
noStoke();
fill("lightblue");
ellipse(350, 320, faceSize); // face
fill(0 0 0);
ellipse 450, 250, 100; // right eye
ellipse(x, y, 100); / left eye
ellipse(x, y + 100, 100 50); // mouth
fill(white);
ellipse(150, 100, 200, 150);
triangle(200, 200, 150, 175, 175, 150);
fill("black");
textSize(28);
textFont(monospace);
text("Nice work!" 65, 110);
}