initial commit

This commit is contained in:
2025-10-09 14:37:45 +03:00
commit 206c8a02f2
20 changed files with 586 additions and 0 deletions

View File

@ -0,0 +1,20 @@
import Toybox.Graphics;
import Toybox.Lang;
import Toybox.WatchUi;
class LineMark extends IMark {
var InnerRadius as Float = 0.9;
function initialize(options as IMark.MarkParams) {
IMark.initialize(options);
}
function drawMark(dc as Dc, x as Float, y as Float, length as Float) as Void {
var angle = Math.toRadians(Seconds * 6.0 - 90);
dc.setColor(Color, Color);
dc.drawLine(x + length * InnerRadius * Math.cos(angle), y + length * InnerRadius * Math.sin(angle),
x + length * Radius * Math.cos(angle), y + length * Radius * Math.sin(angle));
}
}