|
 |
On 26.03.2026 11:15, jr wrote:
>
> after reading CR's reply, I'd like to add that POV-Ray include files, ideally,
> should be "idempotent", too. have attached a copy of a generated
> 'svg_colors.inc' post-processed (and renamed to fit :-)).
>
Unfortunately, I understand neither what "idempotent" mean nor what all
these
#ifdef(View_POV_Include_Stack)
#debug "including colours_svg.inc\n"
#end
are good for ;-). Therefore I'm afraid I can't make my script any
better, except for changing "rgb" to "srgb" (that's the only part I
understand).
Well, on the other hand, there seem to be one more thing I understand:
many colors in standard "colors.inc" seem to be named just like that
would be in exported inc, and I'm too lazy to check them all for
conflicts in case of importing both files. Perharps it would be better
to change naming convention from color_name.title() (i.e., "blue" to
"Blue") to, say, color_name.capitalize() (i.e., "blue" to "BLUE")? Or
may be use prefixes, like "blue" to "svg_blue" or something?
--
Ilyich the Toad
https://dnyarri.github.io/
Post a reply to this message
|
 |