diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2017-06-23 17:29:43 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2017-06-29 19:02:18 +0100 |
commit | 8ddbbcacf10ea6943191fcce387afcc9e2cfc9b1 (patch) | |
tree | 0393f4a7758c045a95e75c210949a256a5cf29d6 | |
parent | 6370e358b5a32c8866be28e2dd1cc80f2be37e8f (diff) | |
download | mupdf-8ddbbcacf10ea6943191fcce387afcc9e2cfc9b1.tar.xz |
Fix typos in blend mode maths comment.
-rw-r--r-- | source/fitz/draw-paint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/draw-paint.c b/source/fitz/draw-paint.c index e86c3b71..7de650ab 100644 --- a/source/fitz/draw-paint.c +++ b/source/fitz/draw-paint.c @@ -16,7 +16,7 @@ We take the following as definitions: The general PorterDuff blending equation is: - Blend Z = X op Y cz = Fx.cx + Fy. cy where Fx and Fy depend on op + Blend Z = X op Y cz = Fx.cx + Fy.cy where Fx and Fy depend on op The two operations we use in this file are: '(X in Y) over Z' and 'S over Z'. The definitions of the 'over' and 'in' operations are as @@ -59,7 +59,7 @@ Non Pre-multiplied case: Cr.ar = Fs.Cs.as + Fz.Cz.az (where Fs = 1, Fz = 1-as) = Cs.as + (1-as).Cz.az = Cx.ax.ay + Cz.az.(1-ax.ay) - Cr = (Cx.ax.ay + Cz.az.(1-ax.ay))/(ax.ay + az.(1-ax-ay)) + Cr = (Cx.ax.ay + Cz.az.(1-ax.ay))/(ax.ay + az.(1-ax.ay)) Much more complex, it seems. However, if we could restrict ourselves to the case where we were always plotting onto an opaque background (i.e. |