boldclk: Tweak for more efficient rendering, and firmware 2v06

pull/511/head
Gordon Williams 2020-06-23 08:08:59 +01:00
parent e295f91bc4
commit 56ce4c30e1
3 changed files with 5 additions and 4 deletions

View File

@ -882,7 +882,7 @@
{ "id": "boldclk", { "id": "boldclk",
"name": "Bold Clock", "name": "Bold Clock",
"icon": "bold_clock.png", "icon": "bold_clock.png",
"version":"0.02", "version":"0.03",
"description": "Simple, readable and practical clock", "description": "Simple, readable and practical clock",
"tags": "clock", "tags": "clock",
"type":"clock", "type":"clock",

View File

@ -1 +1,2 @@
0.02: Modified for use with new bootloader and firmware 0.02: Modified for use with new bootloader and firmware
0.03: Tweak for more efficient rendering, and firmware 2v06

View File

@ -16,11 +16,11 @@ const clock_center = {x:Math.floor((240-1)/2), y:24+Math.floor((239-24)/2)};
// ={ x: 119, y: 131 } // ={ x: 119, y: 131 }
const radius = Math.floor((239-24+1)/2); // =108 const radius = Math.floor((239-24+1)/2); // =108
let tick0 = Graphics.createArrayBuffer(30,8,1); let tick0 = Graphics.createArrayBuffer(30,8,1,{msb:true});
tick0.fillRect(0,0,tick0.getWidth()-1, tick0.getHeight()-1); tick0.fillRect(0,0,tick0.getWidth()-1, tick0.getHeight()-1);
let tick5 = Graphics.createArrayBuffer(20,6,1); let tick5 = Graphics.createArrayBuffer(20,6,1,{msb:true});
tick5.fillRect(0,0,tick5.getWidth()-1, tick5.getHeight()-1); tick5.fillRect(0,0,tick5.getWidth()-1, tick5.getHeight()-1);
let tick1 = Graphics.createArrayBuffer(8,4,1); let tick1 = Graphics.createArrayBuffer(8,4,1,{msb:true});
tick1.fillRect(0,0,tick1.getWidth()-1, tick1.getHeight()-1); tick1.fillRect(0,0,tick1.getWidth()-1, tick1.getHeight()-1);
function big_wheel_x(angle){ function big_wheel_x(angle){