weatherclock v0.06
parent
fb88b185af
commit
97a6beab55
|
|
@ -3,4 +3,4 @@
|
||||||
0.03: Minor layout extra spaces.
|
0.03: Minor layout extra spaces.
|
||||||
0.04: Layout now compatible with Bangle.js 2.
|
0.04: Layout now compatible with Bangle.js 2.
|
||||||
0.05: Use weather condition code for icon selection.
|
0.05: Use weather condition code for icon selection.
|
||||||
0.06: Dev12-New settings to optionally hide elements. Images placed into functions for performance.
|
0.06: Dev13-New settings to optionally hide elements. Images placed into functions for performance.
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,7 @@ function loadSettings() {
|
||||||
loadSettings();
|
loadSettings();
|
||||||
|
|
||||||
function weatherIcon(code) {
|
function weatherIcon(code) {
|
||||||
var ovr = Graphics.createArrayBuffer(50,50,1,{msb:true});
|
var ovr = Graphics.createArrayBuffer(50,50,8,{msb:true});
|
||||||
if (typeof code == "number") weather.drawIcon({code:code},24,24,24,ovr);
|
if (typeof code == "number") weather.drawIcon({code:code},24,24,24,ovr);
|
||||||
if (typeof code == "string") weather.drawIcon({code},24,24,24,ovr);
|
if (typeof code == "string") weather.drawIcon({code},24,24,24,ovr);
|
||||||
var img = ovr.asImage();
|
var img = ovr.asImage();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue