Variables and draw commands?
Author |
Message |
bvbjules13
![](http://compsci.ca/v3/uploads/user_avatars/66978344050ad764a63277.jpg)
|
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 :/ ) |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
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
|
|
|
|
|
|
![](images/spacer.gif) |
AntoxicatedDevil78
![](http://compsci.ca/v3/uploads/user_avatars/88434032850c8941b52d03.png)
|
Posted: Fri Dec 07, 2012 10:45 am Post subject: RE:Variables and draw commands? |
|
|
Do you have any relavent Coding? |
|
|
|
|
![](images/spacer.gif) |
|
|