https://github.com/rozek/banglejs-2-fillring
draws a filled ring on a Bangle.js 2
https://github.com/rozek/banglejs-2-fillring
banglejs
Last synced: about 1 year ago
JSON representation
draws a filled ring on a Bangle.js 2
- Host: GitHub
- URL: https://github.com/rozek/banglejs-2-fillring
- Owner: rozek
- License: mit
- Created: 2022-01-09T05:39:32.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-01T05:59:03.000Z (over 4 years ago)
- Last Synced: 2025-01-29T20:30:03.672Z (over 1 year ago)
- Topics: banglejs
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# banglejs-2-fillring #
draws a filled ring on a Bangle.js 2
This module adds a method `fillring` for drawing filled circular rings to the global graphics context `g`.

The new method has the signature
```javascript
g.fillring(cx,cy, r1,r2);
```
with the following parameters:
* `cx` - x coordinate of the ring's center
* `cy` - y coordinate of the ring's center
* `r1` - outer ring radius
* `r2` - inner ring radius
The ring is drawn and filled with current foreground color.
## License ##
[MIT License](LICENSE.md)