Blockland Forums > Modification Help
Color Conversion
cucumberdude:
I was recently working with colors in Blockland and for some reason that is beyond me, Torque uses a decimal version of the Hex color system (that's the one with three, sometimes 4 for trans, numbers that can go up to 255). I was trying to get a certain color from my colorset (which DOES use Hex - yay for inconsistency!). To speed things up, I made a standard hex -> whatever blockland uses converter.
Here it is - hope this helps you out!
http://blocksphere.com/bin/converter.php
otto-san:
<3 i love you
Demian:
It's not exactly hard if your computer comes with a calculator. Hex to decimal is dividing with 255 and decimal to hex is multiplying with 255.
cucumberdude:
--- Quote from: Demian on June 13, 2011, 01:56:01 PM ---It's not exactly hard if your computer comes with a calculator. Hex to decimal is dividing with 255 and decimal to hex is multiplying with 255.
--- End quote ---
Agreed.
However, with a calculator you'd need to do that four separate times. This makes it much easier.
Additionally, the color code this generates is already in perfect format - you can just copypaste it.
Demian:
I'm still sticking to my calculator. Faster for me.