Learn creative coding writing simple programs

14. New directions for our moving circle

We introduce the strokeWeight() function to change the width of the lines we draw. If we don't use strokeWeight(), the lines are very thin.
We also review some basic animation. Then (after minute 4:30) we find out how to move our circle not only from left to right, but in another directions, by making the X and Y values larger or smaller.

Tags:

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);
  }
  ```