color -> HEX - Printable Version +- Qbasicnews.com (http://qbasicnews.com/newforum) +-- Forum: QbasicNews.Com (http://qbasicnews.com/newforum/forum-3.html) +--- Forum: Challenges (http://qbasicnews.com/newforum/forum-10.html) +--- Thread: color -> HEX (/thread-3236.html) |
color -> HEX - Diroga - 02-18-2004 make a program that displays a color pallet(16 bit) and gives the hex value for selected colors. color -> HEX - Agamemnus - 02-19-2004 Quote:make a program that displays a color pallet(16 bit) and gives the hex value for selected colors. So it displays a pallette and you can select one or more colors which then gives its hex value. Would be nice to change the palette too.. Sounds easy but boring.. :| color -> HEX - Diroga - 02-19-2004 Quote:Sounds easy but boring.. :| i cnat figuer it out color -> HEX - Rokkuman - 02-19-2004 Quote:Agamemnus Wrote:Sounds easy but boring.. :| [offtopic] I'm sorry, but I'd just like to let everyone know that I have saved this post....... just so I can look at it whenever I want.[/offtopic] ----------------------- I'm not sure if you can find the HEX of it, unless the hex and the RGB value is the same thing... color -> HEX - SCM - 02-20-2004 Rockuman, The color value for the palette is R + 256 * G + 256^2 * B. To get the hex value, you can use HEX$. One way would be Code: HexVal$ = "&H" + HEX$((256& * B + G) * 256 + R) ' Notice the first 256 is a long color -> HEX - Neo - 02-20-2004 In general about challenges, please challenge other users to a subject you know about. I mean, this topic could've been placed in 'Programming Help' with the title '24-Bit colours?' as well. If you have a question about something, post it in the Help Fora color -> HEX - Diroga - 02-21-2004 yeah i thought of that after i posted it. so move thread plz or delete this one |