Files
wf/source/Hands/BatonHand.mc
2025-11-20 15:14:36 +02:00

15 lines
447 B
MonkeyC

import Toybox.Graphics;
import Toybox.Lang;
class BatonHand extends IHand {
function initialize(options as IHand.HandParams) {
IHand.initialize(options);
}
function drawHand(dc as Dc, start as Point2D, length as Float) as Void {
var angle = Math.toRadians(getAngle(null) - 90);
dc.setColor(Color, Color);
fillSuperellipse(dc, start, [Math.cos(angle), Math.sin(angle)], length, Width);
}
}