Learn creative coding writing simple programs

78. An array is like a book full of numbers

Review of previous episode where we created a cloud of points spinning in 3D. We try to understand how do arrays work, and we imagine them to be like books, where each page is an element of the array. We also do a small change to the program replacing point() by line(), so we create something that looks like a spinning star in 3D.

Tags: rotatey, rotate, animate, animation, star

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, surround it with ``` code-fences ``` like this:
``` void setup() { size(600, 600); } ```