initial commit

This commit is contained in:
2025-10-09 14:37:45 +03:00
commit 7f98da51da
15 changed files with 309 additions and 0 deletions

View File

@ -0,0 +1,22 @@
import Toybox.Graphics;
import Toybox.Lang;
class SimpleHands extends IHands {
function initialize(options) {
IHands.initialize(options);
}
function drawHand(
dc as Dc,
x as Float,
y as Float,
angle as Float,
length as Float,
handType as IHands.HandType) {
var rad = (angle - 90) * Math.PI / 180.0;
dc.setColor(Graphics.COLOR_WHITE, Graphics.COLOR_WHITE);
dc.drawLine(x, y, x + length * Math.cos(rad), y + length * Math.sin(rad));
}
}