Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Variables and draw commands?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
bvbjules13




PostPosted: 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
Sponsor
sponsor
yazdmich




PostPosted: 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




PostPosted: Fri Dec 07, 2012 10:45 am   Post subject: RE:Variables and draw commands?

Do you have any relavent Coding?
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: