This is a tool that generates patchwork quilt pattern out of given square samples.
Get sure you have Go installed, and then run:
go get github.com/borodiychuk/patchwork
After that you can just call it like that:
patchwork -out patchwork.png -sample-file s1.png -sample-file s2.png -sample-color 255,0,127 -sample-color 127,127,255 # ... and so on
The application ties together concepts of:
- Sample provider. That is the data source for At this moment the sample can be imported from PNG file.
- Pattern composer. It composes a pattern out of available samples. Right now it can combine random samples in a way that no similar samples stay aside horizontally or vertically.
- Result renderer. It exports the result in particular format. Right now it can export to PNG.
- Sample provider that generates sample of given color.
- Composer that generates tetris board filled with respective figures.
- Composer that generates patchwork representation out of provided image.
- Exporter tht exports the result as ASCII text with symbolic schema and pieces count.