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

Username:   Password: 
 RegisterRegister   
 RGB.AddColor Help!!
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
mike200015




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
illu45




PostPosted: 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)
mike200015




PostPosted: 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)
mike200015




PostPosted: 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)
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  [ 4 Posts ]
Jump to:   


Style:  
Search: