{"id":27938506,"url":"https://github.com/mwh/dither3x","last_synced_at":"2025-07-04T10:06:51.808Z","repository":{"id":270521058,"uuid":"910630652","full_name":"mwh/dither3x","owner":"mwh","description":"Generate accurate Windows 3.x dither patterns for any colour in-browser","archived":false,"fork":false,"pushed_at":"2025-01-01T23:53:05.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T08:50:47.664Z","etag":null,"topics":["dithering","javascript","retrocomputing","windows-3-x"],"latest_commit_sha":null,"homepage":"https://mwh.nz/dither/","language":"JavaScript","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/mwh.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":"2024-12-31T21:47:03.000Z","updated_at":"2025-01-02T06:42:30.000Z","dependencies_parsed_at":"2024-12-31T23:32:07.852Z","dependency_job_id":null,"html_url":"https://github.com/mwh/dither3x","commit_stats":null,"previous_names":["mwh/dither3x"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mwh/dither3x","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwh%2Fdither3x","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwh%2Fdither3x/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwh%2Fdither3x/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwh%2Fdither3x/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mwh","download_url":"https://codeload.github.com/mwh/dither3x/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwh%2Fdither3x/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263489686,"owners_count":23474527,"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":["dithering","javascript","retrocomputing","windows-3-x"],"created_at":"2025-05-07T08:48:52.420Z","updated_at":"2025-07-04T10:06:51.784Z","avatar_url":"https://github.com/mwh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Generate accurate Windows 3.x dither patterns for any solid colour\n\n    import dither from \"./dither.js\";\n    const dataURI = dither(128, 31, 190);\n    element.style.backgroundImage = `url(${dataURI})`;\n\nThe dither function takes an additional argument to specify the pixel\nsize (default 1). The resulting image will be (8 * px)x(8 * px).\n\nInstead of three integer components, a seven-character #abcdef hex\ncolour specifier can be given as the first argument.\n\nA `matrix` function is also exported, and returns an 8x8 array of hex\ncolour strings instead of an image.\n\nThe algorithm in use is adapted from expired US Patent 5485558, with\nsome corrections for bugs.\n\nA live tool using this library is accessible at https://mwh.nz/dither/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwh%2Fdither3x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmwh%2Fdither3x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwh%2Fdither3x/lists"}