All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.lib.graphic.Gradient.d.ts Maven / Gradle / Ivy

The newest version!
export interface GradientObject {
    id?: number;
    type: string;
    colorStops: GradientColorStop[];
    global?: boolean;
}
export interface InnerGradientObject extends GradientObject {
    __canvasGradient: CanvasGradient;
    __width: number;
    __height: number;
}
export interface GradientColorStop {
    offset: number;
    color: string;
}
export default class Gradient {
    id?: number;
    type: string;
    colorStops: GradientColorStop[];
    global: boolean;
    constructor(colorStops: GradientColorStop[]);
    addColorStop(offset: number, color: string): void;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy