Learn creative coding writing simple programs

8. Animate vertical lines

Discover how to turn the horizontal lines from the last exercise into vertical lines.
A vertical line has a starting and an ending point, and both points are at the same distance from the left border, so both have the same X value.

Tags: vertical, line, animation

Code editor

You can make changes to the code below. Then

Questions and comments

Try to stay close to the topic of this episode. Use the Processing forums for help with unrelated Processing projects (or hire me for help ;-)

To indicate that a word in your comment is code, use the `backtick`. Example
  Do `float` and `int` smell similar?
To highlight code blocks, use ```processing and ``` like this:
  ```processing
  void setup() {
    size(600, 600);
  }
  ```