Skip to main content

Function: getBlendModeHash()

getBlendModeHash(blend): number

Defined in: attributes/shape/fill/blend.ts:38

Returns the integer hash for a blend mode, used as a shader uniform.

Parameters

blend

"color" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "hard-light" | "soft-light" | "difference" | "exclusion" | "hue" | "saturation" | "luminosity" | "normal"

Returns

number