STEP 12: Let's change the size of the circle using the mouse's position as well!

  • In the GRAPHICS tab, click on and drag out Set Diameter.
  • Drop it indented inside mouse_move, below ····rect_display.update(rect_area)¬
  • Change the name before .set_diameter() from sprite to my_circle.
  • Change the argument in .set_diameter() from 50 to x.

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)