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">
23 lines (22 loc) • 741 B
TypeScript
import type { ExtensionMetadata } from '../../../extensions/Extensions';
import type { Effect } from '../../../scene/container/Effect';
import type { PoolItem } from '../../../utils/pool/Pool';
/**
* The ColorMask effect allows you to apply a color mask to the rendering process.
* This can be useful for selectively rendering certain colors or for creating
* effects based on color values.
* @category rendering
* @advanced
*/
export declare class ColorMask implements Effect, PoolItem {
static extension: ExtensionMetadata;
priority: number;
mask: number;
pipe: string;
constructor(options: {
mask: number;
});
init(mask: number): void;
destroy(): void;
static test(mask: any): boolean;
}