• Since the time I may spend on working with the Bangle.js 2 is running out and there were many good comments on my "configurable analog clock" (see elsewhere in this forum), I've started working on an "Analog Clock Construction Kit".

    Basic idea behind this kit is to use a relatively simple code as basis and load the desired clock face, hands and complications from modules stored on GitHub.

    Starting simple, I've currently implemented only the most basic variants - but more will follow until this evening. To give you an impression of how to use the kit:

      let Clockwork = require('https://raw.githubusercontent.c­om/rozek/banglejs-2-simple-clockwork/mai­n/Clockwork.js');
    
      let ComplicationPlaceholder = require('https://raw.githubusercontent.c­om/rozek/banglejs-2-complication-placeho­lder/main/Complication.js');
    
      Clockwork.windUp({
        size:      require('https://raw.githubusercontent.c­om/rozek/banglejs-2-simple-clock-size/ma­in/ClockSize.js'),
        background:null,
        face:      require('https://raw.githubusercontent.c­om/rozek/banglejs-2-four-fold-clock-face­/main/ClockFace.js'),
        hands:     require('https://raw.githubusercontent.c­om/rozek/banglejs-2-simple-clock-hands/m­ain/ClockHands.js'),
        complications:{
          tl:null, t:ComplicationPlaceholder, tr:null,
          l:ComplicationPlaceholder, r:ComplicationPlaceholder,
          bl:ComplicationPlaceholder, b:null, br:ComplicationPlaceholder
        }
      },{
        Foreground:'#FFFFFF', Background:'#000000', Seconds:'#FFFF00'
      });
    

    As you can see, "implementing" an analog clock is essentially reduced to loading the desired clockwork, background, face, hands and complications (the latter have to be loaded into their placement "slots") and, perhaps, providing some configuration details.

    See GitHub for a very first (and still rough) documentation of this little kit.

About