{"id":16928375,"url":"https://github.com/maartengr/sprite-generator","last_synced_at":"2025-10-09T10:41:53.150Z","repository":{"id":43238568,"uuid":"259901008","full_name":"MaartenGr/Sprite-Generator","owner":"MaartenGr","description":"Python procedural sprite generator","archived":false,"fork":false,"pushed_at":"2023-10-03T21:56:58.000Z","size":211,"stargazers_count":41,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-11T17:51:03.234Z","etag":null,"topics":["pixel","pixel-art","procedural-generation","sprite-generator","sprites"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MaartenGr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-29T11:00:12.000Z","updated_at":"2025-04-01T14:19:46.000Z","dependencies_parsed_at":"2025-02-19T22:31:02.393Z","dependency_job_id":"1692af5e-bff0-450c-a4ca-c5a02612133f","html_url":"https://github.com/MaartenGr/Sprite-Generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MaartenGr/Sprite-Generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaartenGr%2FSprite-Generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaartenGr%2FSprite-Generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaartenGr%2FSprite-Generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaartenGr%2FSprite-Generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaartenGr","download_url":"https://codeload.github.com/MaartenGr/Sprite-Generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaartenGr%2FSprite-Generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001275,"owners_count":26083040,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["pixel","pixel-art","procedural-generation","sprite-generator","sprites"],"created_at":"2024-10-13T20:36:36.266Z","updated_at":"2025-10-09T10:41:53.123Z","avatar_url":"https://github.com/MaartenGr.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"Sprite Generator\n======================\n\nA python port of https://github.com/zfedoran/pixel-sprite-generator. It essentially\ntakes in any template and randomly generates sprites based on the template.   \n\n## Algorithm\nThe sprites are generated by using a two dimensional mask. The values in the mask are then randomized and mirrored. The resulting template is rendered to a canvas element.\n\n\u003ca href=\"http://web.archive.org/web/20080228054410/http://www.davebollinger.com/works/pixelspaceships/\"\u003e\u003cimg src=\"https://github.com/zfedoran/pixel-sprite-generator/raw/master/doc/algorithm-1.png\"\u003e\u003c/a\u003e\n\nThe algorithm is explained in more detail on [Dave Bollinger's](http://web.archive.org/web/20080228054410/http://www.davebollinger.com/works/pixelspaceships/) website.\n\n\u003ca href=\"http://web.archive.org/web/20080228054410/http://www.davebollinger.com/works/pixelspaceships/\"\u003e\u003cimg src=\"https://github.com/zfedoran/pixel-sprite-generator/raw/master/doc/algorithm-0.png\"\u003e\u003c/a\u003e\n\n## Examples\n**Spaceships**  \n![](images/spaceships.png)\n\n**Robots**  \n![](images/robots.png)\n\n**Dragons**  \n![](images/dragons.png)\n\n**Dragons Top-Down**  \n![](images/dragons_top.png)\n\n\n\n## Code\n```python\nfrom SpriteGenerator import generate_canvas\n\nrobot = [[0, 0, 0, 0],\n         [0, 1, 1, 1],\n         [0, 1, 2, 2],\n         [0, 0, 1, 2],\n         [0, 0, 0, 2],\n         [1, 1, 1, 2],\n         [0, 1, 1, 2],\n         [0, 0, 0, 2],\n         [0, 0, 0, 2],\n         [0, 1, 2, 2],\n         [1, 1, 0, 0]]\n\nim = generate_canvas(robot, \n                     color_variations=0.2, \n                     brightness_noise=0.3,\n                     edge_brightness=0.3, \n                     saturation=0.2, \n                     colored=False, \n                     mirror=True, \n                     n=80,\n                     nr_columns=20)\nim.resize((im.size[0]*2, im.size[1]*2))\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaartengr%2Fsprite-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaartengr%2Fsprite-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaartengr%2Fsprite-generator/lists"}