PASO 9: Usemos el valor de y (la coordenada y del mouse) para establecer la altura del rectángulo.

  • Haga clic en y arrastre Set Height . Suéltelo dentro del bloque mouse_move.
  • Cambie el nombre antes .set_height() a my_rect .
  • Cambie el argumento en .set_height() a y .

¡Estamos configurando la altura de my_rect igual a la coordenada y del mouse!

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
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)