{"id":13734404,"url":"https://github.com/ollej/quad-gif","last_synced_at":"2025-05-08T10:31:40.242Z","repository":{"id":37570394,"uuid":"505983135","full_name":"ollej/quad-gif","owner":"ollej","description":"Display GIF animations with Macroquad","archived":false,"fork":false,"pushed_at":"2023-09-23T12:15:48.000Z","size":494,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-17T01:47:31.598Z","etag":null,"topics":["animation","crate","gif","macroquad","rust"],"latest_commit_sha":null,"homepage":"","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/ollej.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}},"created_at":"2022-06-21T19:47:04.000Z","updated_at":"2024-01-29T10:28:51.000Z","dependencies_parsed_at":"2024-01-11T14:26:09.389Z","dependency_job_id":null,"html_url":"https://github.com/ollej/quad-gif","commit_stats":{"total_commits":40,"total_committers":1,"mean_commits":40.0,"dds":0.0,"last_synced_commit":"3e95c44cba10ef483df63157f9eacf16371a761a"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ollej%2Fquad-gif","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ollej%2Fquad-gif/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ollej%2Fquad-gif/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ollej%2Fquad-gif/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ollej","download_url":"https://codeload.github.com/ollej/quad-gif/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224720939,"owners_count":17358485,"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":["animation","crate","gif","macroquad","rust"],"created_at":"2024-08-03T03:00:55.354Z","updated_at":"2025-05-08T10:31:40.215Z","avatar_url":"https://github.com/ollej.png","language":"Rust","funding_links":[],"categories":["Libraries"],"sub_categories":["Libraries: Other"],"readme":"# quad-gif\n\n[![Cross-compile](https://github.com/ollej/quad-gif/actions/workflows/crosscompile.yml/badge.svg)](https://github.com/ollej/quad-gif/actions/workflows/crosscompile.yml) [![Crates.io](https://img.shields.io/crates/v/quad-gif)](https://crates.io/crates/quad-gif) [![docs.rs](https://img.shields.io/docsrs/quad-gif)](https://docs.rs/quad-gif/latest/quad_gif/) [![Crates.io](https://img.shields.io/crates/l/quad-gif)](https://opensource.org/licenses/MIT)\n\nDisplay looping GIF animations with Macroquad.\n\nThe animation will loop forever, regardless of how many iterations are set in\nthe file.\n\n[Documentation](https://docs.rs/quad-gif/latest/quad_gif/) on docs.rs\n\n## Usage\n\nThere is a binary file included that can be used to show a GIF file.\n\n```\nquad-gif 0.3.0\nDisplay a GIF file.\n\nUsage: quad-gif \u003cfile\u003e\n```\n\n## API usage\n\nThe library can be used in a Macroquad application to show an animation.\n\n```rust\nuse macroquad::prelude::*;\nuse quad_gif;\n\n#[macroquad::main(\"quad-gif\")]\nasync fn main() {\n    let mut animation = quad_gif::GifAnimation::load(\"animation.gif\".to_string()).await;\n\n    clear_background(WHITE);\n    loop {\n        animation.draw();\n        animation.tick();\n        next_frame().await\n    }\n}\n```\n\n## License\n\nCopyright 2022 Olle Wreede, released under the MIT License.\n\n## Attribution\n\nAnimated Ferris in Action by A. L. Palmer\n\nHappy as a Rustacean at Rust Fest Berlin 2016 (www.rustfest.eu)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Follej%2Fquad-gif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Follej%2Fquad-gif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Follej%2Fquad-gif/lists"}