Skip to content

Commit eabc6cb

Browse files
committed
cleanup tabs/space to silence bikeshed
1 parent 0711e0e commit eabc6cb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

compositing-1/Overview.bs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@ In practice, this is usually all performed in one step.
11351135
The "mixing" formula is defined as:
11361136

11371137
<pre>
1138-
Cm = B(Cb, Cs)
1138+
Cm = B(Cb, Cs)
11391139
</pre>
11401140

11411141
with:
@@ -1154,7 +1154,7 @@ A transparent backdrop will cause the final result to be a weighted average betw
11541154
The value of the new color becomes:
11551155

11561156
<pre>
1157-
Cr = (1 - αb) x Cs + αb x B(Cb, Cs)
1157+
Cr = (1 - αb) x Cs + αb x B(Cb, Cs)
11581158
</pre>
11591159

11601160
with:
@@ -1183,9 +1183,9 @@ Note how the top rectangle shifts more toward red as the opacity of the <a>backd
11831183
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:
11841184
<pre>
11851185
simple alpha compositing:
1186-
co = cs + cb x (1 - αs)
1186+
co = cs + cb x (1 - αs)
11871187
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
11891189
now substitute the result of blending for Cs:
11901190
αo x Co = αs x ((1 - αb) x Cs + αb x B(Cb, Cs)) + (1 - αs) x αb x Cb
11911191
= α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
14481448
Creates a color with the hue of the source color and the saturation and luminosity of the <a>backdrop</a> color.
14491449

14501450
<pre>
1451-
B(Cb, Cs) = SetLum(SetSat(Cs, Sat(Cb)), Lum(Cb))
1451+
B(Cb, Cs) = SetLum(SetSat(Cs, Sat(Cb)), Lum(Cb))
14521452
</pre>
14531453
<div class="figure">
14541454
<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
14601460
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.
14611461

14621462
<pre>
1463-
B(Cb, Cs) = SetLum(SetSat(Cb, Sat(Cs)), Lum(Cb))
1463+
B(Cb, Cs) = SetLum(SetSat(Cb, Sat(Cs)), Lum(Cb))
14641464
</pre>
14651465
<div class="figure">
14661466
<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
14721472
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.
14731473

14741474
<pre>
1475-
B(Cb, Cs) = SetLum(Cs, Lum(Cb))
1475+
B(Cb, Cs) = SetLum(Cs, Lum(Cb))
14761476
</pre>
14771477
<div class="figure">
14781478
<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
14831483

14841484
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.
14851485
<pre>
1486-
B(Cb, Cs) = SetLum(Cb, Lum(Cs))
1486+
B(Cb, Cs) = SetLum(Cb, Lum(Cs))
14871487
</pre>
14881488
<div class="figure">
14891489
<img src="examples/luminosity.png" alt="example of luminosity blending">

0 commit comments

Comments
 (0)