
-----------------------------------
Carey
Sun Oct 07, 2007 3:18 pm

RGB.SetColour not working
-----------------------------------
the RGB.SetColour doesn't seem to be working.

to test it start a new turing project and type 


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

-----------------------------------
Carey
Wed Oct 10, 2007 11:33 am

RE:RGB.SetColour not working
-----------------------------------
any ideas people?

sorry code should be:

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
Thu Oct 11, 2007 5:22 am

RE:RGB.SetColour not working
-----------------------------------
I've had troubles with it to, try using RGB.AddColor and having a custom color pallette
