Variables and draw commands?
Author |
Message |
bvbjules13
|
Posted: Thu Dec 06, 2012 8:39 pm Post subject: Variables and draw commands? |
|
|
is it possible to have a variable with the assignment of a draw command? so i can call the variable and it will draw something
(sorry i am not the great at programming :/ ) |
|
|
|
|
|
Sponsor Sponsor
|
|
|
yazdmich
|
Posted: Thu Dec 06, 2012 8:46 pm Post subject: Re: Variables and draw commands? |
|
|
I think you mean a procedure. A procedure is a "sub-program" that you can call (run) with a name. Here, I have a procedure named drawsomething that will draw a black, filled in box at co-ordinates (50, 50) and (100, 100)
Turing: |
procedure drawsomething
Draw.FillBox (50, 50, 100, 100, black)
end drawsomething
drawsomething
|
|
|
|
|
|
|
AntoxicatedDevil78
|
Posted: Fri Dec 07, 2012 10:45 am Post subject: RE:Variables and draw commands? |
|
|
Do you have any relavent Coding? |
|
|
|
|
|
|
|