15 lines
447 B
MonkeyC
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);
|
|
}
|
|
} |