painbrush

1.0.21.1.0
src/color/brush.d.ts
+src/color/brush.d.tsNew file
+11
Index: package/src/color/brush.d.ts
===================================================================
--- package/src/color/brush.d.ts
+++ package/src/color/brush.d.ts
@@ -0,0 +1,11 @@
+import type { LayerMeta } from "../layer.ts";
+import { type Color } from "./utils.ts";
+/**
+Anything that paints on a layer is a brush function. Brushes get the pixel position and layer metadata and decide what color to paint.
+
+Normally you just wanna use a solid color and theres solidFillBrush for that. check out other builtins in this file.
+*/
+export type Brush = (index: number, layer: LayerMeta) => Color;
+export declare const solidFillBrush: (color: Color) => Brush;
+export declare const borderBrush: (size?: number, borderColor?: Color, innerColor?: Color) => Brush;
+export declare const alphaBrush: () => Brush;