
-----------------------------------
mike200015
Sat Mar 12, 2005 10:40 pm

RGB.AddColor Help!!
-----------------------------------
i made a new color using RGB.AddColor, and used a variable to set the colour.. and i want to use that colour in drawfilloval , except it wont let me bcuz it says the colour is out of bounds. Is there any way to use the new colour i made with drawfilloval :?:

-----------------------------------
illu45
Sat Mar 12, 2005 10:58 pm


-----------------------------------
What code do you have so far? It osunds like you're creating an impossible colour... 

This works for me :

var clr : int

clr := RGB.AddColor (0.0, 0.0, 1.0)
drawfilloval (320, 200, 50, 50, clr)


-----------------------------------
mike200015
Sat Mar 12, 2005 11:05 pm


-----------------------------------
the colour i made is : 
RGB.AddColor (1.0, 0.98, 0.0)

-----------------------------------
mike200015
Sat Mar 12, 2005 11:12 pm


-----------------------------------
nevermind.. i got it.. its bcuz in my program the user chooses a colour.. and i did:
 if chosencolour = 1 then 
ovalcolour := newColour
but it didnt work like that.. so i had to change it to:
if chosencolour = 1 then 
ovalcolour :=RGB.AddColor (1.0, 0.98, 0.0) 
