{"id":19303612,"url":"https://github.com/borodiychuk/patchwork","last_synced_at":"2025-02-24T02:13:24.337Z","repository":{"id":57525390,"uuid":"95974753","full_name":"borodiychuk/patchwork","owner":"borodiychuk","description":"Patchwork quilt patterns generator","archived":false,"fork":false,"pushed_at":"2022-07-14T12:34:40.000Z","size":41,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-05T23:41:41.463Z","etag":null,"topics":["cli","go","golang","patchwork","png"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/borodiychuk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-01T16:14:10.000Z","updated_at":"2023-02-14T03:55:00.000Z","dependencies_parsed_at":"2022-09-10T23:55:03.305Z","dependency_job_id":null,"html_url":"https://github.com/borodiychuk/patchwork","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borodiychuk%2Fpatchwork","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borodiychuk%2Fpatchwork/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borodiychuk%2Fpatchwork/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borodiychuk%2Fpatchwork/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borodiychuk","download_url":"https://codeload.github.com/borodiychuk/patchwork/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240404754,"owners_count":19796064,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","go","golang","patchwork","png"],"created_at":"2024-11-09T23:26:59.134Z","updated_at":"2025-02-24T02:13:24.318Z","avatar_url":"https://github.com/borodiychuk.png","language":"Go","readme":"# Patchwork quilt patterns generator\n\n[![Build Status](https://travis-ci.org/borodiychuk/patchwork.svg?branch=master)](https://travis-ci.org/borodiychuk/patchwork) [![Go Report Card](https://goreportcard.com/badge/github.com/borodiychuk/patchwork)](https://goreportcard.com/report/github.com/borodiychuk/patchwork)\n\nThis is a tool that generates patchwork quilt pattern out of given square samples.\n\n\u003cp align=\"center\" \u003e\u003cimg src=\"https://user-images.githubusercontent.com/1705072/27992353-02a562f6-6493-11e7-8e57-b6b976c97f5a.png\" alt=\"Patchwork output example with shuffle composer\"\u003e \u003cimg src=\"https://user-images.githubusercontent.com/1705072/27992352-02a2d824-6493-11e7-9b61-21f36a0b6cba.png\" alt=\"Patchwork output example with crosses composer\"\u003e\u003c/p\u003e\n\n## How to run it\n\nGet sure you have Go installed, and then run:\n```\ngo get github.com/borodiychuk/patchwork\n```\nAfter that you can just call it like that:\n```\npatchwork -out patchwork.png -sample-file s1.png -sample-file s2.png -sample-color 255,0,127 -sample-color 127,127,255 # ... and so on\n```\n\n## How is it built\n\nThe application ties together concepts of:\n1. *Sample provider*. That is the data source for At this moment the sample can be imported from PNG file.\n2. *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.\n3. *Result renderer*. It exports the result in particular format. Right now it can export to PNG.\n\n## TODO\n\n* Sample provider that generates sample of given color.\n* Composer that generates tetris board filled with respective figures.\n* Composer that generates patchwork representation out of provided image.\n* Exporter tht exports the result as ASCII text with symbolic schema and pieces count.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborodiychuk%2Fpatchwork","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborodiychuk%2Fpatchwork","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborodiychuk%2Fpatchwork/lists"}