RGB.AddColor Help!!
Author |
Message |
mike200015
|
Posted: 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 Question](http://compsci.ca/v3/images/smiles/icon_question.gif) |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
illu45
![](http://img9.exs.cx/img9/1348/roadavvy2ht.png)
|
Posted: Sat Mar 12, 2005 10:58 pm Post subject: (No 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)
|
|
|
|
|
|
![](images/spacer.gif) |
mike200015
|
Posted: Sat Mar 12, 2005 11:05 pm Post subject: (No subject) |
|
|
the colour i made is :
code: | RGB.AddColor (1.0, 0.98, 0.0) |
|
|
|
|
|
![](images/spacer.gif) |
mike200015
|
Posted: Sat Mar 12, 2005 11:12 pm Post subject: (No 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) |
|
|
|
|
|
![](images/spacer.gif) |
|
|