{"id":30722705,"url":"https://github.com/coderarjob/libpix","last_synced_at":"2025-10-28T08:03:58.209Z","repository":{"id":246275881,"uuid":"820600452","full_name":"coderarjob/libpix","owner":"coderarjob","description":"Do what you want with put-pixel.  This Library which provides a 'frame buffer', put-pixel function and ablity to save it to a PPM file","archived":false,"fork":false,"pushed_at":"2024-09-14T12:54:18.000Z","size":288,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-14T23:04:08.971Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","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/coderarjob.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-06-26T19:56:16.000Z","updated_at":"2024-09-14T12:54:21.000Z","dependencies_parsed_at":"2024-09-14T23:04:13.836Z","dependency_job_id":"89490001-0653-4ffd-8877-299bd43cbfbb","html_url":"https://github.com/coderarjob/libpix","commit_stats":null,"previous_names":["coderarjob/simple-pixel","coderarjob/libpix"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coderarjob/libpix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderarjob%2Flibpix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderarjob%2Flibpix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderarjob%2Flibpix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderarjob%2Flibpix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderarjob","download_url":"https://codeload.github.com/coderarjob/libpix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderarjob%2Flibpix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273431588,"owners_count":25104532,"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-09-03T02:00:09.631Z","response_time":76,"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":[],"created_at":"2025-09-03T11:11:03.982Z","updated_at":"2025-10-19T10:22:36.093Z","avatar_url":"https://github.com/coderarjob.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libpix - A graphics library that's simple\n\nThe library provides a frame buffer and simple `put-pixel` and `save-to-file` routines. Thats all\nyou require to test and play around with graphics.\n\nSimply draw to the frame buffer save to a file then see the output!\n\nIt is increasingly becoming difficult to get a simple buffer and start drawing. I do somewhat\nunderstand why this is so - we are not living in DOS times! But still the barrier to start working\nwith graphics should not be this hard.\n\nThis GUI toolkit, this provides just a buffer where one can put pixels then save the buffer to a PPM\nfile and see the output.\n\n### Why PPM and not any other file format?\n\nBecause its a simple image format ([Wikipedia - Netpbm](https://en.wikipedia.org/wiki/Netpbm)) and is supported in Linux.\n\n## Example:\n\n![Example](/xor.png)\n\n```rust\nuse libpix::{Canvas, PPMFormats};\n\nconst WIDTH: usize = 400;\nconst HEIGHT: usize = 400;\n\nfn main() {\n    let mut c = Canvas::new(WIDTH, HEIGHT, PPMFormats::RAW);\n    for x in 0..WIDTH {\n        for y in 0..HEIGHT {\n            if (x ^ y) % 7 == 0 {\n                c.put_pixel(x, y, 0xFF0000);\n            }\n        }\n    }\n    c.save_to_file(\"example.ppm\").expect(\"Could not save image\");\n}\n```\n\n[Other examples](./examples)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderarjob%2Flibpix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderarjob%2Flibpix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderarjob%2Flibpix/lists"}