{"id":22160579,"url":"https://github.com/rozek/banglejs-2-bitmap-clock-background","last_synced_at":"2025-03-24T15:22:32.394Z","repository":{"id":114382879,"uuid":"446054088","full_name":"rozek/banglejs-2-bitmap-clock-background","owner":"rozek","description":"fills the background of an analog clock on a Bangle.js 2 with a bitmap","archived":false,"fork":false,"pushed_at":"2022-03-01T05:55:35.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T20:30:11.550Z","etag":null,"topics":["banglejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rozek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-09T10:18:23.000Z","updated_at":"2022-01-10T11:37:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"b7a7d630-51d0-4b20-8879-ef0115c6d1d4","html_url":"https://github.com/rozek/banglejs-2-bitmap-clock-background","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fbanglejs-2-bitmap-clock-background","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fbanglejs-2-bitmap-clock-background/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fbanglejs-2-bitmap-clock-background/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fbanglejs-2-bitmap-clock-background/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rozek","download_url":"https://codeload.github.com/rozek/banglejs-2-bitmap-clock-background/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245294799,"owners_count":20591923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["banglejs"],"created_at":"2024-12-02T04:08:51.250Z","updated_at":"2025-03-24T15:22:32.386Z","avatar_url":"https://github.com/rozek.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# banglejs-2-bitmap-clock-background #\n\nfills the background of an analog clock on a Bangle.js 2 with a bitmap\n\nThis module fills the background of an analog clock face for the [Bangle.js 2](https://www.espruino.com/Bangle.js2) with a given bitmap.\n\n![](Demo.png)\n\n\u003e Note: if you plan to use a bitmap background, you should consider including [Widgets on Background](https://github.com/rozek/banglejs-2-widgets-on-background) (as shown in the examples) in order to prevent widgets from erasing parts of that backgropund again.\n\n## Usage ##\n\nWithin a clock implementation, the module may be used as follows:\n\n```javascript\nrequire('https://raw.githubusercontent.com/rozek/banglejs-2-widgets-on-background/main/drawWidgets.js');\n\nlet Clockwork = require(...);\nClockwork.windUp({\n  background: require('https://raw.githubusercontent.com/rozek/banglejs-2-bitmap-clock-background/main/ClockBackground.js.js'),\n  ...\n}, { Bitmap:'...' });\n```\n\n`Settings.Bitmap` should contain the file name of the bitmap to be drawn - that bitmap must have been properly converted for the Bangle.js 2 and uploaded into the storage area before.\n\n## Example ##\n\nThe following code shows a complete example for a (still simple) analog clock using a bitmap background:\n\n```javascript\nrequire('https://raw.githubusercontent.com/rozek/banglejs-2-widgets-on-background/main/drawWidgets.js');\n\nlet Clockwork = require('https://raw.githubusercontent.com/rozek/banglejs-2-simple-clockwork/main/Clockwork.js');\n\nClockwork.windUp({\n  background:require('https://raw.githubusercontent.com/rozek/banglejs-2-bitmap-clock-background/main/ClockBackground.js'),\n  face:      require('https://raw.githubusercontent.com/rozek/banglejs-2-four-numbered-face/main/ClockFace.js'),\n  complications:{\n    b:require('https://raw.githubusercontent.com/rozek/banglejs-2-date-complication/main/Complication.js')\n  }\n},{\n  Foreground:'#FFFF00', Background:'#000000', Seconds:'#FF00',\n  Bitmap:'Mandelbrot_176x176.png'\n});\n```\n\n## License ##\n\n[MIT License](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frozek%2Fbanglejs-2-bitmap-clock-background","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frozek%2Fbanglejs-2-bitmap-clock-background","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frozek%2Fbanglejs-2-bitmap-clock-background/lists"}