API Reference / @gtkx/cairo / Operator
Enumeration: Operator
Defined in: enums.d.ts:6
How a drawing operation composites its source onto the destination.
Enumeration Members
ADD
ADD:
12
Defined in: enums.d.ts:171
Accumulates the source and destination layers.
ATOP
ATOP:
5
Defined in: enums.d.ts:157
Draws the source on top of the destination, limited to the destination's extents.
CLEAR
CLEAR:
0
Defined in: enums.d.ts:147
Clears the destination where the source is drawn.
COLOR_BURN
COLOR_BURN:
20
Defined in: enums.d.ts:187
Darkens the destination to reflect the source.
COLOR_DODGE
COLOR_DODGE:
19
Defined in: enums.d.ts:185
Brightens the destination to reflect the source.
DARKEN
DARKEN:
17
Defined in: enums.d.ts:181
Keeps the darker of the source and destination.
DEST
DEST:
6
Defined in: enums.d.ts:159
Ignores the source.
DEST_ATOP
DEST_ATOP:
10
Defined in: enums.d.ts:167
Leaves the destination on top of the source, limited to the source's extents.
DEST_IN
DEST_IN:
8
Defined in: enums.d.ts:163
Leaves the destination only where there was source content.
DEST_OUT
DEST_OUT:
9
Defined in: enums.d.ts:165
Leaves the destination only where there was no source content.
DEST_OVER
DEST_OVER:
7
Defined in: enums.d.ts:161
Draws the destination on top of the source.
DIFFERENCE
DIFFERENCE:
23
Defined in: enums.d.ts:193
Takes the difference of the source and destination.
EXCLUSION
EXCLUSION:
24
Defined in: enums.d.ts:195
Like DIFFERENCE but with lower contrast.
HARD_LIGHT
HARD_LIGHT:
21
Defined in: enums.d.ts:189
Multiplies or screens depending on the source lightness.
HSL_COLOR
HSL_COLOR:
27
Defined in: enums.d.ts:201
Takes the hue and saturation of the source and the luminosity of the destination.
HSL_HUE
HSL_HUE:
25
Defined in: enums.d.ts:197
Takes the hue of the source and the saturation and luminosity of the destination.
HSL_LUMINOSITY
HSL_LUMINOSITY:
28
Defined in: enums.d.ts:203
Takes the luminosity of the source and the hue and saturation of the destination.
HSL_SATURATION
HSL_SATURATION:
26
Defined in: enums.d.ts:199
Takes the saturation of the source and the hue and luminosity of the destination.
IN
IN:
3
Defined in: enums.d.ts:153
Draws the source where there was destination content.
LIGHTEN
LIGHTEN:
18
Defined in: enums.d.ts:183
Keeps the lighter of the source and destination.
MULTIPLY
MULTIPLY:
14
Defined in: enums.d.ts:175
Multiplies the source and destination colors, always darkening.
OUT
OUT:
4
Defined in: enums.d.ts:155
Draws the source where there was no destination content.
OVER
OVER:
2
Defined in: enums.d.ts:151
Draws the source over the destination.
OVERLAY
OVERLAY:
16
Defined in: enums.d.ts:179
Multiplies or screens depending on the destination lightness.
SATURATE
SATURATE:
13
Defined in: enums.d.ts:173
Like OVER, but assumes the source and destination are disjoint geometries.
SCREEN
SCREEN:
15
Defined in: enums.d.ts:177
Complements and multiplies the source and destination, always lightening.
SOFT_LIGHT
SOFT_LIGHT:
22
Defined in: enums.d.ts:191
Darkens or lightens depending on the source lightness.
SOURCE
SOURCE:
1
Defined in: enums.d.ts:149
Replaces the destination with the source.
XOR
XOR:
11
Defined in: enums.d.ts:169
Shows the source and destination where there is only one of them.