{"id":16354032,"url":"https://github.com/rostislavjadavan/gofb","last_synced_at":"2025-03-23T01:31:07.867Z","repository":{"id":57529113,"uuid":"255406421","full_name":"rostislavjadavan/gofb","owner":"rostislavjadavan","description":"Framebuffer library for golang","archived":false,"fork":false,"pushed_at":"2024-10-16T10:00:58.000Z","size":1646,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T16:14:03.541Z","etag":null,"topics":["framebuffer","gamedev-library","golang","golang-library","pixel"],"latest_commit_sha":null,"homepage":"","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/rostislavjadavan.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":"2020-04-13T18:10:35.000Z","updated_at":"2024-10-16T10:01:02.000Z","dependencies_parsed_at":"2024-06-20T01:47:08.474Z","dependency_job_id":"587b0742-adc0-46ab-9382-b03fb38a3f95","html_url":"https://github.com/rostislavjadavan/gofb","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rostislavjadavan%2Fgofb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rostislavjadavan%2Fgofb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rostislavjadavan%2Fgofb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rostislavjadavan%2Fgofb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rostislavjadavan","download_url":"https://codeload.github.com/rostislavjadavan/gofb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245043900,"owners_count":20551846,"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":["framebuffer","gamedev-library","golang","golang-library","pixel"],"created_at":"2024-10-11T01:32:20.444Z","updated_at":"2025-03-23T01:31:07.405Z","avatar_url":"https://github.com/rostislavjadavan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](logo/gofb_500.png)\n\n# gofb\n\nFramebuffer library for golang\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/rostislavjadavan/gofb)](https://goreportcard.com/report/github.com/rostislavjadavan/gofb)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/rostislavjadavan/gofb)](https://pkg.go.dev/github.com/rostislavjadavan/gofb)\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"github.com/rostislavjadavan/gofb\"\n)\n\nfunc main() {\n\t// Create Window\n\tw := gofb.NewWindow(\"go-fb\", 600, 600, false)\n\n\t// Create pixel buffer\n\tsurface := gofb.NewSurface(600, 600)\n\n\t// Draw pixel into buffer\n\tsurface.SetPixel(300, 300, gofb.NewColor3(255, 255, 255))\n\n\tfor w.IsRunning() {\n\t\tw.StartFrame()\n\t\tw.Clear(gofb.ColorBlack)\n\n\t\t// Draw buffer on the screen\n\t\tsurface.Draw(0, 0)\n\n\t\tw.FinalizeFrame()\n\t}\n\n\tdefer surface.Release()\n\tdefer w.Destroy()\n}\n```\n\n## Features\n\n- draw pixel by pixel\n- load `png`, `jpg` images\n- scale to mimic pixel art\n- use custom `ttf` font\n- sprite sheets (for tile set rendering)\n- keyboard and mouse input\n\n## More examples\n\nTake a look at all the examples in the [/examples](/examples) folder.\n\n![](examples/simple/preview.jpg)\n![](examples/animation/preview.gif)\n![](examples/tunnel/preview.jpg)\n![](examples/mouse/preview.gif)\n![](examples/roguelike/preview.jpg)\n\n## Libraries used\n\n- https://github.com/go-gl/glfw\n- https://github.com/go-gl/gltext\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frostislavjadavan%2Fgofb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frostislavjadavan%2Fgofb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frostislavjadavan%2Fgofb/lists"}