UNPKG

pixi.js

Version:

<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">

25 lines (24 loc) 1.01 kB
import { BlendModeFilter } from '../filters/blend-modes/BlendModeFilter'; import type { ExtensionMetadata } from '../extensions/Extensions'; /** * The final color is the result of inverting the bottom color, dividing the value by the top color, * and inverting that value. A white foreground leads to no change. * A foreground with the inverse color of the backdrop leads to a black final image. * This blend mode is similar to multiply, but the foreground need only be as dark as the inverse * of the backdrop to make the final image black. * * Available as `container.blendMode = 'color-burn'` after importing `pixi.js/advanced-blend-modes`. * @example * import 'pixi.js/advanced-blend-modes'; * import { Sprite } from 'pixi.js'; * * const sprite = Sprite.from('something.png'); * sprite.blendMode = 'color-burn' * @category filters * @noInheritDoc */ export declare class ColorBurnBlend extends BlendModeFilter { /** @ignore */ static extension: ExtensionMetadata; constructor(); }