Computer Science Canada

RGB.AddColor Help!!

Author:  mike200015 [ Sat Mar 12, 2005 10:40 pm ]
Post subject:  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 Question

Author:  illu45 [ Sat Mar 12, 2005 10:58 pm ]
Post subject: 

What code do you have so far? It osunds like you're creating an impossible colour...

This works for me :
code:

var clr : int

clr := RGB.AddColor (0.0, 0.0, 1.0)
drawfilloval (320, 200, 50, 50, clr)

Author:  mike200015 [ Sat Mar 12, 2005 11:05 pm ]
Post subject: 

the colour i made is :
code:
RGB.AddColor (1.0, 0.98, 0.0)

Author:  mike200015 [ Sat Mar 12, 2005 11:12 pm ]
Post subject: 

nevermind.. i got it.. its bcuz in my program the user chooses a colour.. and i did:
code:
if chosencolour = 1 then
ovalcolour := newColour

but it didnt work like that.. so i had to change it to:
code:
if chosencolour = 1 then
ovalcolour :=RGB.AddColor (1.0, 0.98, 0.0)


: