aboutsummaryrefslogtreecommitdiffstats
path: root/algorithms/dual-alpha_blending
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2020-05-01 21:56:58 +0200
committerMattias Andrée <maandree@kth.se>2020-05-01 21:56:58 +0200
commitbd37e7b7063cc8f59170670a3d740e4a48a2472a (patch)
tree6436931f1fb597a6c51592ea80dd4508f2848ee4 /algorithms/dual-alpha_blending
parentm fix (diff)
downloadlibskrift-bd37e7b7063cc8f59170670a3d740e4a48a2472a.tar.gz
libskrift-bd37e7b7063cc8f59170670a3d740e4a48a2472a.tar.bz2
libskrift-bd37e7b7063cc8f59170670a3d740e4a48a2472a.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'algorithms/dual-alpha_blending')
-rw-r--r--algorithms/dual-alpha_blending7
1 files changed, 6 insertions, 1 deletions
diff --git a/algorithms/dual-alpha_blending b/algorithms/dual-alpha_blending
index 8312abc..2c84f65 100644
--- a/algorithms/dual-alpha_blending
+++ b/algorithms/dual-alpha_blending
@@ -36,7 +36,12 @@ variable O). The new alpha blending algorithm
This algorithm works as the normal alpha blending
algorithm if the opacity is used instead of alpha,
-and alpha is set to 1, on the foregrund.
+and alpha is set to 1, on the foregrund. This
+algorithm is identical to the normal alpha blending
+algorithm except that the opacity replaces the
+foreground's alpha, and the alpha is treated as any
+other colour except all colour colours are still
+premultiplied with it, since it is still an opacity.
However, since libskrift is a text drawing library,