Skip to content

Latest commit

 

History

History
32 lines (17 loc) · 800 Bytes

README.md

File metadata and controls

32 lines (17 loc) · 800 Bytes

Streaming tile generator for floors :p

.. should the handyman want random (infinite) floors !

It will generate a floor (rows and cells) of tiles that span either 1 or 2 cells.

floor sample in svg

Max 10 colors.

Dbl tiles will sometimes be used at end of row since we have invented THE SAW.

Build

Make sure you have Linux (doh) and haskell-platform !

$ cabal configure && cabal build

Run w unix colors ( ESC[ )

usage: tile-gen <colors> <span-odds> <floor-w> <floor-h>

$ ./tile-gen 3 3 20 20

Generate SVG

$ ./tile-gen 4 1 24 48 | tee /dev/stderr | ./2svg > my-floor.svg

TODO

  • moneySaver func (merge small cell into dbl if siblings)
  • summary XSLT (after floor have been optimized MANUALLY in Inkscape :)