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

Username:   Password: 
 RegisterRegister   
 RGB.SetColour not working
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Carey




PostPosted: Sun Oct 07, 2007 3:18 pm   Post subject: RGB.SetColour not working

the RGB.SetColour doesn't seem to be working.

to test it start a new turing project and type

code:

import "ClrChooser.tu"
clrChooser.chooseClr (255)
Draw.FillBox (0, 0, 100, 100, 255)
clrChooser.chooseClr(255)


save it in the same dir as clrChooser.tu and run

Go through the custom colours diolouge, create a colour, click done.
It draw the box IN BLACK GRRRRR....
Then when you go into the clrChooser it will show the clr 255 as black again.

any help would be apreciated.

if there are mistakes in the above code, its because i dont have turing on this comp. use common sense



clrChooser.tu
 Description:
clrChooser.tu

Download
 Filename:  clrChooser.tu
 Filesize:  5.19 KB
 Downloaded:  92 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Carey




PostPosted: Wed Oct 10, 2007 11:33 am   Post subject: RE:RGB.SetColour not working

any ideas people?

sorry code should be:
code:

import "ClrChooser.tu"
var c := clrChooser.chooseClr (248)
colourback (c)
cls
c := clrChooser.chooseClr(c)


it should set the colour of the number you chose to the colour you chose, then draw in that colour. all it does is draw in black.
Saad




PostPosted: Thu Oct 11, 2007 5:22 am   Post subject: RE:RGB.SetColour not working

I've had troubles with it to, try using RGB.AddColor and having a custom color pallette
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: