https://github.com/rozek/banglejs-2-four-fold-clock-face
a simple clock face with numbers 3, 6, 9 and 12 for analog clocks on a Bangle.js 2
https://github.com/rozek/banglejs-2-four-fold-clock-face
banglejs
Last synced: about 1 year ago
JSON representation
a simple clock face with numbers 3, 6, 9 and 12 for analog clocks on a Bangle.js 2
- Host: GitHub
- URL: https://github.com/rozek/banglejs-2-four-fold-clock-face
- Owner: rozek
- License: mit
- Created: 2022-01-08T17:00:02.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-01T05:51:35.000Z (over 4 years ago)
- Last Synced: 2025-01-29T20:30:08.861Z (over 1 year ago)
- Topics: banglejs
- Language: JavaScript
- Homepage:
- Size: 25.4 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-four-fold-clock-face #
a simple clock face with numbers 3, 6, 9 and 12 for analog clocks on a Bangle.js 2
> **Important Note: this module has been renamed to [banglejs-2-four-numbered-clock-face](https://github.com/rozek/banglejs-2-four-numbered-clock-face). Please do no longer use this repository but switch to the new one instead!**
This module draws a face with the numbers 3, 6, 9 and 12 for an analog clock running on a [Bangle.js 2](https://www.espruino.com/Bangle.js2).

with indian numerals

with roman numerals
## Usage ##
Within a clock implementation, the module may be used as follows:
```javascript
let Clockwork = require(...);
Clockwork.windUp({
face:require('https://raw.githubusercontent.com/rozek/banglejs-2-four-fold-clock-face/main/ClockFace.js'),
...
}, { romanNumerals:false });
```
`Settings.romanNumerals` may be set to `true` if roman numerals are prefered. If missing or set to `false`, indian numerals are drawn instead.
## Example ##
The following code shows a complete example for a (still simple) analog clock using this clock face:
```javascript
let Clockwork = require('https://raw.githubusercontent.com/rozek/banglejs-2-simple-clockwork/main/Clockwork.js');
Clockwork.windUp({
face: require('https://raw.githubusercontent.com/rozek/banglejs-2-four-fold-clock-face/main/ClockFace.js'),
hands:require('https://raw.githubusercontent.com/rozek/banglejs-2-simple-clock-hands/main/ClockHands.js'),
},{
Foreground:'#000000', Background:'#FFFFFF', Seconds:'#FF0000'
});
```
## License ##
[MIT License](LICENSE.md)