{"id":23124991,"url":"https://github.com/matusollah/sparrow","last_synced_at":"2025-04-04T05:09:55.506Z","repository":{"id":207043539,"uuid":"718292292","full_name":"MatusOllah/sparrow","owner":"MatusOllah","description":"Sparrow v2 texture atlas library for Go","archived":false,"fork":false,"pushed_at":"2024-02-02T14:31:31.000Z","size":4799,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T16:22:49.361Z","etag":null,"topics":["adobe","adobe-animate","atlas","flixel","fnf","friday-night-funkin","funkin","go","golang","haxeflixel","sparrow","starling-framework","texture-atlas","texture-pack","xml"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/MatusOllah/sparrow","language":"Go","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/MatusOllah.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":"2023-11-13T19:32:52.000Z","updated_at":"2024-05-26T01:49:45.000Z","dependencies_parsed_at":"2024-12-17T08:12:17.171Z","dependency_job_id":null,"html_url":"https://github.com/MatusOllah/sparrow","commit_stats":null,"previous_names":["matusollah/sparrow"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatusOllah%2Fsparrow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatusOllah%2Fsparrow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatusOllah%2Fsparrow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatusOllah%2Fsparrow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MatusOllah","download_url":"https://codeload.github.com/MatusOllah/sparrow/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247123107,"owners_count":20887261,"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":["adobe","adobe-animate","atlas","flixel","fnf","friday-night-funkin","funkin","go","golang","haxeflixel","sparrow","starling-framework","texture-atlas","texture-pack","xml"],"created_at":"2024-12-17T08:12:11.883Z","updated_at":"2025-04-04T05:09:55.491Z","avatar_url":"https://github.com/MatusOllah.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sparrow\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/MatusOllah/sparrow.svg)](https://pkg.go.dev/github.com/MatusOllah/sparrow)\n[![Go Report Card](https://goreportcard.com/badge/github.com/MatusOllah/sparrow)](https://goreportcard.com/report/github.com/MatusOllah/sparrow)\n\n**sparrow** is a Sparrow v2 texture atlas (PNG and XML pair, the same format that FNF uses) library for Go.\n\nHandy if you're making a game that uses Sparrow v2 or rewriting FNF in Go (like me).\n\n## Features\n\n* Decoding\n* Encoding\n* Image / Frame extracting\n\n## Basic Usage\n\n```go\npackage main\n\nimport (\n    \"image/png\"\n    \"github.com/MatusOllah/sparrow\"\n)\n\nfunc main() {\n    // Here you can use any png \u0026 atlas, I'm using the awesome BOYFRIEND.xml\n    img, err := png.Decode(\"BOYFRIEND.png\")\n    if err != nil {\n        panic(err)\n    }\n\n    atlas, err := sparrow.ParseTextureAtlas(\"BOYFRIEND.xml\")\n    if err != nil {\n        panic(err)\n    }\n\n    // This gets / extracts the BF HEY!!0025 frame\n    bfHey := atlas.MustGetSubTexture(\"BF HEY!!0025\")\n    bfHeyImg := bfHey.MustImage(img)\n\n    // This returns all frames as a map\n    frames := atlas.EnumerateSubTextures()\n}\n```\n\n## License\n\nMIT License\n\nFNF Boyfriend spritesheet - Apache License","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatusollah%2Fsparrow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatusollah%2Fsparrow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatusollah%2Fsparrow/lists"}