define variables
parent
f520a8ae7b
commit
2b6839bedb
|
|
@ -91,10 +91,10 @@
|
||||||
|
|
||||||
// Draw hour or minute boxes
|
// Draw hour or minute boxes
|
||||||
let drawBox = function drawBox(current, boxes, size, colour) {
|
let drawBox = function drawBox(current, boxes, size, colour) {
|
||||||
x1 = (boxes[current].x * Bangle.appRect.h) + (Bangle.appRect.y/2);
|
let x1 = (boxes[current].x * Bangle.appRect.h) + (Bangle.appRect.y/2);
|
||||||
y1 = (boxes[current].y * Bangle.appRect.h) + Bangle.appRect.y;
|
let y1 = (boxes[current].y * Bangle.appRect.h) + Bangle.appRect.y;
|
||||||
x2 = x1 + size;
|
let x2 = x1 + size;
|
||||||
y2 = y1 + size;
|
let y2 = y1 + size;
|
||||||
g.setColor(colour);
|
g.setColor(colour);
|
||||||
g.fillRect(x1, y1, x2, y2);
|
g.fillRect(x1, y1, x2, y2);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue