|
![](/i/fill.gif) |
clipka <ano### [at] anonymous org> wrote:
> Maybe we can even go so far as to allow HTML colors in SDL code? Those
> would automatically be subject to gamma correction.
If a color is expected but a string is found instead, then that string
could be interpreted as a color definition in HTML (or other similar)
syntax.
In other words, where you would normally write eg:
rgb <.5, .75, 1>
you can write instead:
"#7FBFFF"
As for a special shortcut syntax to gamma-precorrect regular color
definitions, I don't have many good ideas. Perhaps @ as a prefix could
work.
--
- Warp
Post a reply to this message
|
![](/i/fill.gif) |