{"id":20757281,"url":"https://github.com/piebro/pixel-logic-patterns","last_synced_at":"2026-03-19T17:22:56.903Z","repository":{"id":237006673,"uuid":"793472932","full_name":"piebro/pixel-logic-patterns","owner":"piebro","description":"Interactive pixel logic pattern playground. ","archived":false,"fork":false,"pushed_at":"2024-04-29T15:08:46.000Z","size":201,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-03T03:41:45.280Z","etag":null,"topics":["generative-art","pixel-art","playground"],"latest_commit_sha":null,"homepage":"https://piebro.github.io/pixel-logic-patterns/","language":"HTML","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/piebro.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-04-29T09:36:34.000Z","updated_at":"2024-05-30T15:06:30.000Z","dependencies_parsed_at":"2024-05-11T10:15:54.087Z","dependency_job_id":null,"html_url":"https://github.com/piebro/pixel-logic-patterns","commit_stats":null,"previous_names":["piebro/pixel-logic-patterns"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/piebro/pixel-logic-patterns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piebro%2Fpixel-logic-patterns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piebro%2Fpixel-logic-patterns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piebro%2Fpixel-logic-patterns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piebro%2Fpixel-logic-patterns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piebro","download_url":"https://codeload.github.com/piebro/pixel-logic-patterns/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piebro%2Fpixel-logic-patterns/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29930344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T09:58:13.507Z","status":"ssl_error","status_checked_at":"2026-02-28T09:57:57.047Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["generative-art","pixel-art","playground"],"created_at":"2024-11-17T09:41:18.378Z","updated_at":"2026-02-28T10:31:13.571Z","avatar_url":"https://github.com/piebro.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pixel Logic Patterns\n\n[Pixel Logic Pattern](https://piebro.github.io/pixel-logic-patterns/) is a simple website to generate complex patterns using bitwise operations. It works by evaluating a formula like `(x ^ y) % v` for every pixel value, where `x` and `y` are the coordinates and `v` is an additional flexible value. If the result of the formula is `0`, the pixel is colored white; otherwise, it remains uncolored.\n\nJavaScript supports a range of bitwise operations which can be used, including AND (`\u0026`), OR (`|`), XOR (`^`), NOT (`~`), and bit shifts (`\u003c\u003c`, `\u003e\u003e`).\n\nExample using the formula `(x ^ y) % 5`\n![example image](pixel-logic-pattern-1.png)\n\nand another example using the formula `(x | y) % 5`\n![example image](pixel-logic-pattern-2.png)\n\nThe project is inspired from https://github.com/gingerbeardman/mandala, which does the same thing using lua and inspired me to this website.\n\n## Contributing\n\nContributions to this project are welcome. Feel free to report bugs, suggest ideas, or create merge requests. If you have cool example you can add them to the function lists [here](https://github.com/piebro/pixel-logic-patterns/blob/main/index.html#L68).\n\n## Developing\n\nThe project uses [Prettier](https://prettier.io/playground/) for linting JavaScript with a `print-width` of 120, `tab-width` of 4, and using single quotes.\n\n## Website Statistics\n\nThere is lightweight tracking for the website using Plausible. Anyone interested can view these [statistics](https://plausible.io/piebro.github.io%2Fpixel-logic-patterns). It's worth noting that these statistics might be an underestimate as many users, including myself, use AdBlockers.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiebro%2Fpixel-logic-patterns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiebro%2Fpixel-logic-patterns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiebro%2Fpixel-logic-patterns/lists"}