aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/ColorLUT.hh
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2013-01-23 08:46:08 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2013-01-23 08:46:08 (GMT)
commite7bfc639323bf5d4b207323b6e2fd275dcb5d825 (patch)
treef88b3e16a21300e3356a93cd3b0eedcf90128773 /src/FbTk/ColorLUT.hh
parentc67743d010cd0346ef145b98bd1caec189e09dfd (diff)
downloadfluxbox-e7bfc639323bf5d4b207323b6e2fd275dcb5d825.zip
fluxbox-e7bfc639323bf5d4b207323b6e2fd275dcb5d825.tar.bz2
Improve calculation of brighter colors
The old code did not brighten up "pure" colors like "red", "green" and "blue" at all. The new code use a different precomputed LUT which is based upon simplified vector math, see the comments in FbTk/ColorLUT.cc
Diffstat (limited to 'src/FbTk/ColorLUT.hh')
-rw-r--r--src/FbTk/ColorLUT.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/FbTk/ColorLUT.hh b/src/FbTk/ColorLUT.hh
index 66b8493..a9ff410 100644
--- a/src/FbTk/ColorLUT.hh
+++ b/src/FbTk/ColorLUT.hh
@@ -24,10 +24,18 @@ namespace FbTk {
24 24
25namespace ColorLUT { 25namespace ColorLUT {
26 26
27#if 0 // unused
27extern const unsigned char PRE_MULTIPLY_1_5[256]; 28extern const unsigned char PRE_MULTIPLY_1_5[256];
28extern const unsigned char PRE_MULTIPLY_1_125[256]; 29extern const unsigned char PRE_MULTIPLY_1_125[256];
30#endif
29extern const unsigned char PRE_MULTIPLY_0_75[256]; 31extern const unsigned char PRE_MULTIPLY_0_75[256];
30 32
33extern const unsigned char BRIGHTER_4[256];
34extern const unsigned char BRIGHTER_8[256];
35#if 0 // unused
36extern const unsigned char BRIGHTER_16[256];
37#endif
38
31} 39}
32 40
33} 41}