Connecting a variable to a command such as clg(enter)circle (Language Help)

by Milo, Monday, January 24, 2011, 14:48 (2346 days ago)

While doing tutorial 10, and writing:

clg
color blue
circle 20,20,8
clg
circle 30,20,8
clg
circle 40,20,8
clg
circle 50,20,8
clg
circle 60,20,8

I was wondering, can I connect a variable ('a') to a command, such as:

clg
circle

So that I could simply write:

color blue
a=clg circle
a 20,20,8
a 30,20,8
a 40,20,8
a 50,20,8
a 60,20,8

?


I've been wanting to learn to program for a long time now, but never knew where to start, this is my first real encounter with programming, other than some python basics 2 years ago.


Complete thread:

 RSS Feed of thread

powered by my little forum