summaryrefslogtreecommitdiff
path: root/color.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-07-05 18:16:49 +0000
committerrodri <rgl@antares-labs.eu>2024-07-05 18:16:49 +0000
commit714038d0bce05c734d4e45289ec2bf1174463e4a (patch)
tree19fab85f0e561dcb831137aa676c994bc499ed58 /color.c
parent6d8fbc2953c6ae29ee5162ca04920d6cef85d0ce (diff)
downloadlibgraphics-714038d0bce05c734d4e45289ec2bf1174463e4a.tar.gz
libgraphics-714038d0bce05c734d4e45289ec2bf1174463e4a.tar.bz2
libgraphics-714038d0bce05c734d4e45289ec2bf1174463e4a.zip
create a new texture interface.
Diffstat (limited to 'color.c')
-rw-r--r--color.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/color.c b/color.c
index cdd089f..6ba23e3 100644
--- a/color.c
+++ b/color.c
@@ -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": "")}'
*/