21 lines
788 B
TypeScript
21 lines
788 B
TypeScript
import { BlendModeFilter } from '../filters/blend-modes/BlendModeFilter';
|
|
import type { ExtensionMetadata } from '../extensions/Extensions';
|
|
/**
|
|
* Hard defines each of the color channel values of the blend color to the RGB values of the base color.
|
|
* If the sum of a channel is 255, it receives a value of 255; if less than 255, a value of 0.
|
|
*
|
|
* Available as `container.blendMode = 'hard-mix'` 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 = 'hard-mix'
|
|
* @memberof filters
|
|
*/
|
|
export declare class HardMixBlend extends BlendModeFilter {
|
|
/** @ignore */
|
|
static extension: ExtensionMetadata;
|
|
constructor();
|
|
}
|