Enumeration BlendFunction

A blend function enumeration.

Important: Do not use BlendFunction.SKIP to disable effects. See Enabling and Disabling Effects for more information.

Based on https://www.khronos.org/registry/OpenGL/extensions/NV/NV_blend_equation_advanced.txt

Enumeration Members

ADD: number

Additive blending. Fast, but may produce washed out results.

ALPHA: number

Alpha blending. Blends based on the alpha value of the new color.

AVERAGE: number

Calculates the avarage of the new color and the base color.

COLOR: number

Converts the colors to HSL and blends based on color.

COLOR_BURN: number

Color burn.

COLOR_DODGE: number

Color dodge.

DARKEN: number

Prioritize darker colors.

DIFFERENCE: number

Color difference.

DIVIDE: number

Color division.

DST: number

Overwrites the new color with the base color. Ignores opacity.

EXCLUSION: number

Color exclusion.

HARD_LIGHT: number

Hard light.

HARD_MIX: number

Hard mix.

HUE: number

Converts the colors to HSL and blends based on hue.

INVERT: number

Overwrites the base color with the inverted new color.

INVERT_RGB: number

Multiplies the new color with the inverted base color.

LIGHTEN: number

Prioritize lighter colors.

LINEAR_BURN: number

Linear burn.

LINEAR_DODGE: number

Same as ADD but limits the result to 1.

LINEAR_LIGHT: number

Linear light.

LUMINOSITY: number

Converts the colors to HSL and blends based on luminosity.

MULTIPLY: number

Color multiplication.

NEGATION: number

Negates the base color using the new color.

NORMAL: number

Overwrites the base color with the new one.

OVERLAY: number

Color overlay.

PIN_LIGHT: number

Pin light.

REFLECT: number

Color reflection.

SATURATION: number

Converts the colors to HSL and blends based on saturation.

SCREEN: number

Screen blending. The two colors are effectively projected on a white screen simultaneously.

SET: number

Deprecated. Use SRC instead.

SKIP: number

Deprecated. Use DST instead. Warning: This blend function does NOT fully disable the effect.

SOFT_LIGHT: number

Soft light.

SRC: number

Overwrites the base color with the new one. Ignores opacity.

SUBTRACT: number

Subtracts the new color from the base color.

VIVID_LIGHT: number

Vivid light.