{"id":18603538,"url":"https://github.com/remogatto/shapes","last_synced_at":"2025-09-02T14:32:58.224Z","repository":{"id":13356697,"uuid":"16044194","full_name":"remogatto/shapes","owner":"remogatto","description":"A package for rendering simple two-dimensional shapes on an OpenGL ES 2 context","archived":false,"fork":false,"pushed_at":"2014-03-31T13:51:38.000Z","size":464,"stargazers_count":7,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T03:34:25.031Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/remogatto.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}},"created_at":"2014-01-19T10:51:09.000Z","updated_at":"2015-05-12T05:08:13.000Z","dependencies_parsed_at":"2022-08-25T15:41:32.504Z","dependency_job_id":null,"html_url":"https://github.com/remogatto/shapes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remogatto%2Fshapes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remogatto%2Fshapes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remogatto%2Fshapes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remogatto%2Fshapes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remogatto","download_url":"https://codeload.github.com/remogatto/shapes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248281413,"owners_count":21077423,"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":[],"created_at":"2024-11-07T02:14:43.505Z","updated_at":"2025-04-10T19:31:48.714Z","avatar_url":"https://github.com/remogatto.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shapes [![GoDoc](https://godoc.org/github.com/remogatto/shapes?status.png)](http://godoc.org/github.com/remogatto/shapes)\n\n\u003ctt\u003eshapes\u003c/tt\u003e is a small package for drawing simple two-dimensional\nshapes on an OpenGL ES 2 context. Used in conjuction with\n[Mandala](https://github.com/remogatto/mandala) it provides a quick way to represent geometric\n2D objects on Android games.\n\n# Example API\n\n~~~go\n// Create a 100x100 pixels² box\nbox := NewBox(100, 100)\n\n// Place the box at a given position\nbox.Position(10, 10)\n\n// Assign a color to it\nbox.Color(color.White)\n\n// Attach the box to a world object (see World interface)\nbox.AttachToWorld(world)\n\n// Render the box on the surface\nbox.Draw()\n\n// swap the buffers\n~~~\n\n# Supported shapes\n\n* Box\n* Segment\n\n# Test\n\nSee [test](test/) for a black-box testing approach.\n\n# LICENSE\n\nSee [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremogatto%2Fshapes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremogatto%2Fshapes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremogatto%2Fshapes/lists"}