Notes to Lesson 8c

Again, you can cut down on code somewhat by putting the movement inside a php loop:

for($i=0; $i<13; $i++){

The above loop replaces all of the lines of movement. The scale, which is what changes the size of the image, usually has a value of 1.0. Anything less is smaller than the original while anything larger is larger than the original. The two numbers, 1.1, 1.1 indicate the values of width and height. You can use just one number which will scale the whole width and height the same value. You can make the height get larger than the width by using 1.1,1.2, etc.

Below is the php code for the same lesson using the loop.