STEP 3: Let's put grass on both sides of the road.

  • Drag Rectangle into your program and name it lawn1.
  • Position lawn1 at (-200, 0). Make it 100 pixels wide and 500 pixels high. Change the color to "lightgreen".
  • Drag another Rectangle into your program and name it lawn2.
  • Position lawn2 at (200, 0). Make it 100 pixels wide and 500 pixels high. Change the color to "lightgreen".

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)