You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compositing-1/Overview.bs
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1135,7 +1135,7 @@ In practice, this is usually all performed in one step.
1135
1135
The "mixing" formula is defined as:
1136
1136
1137
1137
<pre>
1138
-
Cm = B(Cb, Cs)
1138
+
Cm = B(Cb, Cs)
1139
1139
</pre>
1140
1140
1141
1141
with:
@@ -1154,7 +1154,7 @@ A transparent backdrop will cause the final result to be a weighted average betw
1154
1154
The value of the new color becomes:
1155
1155
1156
1156
<pre>
1157
-
Cr = (1 - αb) x Cs + αb x B(Cb, Cs)
1157
+
Cr = (1 - αb) x Cs + αb x B(Cb, Cs)
1158
1158
</pre>
1159
1159
1160
1160
with:
@@ -1183,9 +1183,9 @@ Note how the top rectangle shifts more toward red as the opacity of the <a>backd
1183
1183
Note: The following formula gives the color value in the area where the source and backdrop intersects and then composites with the specified Porter Duff compositing formula. For simple alpha blending, the formula thus becomes:
1184
1184
<pre>
1185
1185
simple alpha compositing:
1186
-
co = cs + cb x (1 - αs)
1186
+
co = cs + cb x (1 - αs)
1187
1187
written as non-premultiplied:
1188
-
αo x Co = αs x Cs + (1 - αs) x αb x Cb
1188
+
αo x Co = αs x Cs + (1 - αs) x αb x Cb
1189
1189
now substitute the result of blending for Cs:
1190
1190
αo x Co = αs x ((1 - αb) x Cs + αb x B(Cb, Cs)) + (1 - αs) x αb x Cb
1191
1191
= αs x (1 - αb) x Cs + αs x αb x B(Cb, Cs) + (1 - αs) x αb x Cb
@@ -1448,7 +1448,7 @@ components having the minimum, middle, and maximum values upon entry to the func
1448
1448
Creates a color with the hue of the source color and the saturation and luminosity of the <a>backdrop</a> color.
1449
1449
1450
1450
<pre>
1451
-
B(Cb, Cs) = SetLum(SetSat(Cs, Sat(Cb)), Lum(Cb))
1451
+
B(Cb, Cs) = SetLum(SetSat(Cs, Sat(Cb)), Lum(Cb))
1452
1452
</pre>
1453
1453
<div class="figure">
1454
1454
<img src="examples/hue.png" alt="example of hue blending">
@@ -1460,7 +1460,7 @@ Creates a color with the hue of the source color and the saturation and luminosi
1460
1460
Creates a color with the saturation of the source color and the hue and luminosity of the <a>backdrop</a> color. Painting with this mode in an area of the <a>backdrop</a> that is a pure gray (no saturation) produces no change.
1461
1461
1462
1462
<pre>
1463
-
B(Cb, Cs) = SetLum(SetSat(Cb, Sat(Cs)), Lum(Cb))
1463
+
B(Cb, Cs) = SetLum(SetSat(Cb, Sat(Cs)), Lum(Cb))
1464
1464
</pre>
1465
1465
<div class="figure">
1466
1466
<img src="examples/saturation.png" alt="example of saturation blending">
@@ -1472,7 +1472,7 @@ Creates a color with the saturation of the source color and the hue and luminosi
1472
1472
Creates a color with the hue and saturation of the source color and the luminosity of the <a>backdrop</a> color. This preserves the gray levels of the <a>backdrop</a> and is useful for coloring monochrome images or tinting color images.
1473
1473
1474
1474
<pre>
1475
-
B(Cb, Cs) = SetLum(Cs, Lum(Cb))
1475
+
B(Cb, Cs) = SetLum(Cs, Lum(Cb))
1476
1476
</pre>
1477
1477
<div class="figure">
1478
1478
<img src="examples/color.png" alt="example of color blending">
@@ -1483,7 +1483,7 @@ Creates a color with the hue and saturation of the source color and the luminosi
1483
1483
1484
1484
Creates a color with the luminosity of the source color and the hue and saturation of the <a>backdrop</a> color. This produces an inverse effect to that of the Color mode.
1485
1485
<pre>
1486
-
B(Cb, Cs) = SetLum(Cb, Lum(Cs))
1486
+
B(Cb, Cs) = SetLum(Cb, Lum(Cs))
1487
1487
</pre>
1488
1488
<div class="figure">
1489
1489
<img src="examples/luminosity.png" alt="example of luminosity blending">
0 commit comments