🐛 use proper size for g2

master
Martin Zwigl 2024-08-11 19:09:20 +02:00
parent 1188025348
commit c720e7ff04
3 changed files with 4 additions and 7 deletions

View File

@ -4,3 +4,4 @@
0.30: Fix size of animation and drawing slope to left upper
0.40: Try with halving the other scalars
0.41: Use different font for clock
0.42: Minor fix; use proper amount of g2

View File

@ -25,13 +25,9 @@ let drawTimeout;
//let g2 = Graphics.createArrayBuffer(g.getWidth(),90,1,{msb:true});
let g2 = Graphics.createArrayBuffer(g.getWidth() / 2,g.getHeight() / 2,1,{msb:true});
// let g2img = {
// width:g2.getWidth(), height:g2.getHeight(), bpp:1,
// buffer:g2.buffer, transparent:0
// };
let g2img = {
width:g2.getWidth() / 2, height:g2.getHeight() / 2, bpp:1,
buffer:g2.buffer, transparent:0
width:g2.getWidth(), height:g2.getHeight(), bpp:1,
buffer:g2.buffer, transparent:0
};
const slope = 10;
const offsY = 10; // offset of numbers from middle

View File

@ -1,6 +1,6 @@
{ "id": "slopeclockbig",
"name": "Slope Clock BIG",
"version":"0.41",
"version":"0.42",
"description": "A clock where hours and minutes are divided by a sloping line. When the minute changes, the numbers slide off the screen. This is a clone of the original Slope Clock which shows extra information and allows the colors to be selected.",
"icon": "app.png",
"screenshots": [{"url":"screenshot.png"}],