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

Username:   Password: 
 RegisterRegister   
 colouring only one character on the screen
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
chalcids




PostPosted: Mon Dec 19, 2011 12:56 pm   Post subject: colouring only one character on the screen

Hello again, i need some help with my program. I want to change the colour of one character like * in my program and not the whole screen. What code do i need to do so?
Thanks in advance.
Sponsor
Sponsor
Sponsor
sponsor
Dragon20942




PostPosted: Mon Dec 19, 2011 1:08 pm   Post subject: RE:colouring only one character on the screen

Put everything before the one character and use :*, change the colour, put the alternately coloured character and use :*, change the colour back, and put the rest of the text.

Or you can just use Font.Draws, or call text saved as images.
chipanpriest




PostPosted: Mon Dec 19, 2011 1:11 pm   Post subject: Re: colouring only one character on the screen

If you're just putting something on the screen then you can just type
Turing:
colour () %Thats whatever colour you want

so like
Turing:
colour (7) %black
put "hey, ho"..
colour (12) %red
put "w"..
colour (7) %back to black
put " are you?"

let me know if it helps Smile
Dragon20942




PostPosted: Mon Dec 19, 2011 1:18 pm   Post subject: Re: colouring only one character on the screen

Oops my bad it was supposed to be ".." instead of ":*" sorry Embarassed
chipanpriest




PostPosted: Mon Dec 19, 2011 1:21 pm   Post subject: Re: colouring only one character on the screen

ya dont listen to dragon :p jk
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  [ 5 Posts ]
Jump to:   


Style:  
Search: