Uncaught Syntax Error: Unexpected token {


#1

i need help with this draw ghosts code it says there is an uncaught syntax error



// Constants for main ghost body
var HEAD_RADIUS = 35;
var BODY_WIDTH = HEAD_RADIUS * 2;
var BODY_HEIGHT = 60;
var NUM_FEET = 3;
var FOOT_RADIUS = (BODY_WIDTH) / (NUM_FEET * 2); 

// Constants for eyes
var PUPIL_RADIUS = 4;
var PUPIL_LEFT_OFFSET = 8;
var PUPIL_RIGHT_OFFSET = 20;
var EYE_RADIUS = 10;
var EYE_OFFSET = 14;

/* Write a comment here about your overall program */
function start(){
    var centerX = getWidth()/2;
    var centerY = getHeight()/2;
    drawGhost(centerX, centerY, Color.red);
    drawGhost(100,100, Color.green);
    drawGhost(300, 200, Color.black);
    drawGhost(40, 300, Color.orange);
    drawGhost(300, 50, Color.yellow);
    drawGhost(250, 400, Color.gray);
}

function drawGhost(centerX, centerY, color){
    drawCircle(HEAD_RADIUS, centerX, centerY, color);
    drawBody(centerX, centerY, color);
    drawFeet(centerX - BODY_WIDTH / 2 + FOOT_RADIUS, centerY + BODY_HEIGHT, color);
    DRAWeYES(centerX, centerY);
}

function drawBody(centerX, centerY, color){
    var body = new Rectangle(BODY_WIDTH, BODY_HEIGHT);
    body.setPosition(centerX - BODY_WIDTH / 2, centerY);
    body.setColor(color);
    add(body);
}

function drawFeet(centerX, centerY, color{
    for (var foot = 0; foot < NUM_FEET; foot++){
        drawCircle(FOOT_RADIUS, centerY, color);
    }    
}

function drawEyes(centerX, centerY){
    drawCircle(EYE_RADIUS, centerX - EYE_OFFSET, centerY, Color.white);
    drawCircle(EYE_RADIUS, centerX - EYE_OFFSET, centerY, Color.white);
    
    drawCircle(PUPIL_RADIUS, centerX - PUPIL_LEFT_OFFSET, centerY, Color.blue)
    drawCircle(PUPIL_RADIUS, centerX - PUPIL_RIGHT_OFFSET, centerY, Color.blue)
}

function drawCircle(radius, centerX, centerY, color){
    var circle = new Circle(radius);
    circle.setPosition(centerX, CenterY);
    circle.setColor(color);
    add(circle);
}