WIP script to generate PNG images from board configs

This commit is contained in:
Maciej Caderek
2022-04-30 07:23:55 +02:00
parent dd013b139f
commit d625ff4610
97 changed files with 1472 additions and 64 deletions

View File

@@ -1,6 +1,5 @@
import { SquareStyle } from "../../types";
import { LoadImage, SquareStyle } from "../../types";
import createGradient from "../fill/createGradient";
import loadImage from "../loaders/loadImage";
const drawRectangle = async (
ctx: CanvasRenderingContext2D,
@@ -9,6 +8,7 @@ const drawRectangle = async (
x: number,
y: number,
squareStyle: SquareStyle,
loadImage: LoadImage,
tiles: number = 8
) => {
if (squareStyle.type === "image") {