Variables

Let’s change the spacing between the circles we stamp by using a variable.
Let’s call our new variable “Spacing” like this…
A variable is just a box or container that stores numbers and words you want to keep track of.

For example, in a game you might have a variable called “Points” to keep track of, well– your points!
The variable (or box called “Points”) would contain a different number in it at different times during the game, depending on how many points you scored.
In our case the variable is “Spacing” for how much space we want to leave between each circle we stamp. When you make your variable it will automatically show up on the stage because of the little checked box.  Good!
Now let’s change our variable to a special type that has a slider.  This way we can change the numbers in our variable on the fly. Right click on the variable display to bring up the popup.
And it ends up looking like this with a little slide bar…
But let’s set a range for the minimum and maximum on our slider so things don’t get too crazy.  How about from 2 to 50. 

Again, right click on the variable display to bring up the popup

Once you have your variable set up, you just tell the circle to move according to your variable.  Like this…
…and plop that baby into your stack of code with the repeat loop. Play around with different numbers for your spacing.  Can you make these patterns?
Whoa– dense!
a little breathing room…
Nice and loose…
Can you set your variable to the spacing that makes your circles overlap by half each time? Presto!  Your variable now contains the radius…
Okay, let’s get trippy.  Let’s bring in some of the previous tricks you learned.
How would you use this…
To make something like this?
We don’t have to keep looping back to circles– try out a square…

You probably already figured it out, but I added this tile to make the above

And what did I do here?
Yep, used this little puppy…
And then…
leads to…
Can you figure out these??
Now things are really starting to take off.  How did I make these look like they are accelerating?  
Here’s the hint:
As you can see, the possibilities are infinite, and variables can help you quickly play with an infinite variety of variations
Congratulations on mastering some of the fundamentals of programming to make your art.

Speaking of variables and infinities, have you ever considered that there is an infinite variety of infinities?
As we are intimating here you can vary your variables to establish your rate of infinity, you can speed up your infinities, you can…
(He loops himself into an infinity icon, tries a different similar pose faster and faster, and then eventually ends up tied in a knot)
Sometimes I confuse even myself