UNPKG

@dank-inc/sketchy

Version:

A Super-dank sketching library built with ♥ and typescript!

15 lines (14 loc) 591 B
export type ArcOptions = { fill?: boolean; stroke?: boolean; start?: number; end?: number; }; export declare const arc: (context: CanvasRenderingContext2D, x: number, y: number, r: number, { fill, stroke, start, end, }?: ArcOptions) => void; export declare const saver: (context: CanvasRenderingContext2D, body: () => void) => void; export type ShapeOptions = { fill?: boolean; stroke?: boolean; closed?: boolean; }; export declare const drawShape: (context: CanvasRenderingContext2D, points: [number, number][], { fill, stroke, closed }?: ShapeOptions) => void;