Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Hex String to Integer

Author
Message
Raven
19
Years of Service
User Offline
Joined: 23rd Mar 2005
Location: Hertfordshire, England
Posted: 18th Jun 2005 00:22


This will allow you to create 32-bit Integers from Hex Strings, perfect for storing Colours or such in Data Statements

Baggers
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Yonder over dem dere hills
Posted: 18th Jun 2005 05:41
Hey, groovy idea there man...now i need to go learn hex!

Raven
19
Years of Service
User Offline
Joined: 23rd Mar 2005
Location: Hertfordshire, England
Posted: 18th Jun 2005 07:01
I made it simply because I didn't feel like finding out the numbers to colours.

0xFFFFFF = 0xRRGGBB

10 20 30 40 50 60 70 80
16 32 48 64 80 96 112 128

you can pretty much guess how to calc most of the colours with that small chart

Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 18th Jun 2005 07:08
i got a dll with that dec2hex and hex2dec

Login to post a reply

Server time is: 2024-11-23 11:28:24
Your offset time is: 2024-11-23 11:28:24