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.
Code editor
You can make changes to the code below. Then
Reference
background
box
draw
for
frameCount
height
int
line
new
noFill
random
rotateY
setup
size
smooth
stroke
strokeWeight
translate
void
width
background
box
draw
for
frameCount
height
int
line
new
noFill
random
rotateY
setup
size
smooth
stroke
strokeWeight
translate
void
width
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); } ```