From 566eb2c9cce799ed8a3becc6d81560f1540eaacf Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Mon, 15 Dec 2025 16:30:22 +0100 Subject: Initial Release --- dist/patterns.d.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 dist/patterns.d.ts (limited to 'dist/patterns.d.ts') diff --git a/dist/patterns.d.ts b/dist/patterns.d.ts new file mode 100644 index 0000000..bf5188a --- /dev/null +++ b/dist/patterns.d.ts @@ -0,0 +1,16 @@ +/** + * Create a canvas pattern from a pattern definition + * @param {CanvasRenderingContext2D} ctx - Canvas context + * @param {Array} patternData - 8x8 pattern array + * @param {number} pixelSize - Size of each pattern pixel + * @param {string} fgColor - Foreground color (for 0 values) + * @param {string} bgColor - Background color (for 1 values) + * @returns {Promise} Canvas pattern + */ +export function createPattern(ctx: CanvasRenderingContext2D, patternData: Array, pixelSize: number, fgColor: string, bgColor: string): Promise; +export namespace patterns { + let stitch: number[]; + let shingles: number[]; + let shadowGrid: number[]; + let wicker: number[]; +} -- cgit