Summary


New Processing commands, structures and concepts in this chapter

system variables mouseX and mouseY

point(x, y)

system variables pmouseX and pmouseY

println(something to print)

boolean variables

system variables mousePressed and keyPressed

equality (==)

else statement

&& (logical AND)

PImage-objects

loadImage(filename)

image(img, x, y)

pimage.resize(newwidth, newheight)

int(number)

noCursor()

EXTRA:

float variables

dist(x1, y1, x2, y2)

system variables width and height


End of Chapter Quiz

Test your knowledge of the chapter with this quiz

What is a system variable?
What does a command line(pmouseX, pmouseY, mouseX, mouseY) do if it's placed in the draw-method?
What kind of values can a keyPressed-variable contain?
How to add images to Processing-programs?
What is usually required in a computer game?