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

Username:   Password: 
 RegisterRegister   
 Some tips for Turing graphic artists
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
wthef_wc3




PostPosted: Thu Mar 31, 2005 7:59 pm   Post subject: Some tips for Turing graphic artists

When working with graphics, i know setting the y+x's of every item is extreamly boring and requires alot of time, so when your coding involves grahics put this code at the top of ur pgrm so u can simply put the mouse an the screen at the desired location of the object.
code:

var x, y, button : int
process display
    loop       
        locate (1, 1)
        Mouse.Where (x, y, button)
        put x, "|", y, "|"       
    end loop
end display
fork display

this runs as ur graphics are running and shows you the coord's of the mouse. Just something, to make using grapics easier.

Another simple thing to make finding the right colour easier.
code:

setscreen ("graphics:500;9000")
for col : 1 .. 256
    %colour (col)
    colourback (col)
    put "colour \"", col, "\""
end for


Hope this little tip helps.
Sponsor
Sponsor
Sponsor
sponsor
person




PostPosted: Thu Mar 31, 2005 8:04 pm   Post subject: (No subject)

1) i know ur new here so its ok if u didnt notice the tutorial forum tehy have, but just to tell u, ur supposed to post things like this there

2) turing clolor goes to 255
Mazer




PostPosted: Thu Mar 31, 2005 9:18 pm   Post subject: (No subject)

Just a heads up, you'll likely be flamed shortly for suggesting the use of processes.
jamonathin




PostPosted: Fri Apr 01, 2005 8:47 am   Post subject: (No subject)

Hey that colour one's pretty cool (I'm amused by small things). I'm a little unsure why you needed the process for the first one though, juss put it after you draw everything Confused
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  [ 4 Posts ]
Jump to:   


Style:  
Search: