{"id":17590768,"url":"https://github.com/setanarut/gog","last_synced_at":"2025-04-29T09:56:48.525Z","repository":{"id":199992731,"uuid":"703150084","full_name":"setanarut/gog","owner":"setanarut","description":"Object-oriented 2d drawing package for Go language","archived":false,"fork":false,"pushed_at":"2025-04-07T00:59:52.000Z","size":1881,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-29T09:56:39.045Z","etag":null,"topics":["2d-graphics","animation","apng","apng-animation","creative-coding","draw","drawing","generative-art","go","golang-library","golang-package","procedural-generation","rasterizer"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/setanarut.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-10-10T17:29:33.000Z","updated_at":"2025-04-07T00:59:07.000Z","dependencies_parsed_at":"2023-10-15T04:21:06.672Z","dependency_job_id":"632a9359-32a0-4dbf-8bae-045f01eac349","html_url":"https://github.com/setanarut/gog","commit_stats":null,"previous_names":["setanarut/gog"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setanarut%2Fgog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setanarut%2Fgog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setanarut%2Fgog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setanarut%2Fgog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/setanarut","download_url":"https://codeload.github.com/setanarut/gog/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251480069,"owners_count":21596016,"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":["2d-graphics","animation","apng","apng-animation","creative-coding","draw","drawing","generative-art","go","golang-library","golang-package","procedural-generation","rasterizer"],"created_at":"2024-10-22T04:24:36.126Z","updated_at":"2025-04-29T09:56:48.519Z","avatar_url":"https://github.com/setanarut.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GoDoc](https://godoc.org/github.com/setanarut/gog/v2?status.svg)](https://pkg.go.dev/github.com/setanarut/gog/v2)\n\n# GOG v2\n\nGOG is a Go Object-oriented 2d drawing library for creative coding and generative art\n\n![curve_anim](https://github.com/user-attachments/assets/135882e0-5a6d-438c-b0d0-80ebd12713c2)\n\n## Examples\n\n### Path follow animation\n\n```Go\nctx := gog.NewContext(250, 100)\nrect := shapes.Rect(v.Vec{}, 30, 10)\nlemn := shapes.Lemniscate(100, 100).SetPos(ctx.Center)\nlemnTotalLength := lemn.Length()\nfor _, length := range utils.Linspace(0, lemnTotalLength, 120) {\n  ctx.Clear(color.Black)\n  ctx.Stroke(lemn, gog.DefaultStrokeStyle())\n  pos, ang := lemn.PointAngleAtLength(length)\n  ctx.Fill(rect.SetPos(pos).Rotated(ang), color.White)\n  ctx.AppendAnimationFrame()\n}\nctx.SaveAPNG(\"path_follow.png\", 2)\n```\n\n![path_follow](https://github.com/user-attachments/assets/55ac6887-41eb-4fb1-8d1c-55e2cdcb93fb)\n\n\nSee folder [examples](./examples) for all examples\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetanarut%2Fgog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsetanarut%2Fgog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetanarut%2Fgog/lists"}