harfbuzzjs
    Preparing search index...

    Variable PaintCompositeModeConst

    PaintCompositeMode: {
        CLEAR: 0;
        COLOR_BURN: 18;
        COLOR_DODGE: 17;
        DARKEN: 15;
        DEST: 2;
        DEST_ATOP: 10;
        DEST_IN: 6;
        DEST_OUT: 8;
        DEST_OVER: 4;
        DIFFERENCE: 21;
        EXCLUSION: 22;
        HARD_LIGHT: 19;
        HSL_COLOR: 26;
        HSL_HUE: 24;
        HSL_LUMINOSITY: 27;
        HSL_SATURATION: 25;
        LIGHTEN: 16;
        MULTIPLY: 23;
        OVERLAY: 14;
        PLUS: 12;
        SCREEN: 13;
        SOFT_LIGHT: 20;
        SRC: 1;
        SRC_ATOP: 9;
        SRC_IN: 5;
        SRC_OUT: 7;
        SRC_OVER: 3;
        XOR: 11;
    } = ...

    The values of this enumeration describe the compositing modes that can be used when combining temporary redirected drawing with the backdrop.

    See the OpenType spec COLR section for details.

    Type Declaration

    • ReadonlyCLEAR: 0

      clear destination layer (bounded)

    • ReadonlyCOLOR_BURN: 18

      darkens the destination color to reflect the source color.

    • ReadonlyCOLOR_DODGE: 17

      brightens the destination color to reflect the source color.

    • ReadonlyDARKEN: 15

      replaces the destination with the source if it is darker, otherwise keeps the source.

    • ReadonlyDEST: 2

      ignore the source

    • ReadonlyDEST_ATOP: 10

      leave destination on top of source content and only there (unbounded)

    • ReadonlyDEST_IN: 6

      leave destination only where there was source content (unbounded)

    • ReadonlyDEST_OUT: 8

      leave destination only where there was no source content

    • ReadonlyDEST_OVER: 4

      draw destination on top of source

    • ReadonlyDIFFERENCE: 21

      Takes the difference of the source and destination color.

    • ReadonlyEXCLUSION: 22

      Produces an effect similar to difference, but with lower contrast.

    • ReadonlyHARD_LIGHT: 19

      Multiplies or screens, dependent on source color.

    • ReadonlyHSL_COLOR: 26

      Creates a color with the hue and saturation of the source and the luminosity of the target. This preserves the gray levels of the target and is useful for coloring monochrome images or tinting color images.

    • ReadonlyHSL_HUE: 24

      Creates a color with the hue of the source and the saturation and luminosity of the target.

    • ReadonlyHSL_LUMINOSITY: 27

      Creates a color with the luminosity of the source and the hue and saturation of the target. This produces an inverse effect to PaintCompositeMode.HSL_COLOR.

    • ReadonlyHSL_SATURATION: 25

      Creates a color with the saturation of the source and the hue and luminosity of the target. Painting with this mode onto a gray area produces no change.

    • ReadonlyLIGHTEN: 16

      replaces the destination with the source if it is lighter, otherwise keeps the source.

    • ReadonlyMULTIPLY: 23

      source and destination layers are multiplied. This causes the result to be at least as dark as the darker inputs.

    • ReadonlyOVERLAY: 14

      multiplies or screens, depending on the lightness of the destination color.

    • ReadonlyPLUS: 12

      source and destination layers are accumulated

    • ReadonlySCREEN: 13

      source and destination are complemented and multiplied. This causes the result to be at least as light as the lighter inputs.

    • ReadonlySOFT_LIGHT: 20

      Darkens or lightens, dependent on source color.

    • ReadonlySRC: 1

      replace destination layer (bounded)

    • ReadonlySRC_ATOP: 9

      draw source on top of destination content and only there

    • ReadonlySRC_IN: 5

      draw source where there was destination content (unbounded)

    • ReadonlySRC_OUT: 7

      draw source where there was no destination content (unbounded)

    • ReadonlySRC_OVER: 3

      draw source layer on top of destination layer (bounded)

    • ReadonlyXOR: 11

      source and destination are shown where there is only one of them