Computer Science Canada Variables and draw commands? |
| Author: | bvbjules13 [ 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 :/ ) |
|
| Author: | yazdmich [ 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)
|
|||
| Author: | AntoxicatedDevil78 [ Fri Dec 07, 2012 10:45 am ] |
| Post subject: | RE:Variables and draw commands? |
Do you have any relavent Coding? |
|