UNPKG

pixi-reactive

Version:

A library to help integrate PIXI into a React project

45 lines (44 loc) 985 B
export declare enum EffectType { BlackAndWhite = 0, Brightness = 1, Browni = 2, ColorTone = 3, Contrast = 4, Desaturate = 5, GreyScale = 6, Hue = 7, Kodachrome = 8, Lsd = 9, Negative = 10, Night = 11, Polaroid = 12, Predator = 13, Saturate = 14, Sepia = 15, Technicolor = 16, ToBGR = 17, Vintage = 18 } export declare enum EffectActionType { UpdateEffect = 0, RemoveEffect = 1 } export declare type EffectValue = { id: string; multiply?: boolean; effect?: EffectType; params?: number[]; enabled?: boolean; }; export declare type EffectAction = { type: EffectActionType; value: EffectValue; }; export declare type EffectState = { effects: string[]; effectMap: Map<string, EffectValue>; }; export declare type EffectContextType = { updateEffect: (value: EffectValue) => void; removeEffect: (id: string) => void; };