I require help with my project "smileyFace"
var SmileyFaceA = new SmileyFace(100,100);
drawSmiley(SmileyFaceA);
var SmileyFace = function(centerX,centerY) {
this.centerX = centerX;
this.centerY = centerY;
};
SmileyFace.prototype.draw = function() {
fill(255, 214, 10);
ellipse(this.centerX, this.centerY, 150, 150);
fill(0, 0, 0);
ellipse(this.centerX-30, this.centerY-30, 20, 20);
ellipse(this.centerX+30, this.centerY-30, 20, 20);
noFill();
strokeWeight(3);
arc(this.centerX, this.centerY+10, 64, 40, 0, 180);
};
SmileyFace.prototype.draw = function() {
};
var face = new SmileyFace(200, 300);
face.draw();
Please sign in to leave a comment.