From 2e2e209ceb69111e1b882f266f0be6013c16fd95 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 28 Sep 2020 01:46:35 +0100 Subject: [PATCH] README: Add cookbook section --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index e22ca0b..2f9cc43 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,22 @@ Users who have sh (Bash works too) installed can use the `maze` wrapper script i ./maze maze -w 25 -h 25 ``` +### Cookbook + +#### Make an (almost) seamless texture +``` +./maze maze_svg --scale 40 -w 31 -h 31 -f maze.svg +inkscape -o maze.png maze.svg +convert maze.png -crop 1080x1080+80+80 extract.png +``` + +The formula here for the crop is: + + - **width:** w * scale - (scale * 4) + - **height:** h * scale - (scale * 4) + - **x offset:** scale * 2 + - **y offset:** scale * 2 + ![(Horizontal line)](https://starbeamrainbowlabs.com/blog/images/20200831-mazes/hr.png) ## Contributing