patchwork

command module
v0.0.0-...-a625e7b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2017 License: MIT Imports: 12 Imported by: 0

README

Patchwork quilt patterns generator

Build Status Go Report Card

This is a tool that generates patchwork quilt pattern out of given square samples.

Patchwork output example with shuffle composer Patchwork output example with crosses composer

How to run it

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

How is it built

The application ties together concepts of:

  1. Sample provider. That is the data source for At this moment the sample can be imported from PNG file.
  2. 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.
  3. Result renderer. It exports the result in particular format. Right now it can export to PNG.

TODO

  • 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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package composers defines different kind of composers that can compose canvas pattern out of samples
Package composers defines different kind of composers that can compose canvas pattern out of samples
Package models describs necessary models
Package models describs necessary models
Package renderers defines different kind of formats that the canvas can be exported into.
Package renderers defines different kind of formats that the canvas can be exported into.
Package samples defines different kind of definitions for cloth samples
Package samples defines different kind of definitions for cloth samples
Package support defines different suport utility that stand outside of the problem domain
Package support defines different suport utility that stand outside of the problem domain

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL