Video 9: Variables 9.
Video 10: Variables 10.
Introduction to variables and data types.
Arithmetic, Order of operations.
Video 11: Repetition 11.
Video 12: Repetition 12.
Introduction to repetition.
Introduction to for() command.
Beginning, Limit and Increment.
Two approaches to creating the same pattern.
Suggested exercise: Draw 8 vertical 10×10 pixel squares separated equally by 20px distance using the
for() command. Then make the distance between squares to be 10 pixels now.
Suggested exercise: Draw a pattern of 8×8 squares separated by 20 pixels both vertically and horizontally.
Suggested exercise: Draw a pattern where all lines part from the upper left corner and arrive to the right
edge of the screen separated by 5 pixels vertically.
Suggested exercise: Draw a pattern where all lines arrive to the centre of the screen.
Suggested exercise: Draw a target pattern using the ellipse() and the for() commands.
Assignment 2
Choose a squared fragment from Gunta Stölzl’s Untitled – Conf 662 tapestry and reproduce it using
variables and the for command.
Why this exercise? Designing something very specific (an expected outcome) versus the happy accident.
There are different processes involved in developing this exercise: Choosing a section: decide which
section to reproduce, determining the complexity, the amount of content, forms, colour and aesthetic
factors. The final solution should be similar to the assigned artwork section, making it easy to assess the
correspondence between the original and the actual representation, this is very important for beginners;
develop strategies to achieve a goal. Understanding a system and repetition: detect patterns in the original
artwork and attempt to solve them using repetition. Devise a strategy to divide and conquer, understand
the importance of dividing the problem into sub-problems. Familiarizing the student with the
programming language syntax by repetition. Familiarize the student with researching the language
reference, learning the programming environment and finding online learning resources.