initial commit
This commit is contained in:
15
source/Hands/BatonHand.mc
Normal file
15
source/Hands/BatonHand.mc
Normal file
@ -0,0 +1,15 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user