Summary


New Processing commands, structures and concepts in this chapter

setup() and draw()

random(low, high)

fill(red, green, blue, alpha)

fill(grayscale, alpha)

integer variables

add (+) and minus (-)

multiply (*)

if statement

less than (<) and greater than (>)

|| (logical OR) 


End of Chapter Quiz

Test your knowledge of the chapter with this quiz

What is the difference between setup- and draw-parts?
What does command random(100, 255) do?
What can you do with a variable in programming?
What does command ballX = ballX + 5 do?
What can you do with an if-statement?
What does command fill(0, 10) do?