Please enable JavaScript to use CodeHS

Demos

Ghost


### Overview Write a program to draw a ghost on the screen. You must do this by using the constant values given (this will allow us to easily alter the size or color of the ghost.) </n> </n> ### Hints * The constants for all of the ghost dimensions are given. * Here is the location of some eye constants (all dimensions measured to center of circle): ![Eye offsets](https://codehs.com/uploads/4f803cb78b54c0844f4091ad41b318ba) * The center of the head circle should be placed at the center of the canvas. * Start off with something simpler. Try just drawing the general ghost shape, which is a circle and then a rectangle right on it. ![](/uploads/8d291eded056a2ae950f47a66e94d8d1) * You can use the NUM_FEET constant and a for loop to control the number of feet on the ghost.

Many Crazy Balls