diff options
author | rodri <rgl@antares-labs.eu> | 2024-07-05 18:16:49 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-07-05 18:16:49 +0000 |
commit | 714038d0bce05c734d4e45289ec2bf1174463e4a (patch) | |
tree | 19fab85f0e561dcb831137aa676c994bc499ed58 /color.c | |
parent | 6d8fbc2953c6ae29ee5162ca04920d6cef85d0ce (diff) | |
download | libgraphics-714038d0bce05c734d4e45289ec2bf1174463e4a.tar.gz libgraphics-714038d0bce05c734d4e45289ec2bf1174463e4a.tar.bz2 libgraphics-714038d0bce05c734d4e45289ec2bf1174463e4a.zip |
create a new texture interface.
Diffstat (limited to 'color.c')
-rw-r--r-- | color.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -9,6 +9,10 @@ #include "internal.h" /* + * see also “The Importance of Being Linear”, Gritz and d'Eon, GPU Gems 3, Ch. 24, December 2007 + */ + +/* * generated with: * % seq 0 255 | awk '{$0 = $0/255; if($0 > 0.04045) $0 = (($0+0.055)/1.055)^2.4; else $0 = $0/12.92; printf("\t0x%02X,%s", int($0*255+0.5), NR%8 == 0? "\n": "")}' */ |