{"id":22160580,"url":"https://github.com/rozek/banglejs-2-drawroundrect","last_synced_at":"2025-06-29T10:37:35.490Z","repository":{"id":114382889,"uuid":"445866321","full_name":"rozek/banglejs-2-drawroundrect","owner":"rozek","description":"draws a rounded rectangle on a Bangle.js 2","archived":false,"fork":false,"pushed_at":"2022-03-01T05:59:18.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T15:23:03.322Z","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:10:58.000Z","updated_at":"2022-01-10T08:59:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"8f1ec219-a356-43e5-8251-ad9ffb319f6d","html_url":"https://github.com/rozek/banglejs-2-drawroundrect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rozek/banglejs-2-drawroundrect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fbanglejs-2-drawroundrect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fbanglejs-2-drawroundrect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fbanglejs-2-drawroundrect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fbanglejs-2-drawroundrect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rozek","download_url":"https://codeload.github.com/rozek/banglejs-2-drawroundrect/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fbanglejs-2-drawroundrect/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262579614,"owners_count":23331866,"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.488Z","updated_at":"2025-06-29T10:37:35.449Z","avatar_url":"https://github.com/rozek.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# banglejs-2-drawroundrect #\n\ndraws a rounded rectangle on a Bangle.js 2\n\nThis module adds a method `drawRoundRect` for drawing 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.drawRoundRect(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 1px wide and drawn in the 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-drawroundrect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frozek%2Fbanglejs-2-drawroundrect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frozek%2Fbanglejs-2-drawroundrect/lists"}