https://github.com/rozek/banglejs-2-widgets-on-background
draws all loaded widgets of a Bangle.js 2 without clearing the background
https://github.com/rozek/banglejs-2-widgets-on-background
banglejs
Last synced: 9 days ago
JSON representation
draws all loaded widgets of a Bangle.js 2 without clearing the background
- Host: GitHub
- URL: https://github.com/rozek/banglejs-2-widgets-on-background
- Owner: rozek
- License: mit
- Created: 2022-01-09T11:10:58.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-01T05:58:10.000Z (over 4 years ago)
- Last Synced: 2025-10-21T13:57:53.918Z (9 months ago)
- Topics: banglejs
- Language: JavaScript
- Homepage:
- Size: 8.79 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-widgets-on-background #
draws all loaded widgets of a Bangle.js 2 without clearing the background
By default, the [Bangle.js 2](https://www.espruino.com/Bangle.js2) runtime clears the whole widget stripes on the top (or bottom) of its display, as soon as any widget has been loaded into that area. On displays with a structured background (such as a bitmap) this behaviour hides anything underneath these stripes.
For that reason, this module modifies the widget drawing method such that the background is not cleared - leaving it up to the widget to take care of that itself (which most widgets do).
## Usage ##
Just "require" this module before any widgets are drawn - that's all:
```javascript
require('https://raw.githubusercontent.com/rozek/banglejs-2-widgets-on-background/main/drawWidgets.js');
```
## License ##
[MIT License](LICENSE.md)