[]
DsPdfJS API / BlendMode
Defines methods of mixing source and destination colors when drawing.
Color:
14
Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color.
ColorBurn:
7
Darkens the backdrop color to reflect the source color.
ColorDodge:
6
Brightens the backdrop color to reflect the source color.
Darken:
4
Selects the darker of the backdrop and source colors.
Difference:
10
Subtracts the darker of the two constituent colors from the lighter color.
Exclusion:
11
Produces an effect similar to that of the Difference mode but lower in contrast.
HardLight:
8
Multiplies or screens the colors, depending on the source color value.
Hue:
12
Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color.
Lighten:
5
Selects the lighter of the backdrop and source colors.
Luminosity:
15
Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color.
Multiply:
1
The source color is multiplied by the destination color and replaces the destination.
Normal:
0
No blending takes place. The source color replaces the destination color.
Overlay:
3
Multiplies or screens the colors, depending on the backdrop color value.
Saturation:
13
Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color.
Screen:
2
Multiplies the complements of the backdrop and source color values, then complements the result.
SoftLight:
9
Darkens or lightens the colors, depending on the source color value.