
Onke’s modified loop – source code
How do you think Onke managed to start the loop further to the right? He did it by changing parameters of the function, like this:
//use for loop to draw series of pacmans across the screen for(x3=0;x3<width;x3+=radius){ pacman(x3+100, y3+30,luhlaza, false, radius, 1); }
Can you think of another way that he could have done it?

Talita’s modified function –source code

Lisa changes size and background colours – source code

Mfuneko’s pacman disappears – can you see why in the source code?
Advertisements
One thought on “Modifying loops”