POV-Ray : Newsgroups : povray.text.scene-files : HTML color to PovRay color macro Server Time
22 Dec 2024 09:51:57 EST (-0500)
  HTML color to PovRay color macro (Message 1 to 1 of 1)  
From: Peter Santo
Subject: HTML color to PovRay color macro
Date: 15 Mar 2006 12:15:00
Message: <web.44184ac05017e713dbc416040@news.povray.org>
Hi,

I wrote a small macro that converts an html color statement of the form
"#rrggbb" in hexadecimal to a valid povray color statement. As a side
effect you get a generic hex to decimal macro.

I must admit I did not check if there were implementations of such a macro
before but I thought I might contribute it nevertheless. Maybe it is of use
for somebody.


Post a reply to this message


Attachments:
Download 'html2color.inc.txt' (1 KB)

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.