{"id":30020883,"url":"https://github.com/b0ney/iced-texture-canvas","last_synced_at":"2025-08-06T02:17:04.041Z","repository":{"id":306498690,"uuid":"807308577","full_name":"B0ney/iced-texture-canvas","owner":"B0ney","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-27T19:15:03.000Z","size":171,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-27T20:51:52.616Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/B0ney.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,"zenodo":null}},"created_at":"2024-05-28T21:16:46.000Z","updated_at":"2025-07-27T19:15:06.000Z","dependencies_parsed_at":"2025-07-27T20:51:55.629Z","dependency_job_id":"93c34a14-e3b9-4d19-bbda-116cc0d3a8b7","html_url":"https://github.com/B0ney/iced-texture-canvas","commit_stats":null,"previous_names":["b0ney/iced_texture_widget","b0ney/iced-texture-canvas"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/B0ney/iced-texture-canvas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B0ney%2Ficed-texture-canvas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B0ney%2Ficed-texture-canvas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B0ney%2Ficed-texture-canvas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B0ney%2Ficed-texture-canvas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/B0ney","download_url":"https://codeload.github.com/B0ney/iced-texture-canvas/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B0ney%2Ficed-texture-canvas/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269005891,"owners_count":24343408,"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-08-06T02:00:09.910Z","response_time":99,"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-08-06T02:17:00.885Z","updated_at":"2025-08-06T02:17:04.002Z","avatar_url":"https://github.com/B0ney.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Iced Texture Canvas (WIP)\n\nA widget similar to a [`image::Viewer`](https://docs.iced.rs/iced/widget/image/viewer/index.html) that lets you view bitmap data but with added enhancements.\n\nWhat sets this apart is that you can freely modify the image data without re-allocating or resorting to locks. This is good if you need to display frequently changing image data.\n\nInstead of using [`image::Handle`](https://docs.iced.rs/iced/advanced/image/enum.Handle.html), this crate provides `iced_texture::Bitmap` an rgba buffer stored on the CPU.\n\nAnd to view that buffer, you use `iced_texture::texture`.\n\n\n```rust\nuse iced_texture_canvas::{bitmap, texture_canvas};\n\n// create your bitmap image\nlet mut bitmap = bitmap(500, 500);\n\n// fill it with color\nbitmap.buffer_mut().fill(0xffffffff);\n\n\n// display it in your view method\ntexture_canvas(\u0026bitmap)\n\n```\n\nThe api also takes a few inspirations from [`MouseArea`](https://docs.iced.rs/iced/widget/struct.MouseArea.html)\n\u003c!-- \n## Advanced Usage\n### SurfaceHandler and Surface --\u003e\n\n# Run Example\n\n```\ncargo run -p demo\n```\n\n\n# Todos\n* API improvements\n* Documentation\n* Move scaling and positioning to user state.\n* Explore abstracting over image formats instead of just rgba.\n\n# Limitations\n* Only works if you're using the wgpu renderer.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb0ney%2Ficed-texture-canvas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb0ney%2Ficed-texture-canvas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb0ney%2Ficed-texture-canvas/lists"}