{"id":20418862,"url":"https://github.com/sehugg/dithertron","last_synced_at":"2025-04-09T14:13:20.263Z","repository":{"id":52494365,"uuid":"274224310","full_name":"sehugg/dithertron","owner":"sehugg","description":"Retro 8-bit bitmap converter supporting many formats","archived":false,"fork":false,"pushed_at":"2024-11-02T15:58:52.000Z","size":7611,"stargazers_count":77,"open_issues_count":18,"forks_count":12,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-02T12:12:23.856Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sehugg.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-22T19:24:50.000Z","updated_at":"2025-04-02T03:12:19.000Z","dependencies_parsed_at":"2023-01-22T08:45:21.375Z","dependency_job_id":"843ead93-c7f2-4ab4-8b8e-64a73b4d43cb","html_url":"https://github.com/sehugg/dithertron","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/sehugg%2Fdithertron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sehugg%2Fdithertron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sehugg%2Fdithertron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sehugg%2Fdithertron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sehugg","download_url":"https://codeload.github.com/sehugg/dithertron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248054193,"owners_count":21039952,"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":[],"created_at":"2024-11-15T06:35:03.078Z","updated_at":"2025-04-09T14:13:20.232Z","avatar_url":"https://github.com/sehugg.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Dithertron\n==========\n\n[Try it online!](https://8bitworkshop.com/dithertron/)\n\nThis interactive web-based tool converts full-color images to full-screen 8-bit retro formats,\nperforming cropping, resizing, palette selection, and dithering.\n\nSome formats (e.g. C64 multicolor, TMS9918A, ZX Spectrum, NES 5-color)\nsplit the screen into smaller sub-blocks that each can only display 2 to 4 colors of a larger palette.\nNeighboring sub-blocks may affect each other when dithering is enabled,\nso Dithertron chooses good colors for each sub-block and iterates until they stabilize.\n\nFor modes with constrained palette choices (e.g. C64 Hires, ZX Spectrum, MSX/Coleco)\nit might help to reduce the Dither parameter, otherwise the dither errors will accumulate\nand create blocky splotches.\n\n\n## How To Use\n\n1. Upload an image, or select an example image from the pulldown.\n\n2. Choose a target format.\n\n3. Play with the sliders until you're happy with the result.\n\n4. Download the final image (PNG), download a binary file, or open an image viewer code sample in 8bitworkshop.\n\n\n## Graphics Formats\n\nThese formats will export a sample 8bitworkshop project that displays the image:\n\n* C-64 Multi - 160 x 200, 16 colors, 4 colors per 4x8 block\n* C-64 Hires - 320 x 200, 16 colors, 2 colors per 8x8 block\n* NES (4 color, 240 tiles) - 160 x 96, 4 out of 64 colors\n* TMS9918A (Mode 2) - 256 x 192, 16 colors, 2 colors per 8x1 block\n* Apple ][ Hires - 140 x 192, 6 colors, 4 colors per 7x1 block\n* Atari ANTIC D - 160 x 96, 4 out of 256 colors\n* Atari VCS - 40 x 192, 2 out of 256 colors\n* Bally Astrocade - 160 x 98, 4 out of 256 colors\n* ZX Spectrum - 256 x 192, 8 colors, 2 colors per 8x8 block\n* Amstrad CPC (mode 0) - 160 x 200, 16 out of 27 colors\n* Amstrad CPC (mode 1) - 320 x 200, 4 out of 27 colors\n\nOther formats:\n\n* NES (4 color, full screen) - 256 x 240, 4 out of 64 colors\n* NES (5 color, full screen) - 256 x 240, 5 out of 64 colors\n* Atari 7800 (160A) - 160 x 240, 4 out of 256 colors\n* Atari 7800 (160B) - 160 x 240, 12 out of 256 colors\n* Sega Master System - 176 x 144, 16 out of 64 colors\n* BBC Micro (mode 2) - 160 x 256, 8 colors\n* Apple ][ Double-Hires - 140 x 192, 16 colors\n* Apple ][ Lores - 40 x 48, 16 colors\n* Fairchild Channel F - 102 x 58, 4 out of 4 colors\n* Mac 128K - 512 x 342, monochrome\n* PC CGA Modes - 320 x 200, 4 colors\n* PC EGA Mode 0Dh - 320 x 200, 16 out of 16 colors\n* PC EGA Mode 10h - 640 x 350, 16 out of 16 colors\n* Williams Arcade - 304 x 256, 16 out of 256 colors\n* PICO-8 - 128 x 128, 16 colors\n* TIC-80 - 240 x 136, 16 colors\n* Game Boy Classic - 160 x 144, 4 colors\n* Commander X16 - 320 x 240, 256 colors out of 4096\n* Commander X16 - 640 x 400 (cropped to fit in VRAM), 16 colors out of 4096\n* Amiga Lores - 320 x 256, 32 colors out of 4096\n* Amiga Lores HAM6 - 320 x 256, 4096 colors via HAM\n\n\n## Development\n\nTo clone just the main branch:\n\n```sh\ngit clone -b master --single-branch git@github.com:sehugg/8bitworkshop.git\n```\n\nInstall modules:\n~~~~\nnpm i\n~~~~\nBuild:\n~~~~\nmake setup      (or \"make setupwin\" on Windows)\nnpm run build\n~~~~\nWatch:\n~~~~\nmake watch\n~~~~\n\nThen open `http://localhost:8189` in browser.\n\nDev version: https://sehugg.github.io/dithertron\n\n\n## TODO\n\n* Palette editing\n* Search for optimal crop window\n* Check pixel-exact source images\n* Interlaced modes (VCS color)\n* Refresh retains mode settings\n* Custom width and height (crop rect for non-full-screen)\n* Faster closest color lookup\n\n## License\n\nCopyright © 2016-2023 [Steven Hugg](https://github.com/sehugg).\n\nThis project is [GPL-3.0](https://github.com/sehugg/8bitworkshop/blob/master/LICENSE) licensed.\n\nDependencies retain their original licenses.\n\nAll exported code is licensed under\n[CC0](https://creativecommons.org/publicdomain/zero/1.0/).\n\n\n## Sample Images\n\nhttps://www.pexels.com/photo/dreamy-black-woman-in-bright-headscarf-near-rough-wall-4615699/\nhttps://www.pexels.com/photo/creative-graffiti-wall-with-portrait-of-frida-kahlo-6424244/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsehugg%2Fdithertron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsehugg%2Fdithertron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsehugg%2Fdithertron/lists"}