STEP 3: We'll use the function parameter variables in our shapes, so we can customize them when we call the function!

  • Change the circle's variable name from sprite to head, and change the circle's diameter from 100 to 50.
  • Change head's x-coordinate from 0 to x.
  • Change head's y-coordinate from 0 to y+50. This will place the circle 50 pixels above whatever y is!
  • Change head's color argument from "blue" to the variable color.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)