Options
All
  • Public
  • Public/Protected
  • All
Menu

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

property

{Number} SKIP - Deprecated. Use DST instead. Warning: This blend function does NOT fully disable the effect.

property

{Number} SET - Deprecated. Use SRC instead.

property

{Number} ADD - Additive blending. Fast, but may produce washed out results.

property

{Number} ALPHA - Alpha blending. Blends based on the alpha value of the new color.

property

{Number} AVERAGE - Calculates the avarage of the new color and the base color.

property

{Number} COLOR - Converts the colors to HSL and blends based on color.

property

{Number} COLOR_BURN - Color burn.

property

{Number} COLOR_DODGE - Color dodge.

property

{Number} DARKEN - Prioritize darker colors.

property

{Number} DIFFERENCE - Color difference.

property

{Number} DIVIDE - Color division.

property

{Number} DST - Overwrites the new color with the base color. Ignores opacity.

property

{Number} EXCLUSION - Color exclusion.

property

{Number} HARD_LIGHT - Hard light.

property

{Number} HARD_MIX - Hard mix.

property

{Number} HUE - Converts the colors to HSL and blends based on hue.

property

{Number} INVERT - Overwrites the base color with the inverted new color.

property

{Number} INVERT_RGB - Multiplies the new color with the inverted base color.

property

{Number} LIGHTEN - Prioritize lighter colors.

property

{Number} LINEAR_BURN - Linear burn.

property

{Number} LINEAR_DODGE - Same as ADD but limits the result to 1.

property

{Number} LINEAR_LIGHT - Linear light.

property

{Number} LUMINOSITY - Converts the colors to HSL and blends based on luminosity.

property

{Number} MULTIPLY - Color multiplication.

property

{Number} NEGATION - Negates the base color using the new color.

property

{Number} NORMAL - Overwrites the base color with the new one.

property

{Number} OVERLAY - Color overlay.

property

{Number} PIN_LIGHT - Pin light.

property

{Number} REFLECT - Color reflection.

property

{Number} SCREEN - Screen blending. The two colors are effectively projected on a white screen simultaneously.

property

{Number} SRC - Overwrites the base color with the new one. Ignores opacity.

property

{Number} SATURATION - Converts the colors to HSL and blends based on saturation.

property

{Number} SOFT_LIGHT - Soft light.

property

{Number} SUBTRACT - Subtracts the new color from the base color.

property

{Number} VIVID_LIGHT - Vivid light.

Index

Enumeration Members

ADD: number
ALPHA: number
AVERAGE: number
COLOR: number
COLOR_BURN: number
COLOR_DODGE: number
DARKEN: number
DIFFERENCE: number
DIVIDE: number
DST: number
EXCLUSION: number
HARD_LIGHT: number
HARD_MIX: number
HUE: number
INVERT: number
INVERT_RGB: number
LIGHTEN: number
LINEAR_BURN: number
LINEAR_DODGE: number
LINEAR_LIGHT: number
LUMINOSITY: number
MULTIPLY: number
NEGATION: number
NORMAL: number
OVERLAY: number
PIN_LIGHT: number
REFLECT: number
SATURATION: number
SCREEN: number
SET: number
SKIP: number
SOFT_LIGHT: number
SRC: number
SUBTRACT: number
VIVID_LIGHT: number