Change default weights for subpixel rendering - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/gamma.cpp
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2012年07月12日 09:54:21 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年07月12日 09:54:21 +0200
commiteab8909093c6a5439f35167c9422c1a0934524f5 (patch)
tree8fbe4ffdf7996403c54b834ca490f07ac14f9bca /agg-plot/gamma.cpp
parent09253ab2f22b37d18929c53e17f652b2c0efebba (diff)
downloadgsl-shell-eab8909093c6a5439f35167c9422c1a0934524f5.tar.gz
Change default weights for subpixel rendering
Diffstat (limited to 'agg-plot/gamma.cpp')
-rw-r--r--agg-plot/gamma.cpp 8
1 files changed, 7 insertions, 1 deletions
diff --git a/agg-plot/gamma.cpp b/agg-plot/gamma.cpp
index 36bce377..00961428 100644
--- a/agg-plot/gamma.cpp
+++ b/agg-plot/gamma.cpp
@@ -3,4 +3,10 @@
#ifndef DISABLE_GAMMA_CORR
gslshell::gamma_type gslshell::gamma(1.5);
#endif
-agg::lcd_distribution_lut gslshell::subpixel_lut(3./9., 2./9., 1./9.);
+// Original values for the subpixel color filter. These are quite conservative
+// to avoid color fringes.
+// agg::lcd_distribution_lut gslshell::subpixel_lut(3./9., 2./9., 1./9.);
+
+// Slightly more agressive values with more weight to primary channel.
+// Some people may notice colorer fringes but fonts looks sharper.
+agg::lcd_distribution_lut gslshell::subpixel_lut(0.448, 0.184, 0.092);
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月17日 19:16:06 +0000

AltStyle によって変換されたページ (->オリジナル) /