|
 |
That's the second time TODAY that I've seen the word "idempotent".
Spooky. But an excellent goal to set for all code.
Also applicable to the keyword project I was discussing, with regard to
self-documenting.
As Richard stated:
"Note that the `srgb` keyword will yield consistent colors
regardless of your assumed_gamma setting."
So, if we are using assumed_gamma 1.0 for all scenes, then why are we even using
rgb? If everything is implemented from here forward using srgb, then
everything should be good, right? N^1 = N.
Now, I often have to do experimentation where I modify colors from rgb to rgbf
to rgbt to maybe rgbft, and that gets to be a pain to go back and rewrite all
the keywords and color vectors.
Having worked out a fairly robust system for handling vector arity, I'm
considering just making some kind of all-purpose color macro, that detects the
size of the color vector and emits the appropriate keyword.
- BE
Post a reply to this message
|
 |