|
![](/i/fill.gif) |
Nathan Kopp wrote:
>
> One thing to add... this is basically a question of whether POV should be
> a 'strongly typed' language or not. In other words, should we allow
> implicit conversions (color <-> vector) or not.
I would leave the assignment of color status to the rgb* and/or
color keywords.
Vector->color conversions are trivial, but color->vector conversions
must be done with certain assumptions, such as rgbft.
But if there is no problem with vector<->color conversions,
why not allow them? What is wrong with
pigment { color rgb vrotate(<1, 0, 0>, <0, 0, clock*360>) }
or
#local c = color rgb <1, 0, 0>;
vlength(c)
for example?
--
http://www.flash.net/~djconnel/
Post a reply to this message
|
![](/i/fill.gif) |