An open API service indexing awesome lists of open source software.

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

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)