painbrush

1.0.21.1.0
src/layer/make-rectangle.d.ts
+src/layer/make-rectangle.d.tsNew file
+12
Index: package/src/layer/make-rectangle.d.ts
===================================================================
--- package/src/layer/make-rectangle.d.ts
+++ package/src/layer/make-rectangle.d.ts
@@ -0,0 +1,12 @@
+import { type Brush } from "../color/brush.ts";
+import type { Layer } from "../layer.ts";
+import type { XYCoords } from "../pixel.ts";
+/**
+This makes a rectangle with any fill.
+Useful for the initial canvas
+*/
+export declare const makeRectangleLayer: ({ x: width, y: height }: XYCoords, brush?: Brush) => Layer;
+/**
+ * Utility method to make a blank rectangle, makes a great bg
+ */
+export declare const makeBlankLayer: (coords: XYCoords) => Layer;