{"id":19732852,"url":"https://github.com/riptl/pixelstrom","last_synced_at":"2025-06-30T00:34:32.824Z","repository":{"id":85588134,"uuid":"458795930","full_name":"riptl/pixelstrom","owner":"riptl","description":"Pixelflut for Solana","archived":false,"fork":false,"pushed_at":"2022-02-13T19:35:06.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-08T00:08:19.115Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","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/riptl.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}},"created_at":"2022-02-13T11:59:01.000Z","updated_at":"2022-02-16T10:35:33.000Z","dependencies_parsed_at":"2023-03-13T05:58:11.944Z","dependency_job_id":null,"html_url":"https://github.com/riptl/pixelstrom","commit_stats":null,"previous_names":["riptl/pixelstrom"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/riptl/pixelstrom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riptl%2Fpixelstrom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riptl%2Fpixelstrom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riptl%2Fpixelstrom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riptl%2Fpixelstrom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riptl","download_url":"https://codeload.github.com/riptl/pixelstrom/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riptl%2Fpixelstrom/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262689758,"owners_count":23349136,"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-12T00:28:11.081Z","updated_at":"2025-06-30T00:34:32.799Z","avatar_url":"https://github.com/riptl.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pixelflut for Solana\n\n## Rules\n\n- Free-for-all\n- Canvas consisting of 32x32 chunk (3072 bytes)\n- RGB bitmap\n- Each transaction sets one pixel\n\n## Program\n\nThe `pixelstrom` program maintains the virtual canvas.\n\n### Instruction: SetPixel\n\nSets a single pixel in the canvas.\n\nWill only execute when it is the only instruction in a transaction.\n\nAccount inputs:\n1. Chunk account (writable)\n2. Instructions sysvar\n\nInstruction data (big-endian)\n1. `x: i32`\n2. `y: i32`\n3. `r: u8`\n4. `g: u8`\n5. `b: u8`\n\n### Account: Chunk\n\nChunk accounts are PDAs.\n\nThe PDA seeds list looks like this:\n- ASCII string `Chunk`\n- Big-endian i32 chunk coordinates (y, x).\n\n```python\ndef chunk_seed(y, x):\n    return [b'Chunk', struct.pack(\"\u003ei\", y), struct.pack(\"\u003ei\", x)]\n```\n\n```\n\u003e\u003e\u003e list([b.hex() for b in chunk_seed(-4, 3)])\n['4368756e6b', 'fffffffc', '00000003']\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friptl%2Fpixelstrom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friptl%2Fpixelstrom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friptl%2Fpixelstrom/lists"}