@awayjs/graphics
Version:
AwayJS graphics classes
30 lines • 1.05 kB
TypeScript
import { Matrix, Rectangle } from '@awayjs/core';
import { GradientType } from '../GradientType';
import { IFillStyle } from '../IGraphicsData';
export declare class GradientFillStyle implements IFillStyle {
static data_type: string;
/**
* The Vector of drawing commands as integers representing the path.
*/
colors: number[];
colors_r: number[];
colors_g: number[];
colors_b: number[];
alphas: number[];
ratios: number[];
ratio_min: number;
ratio_max: number;
type: GradientType;
matrix: Matrix;
spreadMethod: string;
interpolationMethod: string;
focalPointRatio: number;
uvRectangle: Rectangle;
private _uvMatrix;
constructor(type: GradientType, colors: number[], alphas: number[], ratios: number[], matrix: Matrix, spreadMethod: string, interpolationMethod: string, focalPointRatio: number);
getUVMatrix(): Matrix;
getColorAtPosition(value: number): number[];
toString(): string;
get data_type(): string;
}
//# sourceMappingURL=GradientFillStyle.d.ts.map