Now we'll repeat those columns by changing the value of the variable y each time we loop through our row loop!

  • AFTER the column loop, and INSIDE the row loop, make an Integer Variable x with a value of -200.
  • Drag in Subtract Value and place it under the integer variable that is INSIDE the row loop.
  • Change the name to y and the value to 30.

This will copy the top row 4 times. Each time the height will be 30 pixels less than the previous height.

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)