• Welcome to the new forum! We upgraded our forum software with a host of new boards, capabilities and features. It is also more secure.
    Jump in and join the conversation! You can learn more about the upgrade and new features here.

EBC to HEX/HTML

N

niclar

Hi..

I'm messing around with a PHP script for parsing BeerXML, and would like to show the color the beer should have, and for that, i need some kind of table or a way to calculate EBC to a HEX code. As i'm a happy BeerSmith owner, i know that somebody smarter than med has cracked this nut. Could you maybe point me in a direction were to look for a simple solution?
-At least more simple than exporting a recipe with every possible EBC and copy the color from that  ;)

Cheers

Nicky Larstrup
 
Nicky,
  If you use the tag $RGB_COLOR in a template it will give you the hex color.

  However, I don't know a simple way to do what you describe without programming some kind of color table in PHP.  You could use the above tag to get several color samples and interpolate from there in a table.

Cheers!
Brad
 
Back
Top