Hello I am working on a program and have become pretty confused...
I am supposed to write a program that will convert html colours expressed as 6 hexadecimal digits to their individual red, green, and blue components expressed in decimal. If anyone can help me out with some pointers of how to do this then that would be great. Thanks
loststudent88
0
Newbie Poster
Recommended Answers
Jump to PostWhat have you tried so far? It's a matter of parsing the hex digits 2 at a time and converting them to decimal (for digits, convert to an int by subtracting '0' and by using a switch statement to convert a or A to 10, etc.).
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.