UNPKG

@awayjs/stage

Version:
27 lines 950 B
import { Image2D, _Stage_Image2D } from '../image/Image2D'; interface IAtlasEntry { hash: string; index: number; } export declare class GradientAtlas extends Image2D { static assetType: string; _data: Uint8Array; private _gradMap; private _count; static gradientAtlases: GradientAtlas[]; get assetType(): string; static getAtlassForHash(hash: string, findEmpty?: boolean): GradientAtlas; static computeHash(colors: number[], alphas: number[], ratios: number[]): string; constructor(); get full(): boolean; get length(): number; hasGradient(hash: string): boolean; getGradient(hash: string): IAtlasEntry; setGradient(colors: number[], alphas: number[], ratios: number[]): IAtlasEntry | null; private fillRow; } export declare class _Stage_GradientAtlass extends _Stage_Image2D { getTexture(): import("../..").ITextureBase; } export {}; //# sourceMappingURL=GradientAtlas.d.ts.map