UNPKG

@flashport/flashport

Version:

FlashPort is a TypeScript 2D graphics library that largely replicates the Flash ActionScript 3.0 library

18 lines (17 loc) 684 B
import { IGraphicsFill } from "./IGraphicsFill"; import { IGraphicsData } from "./IGraphicsData"; import { ColorTransform } from "../geom/ColorTransform"; import { Canvas, Paint, Path } from "canvaskit-wasm"; import { Matrix } from "../geom"; export declare class GraphicsSolidFill extends Object implements IGraphicsFill, IGraphicsData { color: number; alpha: number; _glcolor: any[]; paint: Paint; path: Path; graphicType: string; private rgba; constructor(color?: number, alpha?: number); draw(ctx: CanvasRenderingContext2D, colorTransform: ColorTransform): void; skiaDraw(ctx: Canvas, colorTransform: ColorTransform, mat?: Matrix): void; }