{"id":22160578,"url":"https://github.com/rozek/banglejs-2-fillroundrect","last_synced_at":"2025-07-31T16:12:34.703Z","repository":{"id":114382880,"uuid":"445868068","full_name":"rozek/banglejs-2-fillroundrect","owner":"rozek","description":"fills a rounded rectangle on a Bangle.js 2","archived":false,"fork":false,"pushed_at":"2022-03-01T05:58:50.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T20:30:01.797Z","etag":null,"topics":["banglejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/rozek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-01-08T16:18:28.000Z","updated_at":"2022-01-09T05:40:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"a31a8572-314f-48bf-b48a-5d9d39ec3cbb","html_url":"https://github.com/rozek/banglejs-2-fillroundrect","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/rozek%2Fbanglejs-2-fillroundrect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fbanglejs-2-fillroundrect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fbanglejs-2-fillroundrect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fbanglejs-2-fillroundrect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rozek","download_url":"https://codeload.github.com/rozek/banglejs-2-fillroundrect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245294791,"owners_count":20591922,"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":["banglejs"],"created_at":"2024-12-02T04:08:51.007Z","updated_at":"2025-03-24T15:22:31.906Z","avatar_url":"https://github.com/rozek.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# banglejs-2-fillroundrect #\n\nfills a rounded rectangle on a Bangle.js 2\n\nThis module adds a method `fillroundrect` for drawing filled rounded rectangles to the global graphics context `g`. The current implementation is based on a remark from forum user [RaoulDuke](http://forum.espruino.com/profiles/181747/) (see [this discussion](http://forum.espruino.com/conversations/371330)).\n\n![](Demo.png)\n\nThe new method has the signature\n\n```javascript\ng.fillroundrect(x1,y1, x2,y2, radius);\n```\n\nwith the following parameters:\n\n* `x1` - the left x coordinate\n* `y1` - the top y coordinate\n* `x2` - the right x coordinate\n* `y2` - the bottom y coordinate\n* `radius` - the corner radius (limited to 50% of the shorter edge of the rectangle\n\nThe rounded rectangle is drawn and filled with current foreground color.\n\n## License ##\n\n[MIT License](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frozek%2Fbanglejs-2-fillroundrect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frozek%2Fbanglejs-2-fillroundrect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frozek%2Fbanglejs-2-fillroundrect/lists"}