ColorRequester

Just starting out? Need help? Post your questions and find answers here.
Switchblade
User
User
Posts: 17
Joined: Mon Apr 05, 2004 1:27 am
Contact:

ColorRequester

Post by Switchblade »

Hi,

how can I divide the Results of RGB by 120 to set a String Text with the result ?

Code: Select all

Result = Blue(Color) 
...
..
.
setgadgettext (2, ?

the structure of the result in the string-gadget-text must be somethin like this :

2,3456/1,3455/0,345
(RGB)
AMD 2800+ , 1024DDR 400, Nvidia FX 5600 Pro 256DDR, Hersules Game Theater 7.1
Switchblade
User
User
Posts: 17
Joined: Mon Apr 05, 2004 1:27 am
Contact:

Post by Switchblade »

thx for the help :evil:


but ive found it out by my self
AMD 2800+ , 1024DDR 400, Nvidia FX 5600 Pro 256DDR, Hersules Game Theater 7.1
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Don't get mad, just because you don't get an answer within 4 hours... this is a forum, not a chat.

btw: i didn't say something because i didn't really understand what your problem was.

Timo
quidquid Latine dictum sit altum videtur
Froggerprogger
Enthusiast
Enthusiast
Posts: 423
Joined: Fri Apr 25, 2003 5:22 pm
Contact:

Post by Froggerprogger »

Do you want to divide the result by 120 and display it in the stringgadget ?
Then you should divide the result by 120 and display it in the stringgadget.
:)

Code: Select all

Result = Blue(Color) 
divBlue.f = Result / 120 
Setgadgettext(2, StrF(divBlue, 4))
%1>>1+1*1/1-1!1|1&1<<$1=1
Switchblade
User
User
Posts: 17
Joined: Mon Apr 05, 2004 1:27 am
Contact:

Post by Switchblade »

thats my version

Code: Select all

          Result1 = Red(Color)
          Result2 = Green(Color)
          Result3 = Blue(Color)
          
          
          
          
          
          SetGadgetText(2, ""+ StrF(Result1/255)+"/"+StrF(Result2/255)+"/"+StrF(Result3/255)) 

AMD 2800+ , 1024DDR 400, Nvidia FX 5600 Pro 256DDR, Hersules Game Theater 7.1
Post Reply