Categories

J-Code: BOLOR_Day1_Homework_SimplePseudocode

Aim:

  • Start with a white canvas with hidden buttons of different sizes of rectangles;
  • Every click reveals a coloured rectangle;
  • A custom Mondrian pattern is generated

 

Functions:

  1. makeGrid
  2. mergeSomeGridCells
  3. assignColourToCells
  4. turnColoursToButtons

 

Variables:

  1. Grid – size, n of rows, n of columns
  2. Cells
  3. Colours
  4. Buttons
No Comments

Sorry, the comment form is closed at this time.