mirror of https://github.com/espruino/BangleApps
Release sunrise 0.02, faster sinus and fix menu button
parent
de3fbe6578
commit
c62ccf27e1
|
@ -1 +1,2 @@
|
|||
0.01: First release
|
||||
0.02: Faster sinus line and fix button to open menu
|
||||
|
|
|
@ -177,6 +177,7 @@ function ypos (x) {
|
|||
|
||||
let sunRiseX = 0;
|
||||
let sunSetX = 0;
|
||||
const sinStep = 12;
|
||||
|
||||
function drawSinuses () {
|
||||
let x = 0;
|
||||
|
@ -187,14 +188,14 @@ function drawSinuses () {
|
|||
let y = oy;
|
||||
for (i = 0; i < w; i++) {
|
||||
x = i;
|
||||
x2 = x + 6;
|
||||
x2 = x + sinStep + 1;
|
||||
y2 = ypos(i);
|
||||
if (x == 0) {
|
||||
y = y2;
|
||||
}
|
||||
g.drawLine(x, y, x2, y2);
|
||||
y = y2;
|
||||
i += 5; // no need to draw all steps
|
||||
i += sinStep; // no need to draw all steps
|
||||
}
|
||||
|
||||
// sea level line
|
||||
|
@ -318,4 +319,5 @@ Bangle.on('tap', () => {
|
|||
});
|
||||
renderScreen();
|
||||
|
||||
Bangle.setUI("clock");
|
||||
setInterval(renderScreen, 60 * 1000);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"id": "sunrise",
|
||||
"name": "Sunrise",
|
||||
"shortName": "Sunrise",
|
||||
"version": "0.01",
|
||||
"version": "0.02",
|
||||
"type": "clock",
|
||||
"description": "Show sunrise and sunset times",
|
||||
"icon": "app.png",
|
||||
|
|
Loading…
Reference in New Issue