Skip to content

rozek/banglejs-2-fillroundrect

main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

banglejs-2-fillroundrect

fills a rounded rectangle on a Bangle.js 2

This 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 (see this discussion).

The new method has the signature

g.fillroundrect(x1,y1, x2,y2, radius);

with the following parameters:

  • x1 - the left x coordinate
  • y1 - the top y coordinate
  • x2 - the right x coordinate
  • y2 - the bottom y coordinate
  • radius - the corner radius (limited to 50% of the shorter edge of the rectangle

The rounded rectangle is drawn and filled with current foreground color.

License

MIT License

About

fills a rounded rectangle on a Bangle.js 2

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published