/** * Creates a path to be used with the SVG `d` attribute * * @param {number} x Top-left corner x-coordinate * @param {number} y Top-left corner y-coordinate * @param {number} width Rectangle width * @param {number} height Rectangle height * @param {number} radius Border radius * @returns {string} */ export function path(x: number, y: number, width: number, height: number, radius: number): string; /** * Paints a squircle onto the canvas * * @param {CanvasRenderingContext2D} ctx * @param {number} x Top-left corner x-coordinate * @param {number} y Top-left corner y-coordinate * @param {number} width Rectangle width * @param {number} height Rectangle height * @param {number} radius Border radius * @param {number} borderWidth Border stroke thickness * @param {string} fill Fill color * @param {string} borderColor Border stroke color */ export function paint(ctx: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, radius: number, borderWidth: number, fill: string, borderColor: string): void; /** * Adds a squircle path to the canvas * * @param {CanvasRenderingContext2D} ctx * @param {number} x Top-left corner x-coordinate * @param {number} y Top-left corner y-coordinate * @param {number} width Rectangle width * @param {number} height Rectangle height * @param {number} radius Border radius */ export function draw(ctx: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, radius: number): void; /** * Generates the points for a squircle * * @param {number} x Top-left corner x-coordinate * @param {number} y Top-left corner y-coordinate * @param {number} width Rectangle width * @param {number} height Rectangle height * @param {number} radius Border radius * @yields {Point} */ export function points(x: number, y: number, width: number, height: number, radius: number): Generator<{ x: number; y: number; }, void, unknown>;