Just starting out? Need help? Post your questions and find answers here.
Switchblade
User
Posts: 17 Joined: Mon Apr 05, 2004 1:27 am
Contact:
Post
by Switchblade » Sat Apr 10, 2004 4:29 pm
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
Posts: 17 Joined: Mon Apr 05, 2004 1:27 am
Contact:
Post
by Switchblade » Sat Apr 10, 2004 8:46 pm
thx for the help
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
Posts: 5940 Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany
Post
by freak » Sat Apr 10, 2004 10:26 pm
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
Posts: 423 Joined: Fri Apr 25, 2003 5:22 pm
Contact:
Post
by Froggerprogger » Sun Apr 11, 2004 10:05 am
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
Posts: 17 Joined: Mon Apr 05, 2004 1:27 am
Contact:
Post
by Switchblade » Sun Apr 11, 2004 6:51 pm
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