Skip to content

rozek/banglejs-2-twelve-fold-clock-face

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

banglejs-2-twelve-fold-clock-face

a simple clock face with numbers 1...12 for analog clocks on a Bangle.js 2

Important Note: this module has been renamed to banglejs-2-twelve-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 1-12 (optionally surrounded by dots for every minute) for an analog clock running on a Bangle.js 2.


without dots

with Dots

Usage

Within a clock implementation, the module may be used as follows:

let Clockwork = require(...);
Clockwork.windUp({
  face:require('https://raw.githubusercontent.com/rozek/banglejs-2-twelve-fold-clock-face/main/ClockFace.js'),
  ...
}, { withDots:true });

Settings.withDots controls whether surrounding dots are drawn or not: if set to true, they are drawn otherwise not.

Example

The following code shows a complete example for a (still simple) analog clock using this clock face:

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-twelve-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

About

a simple clock face with numbers 1...12 for analog clocks on a Bangle.js 2

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published