Created
October 14, 2015 01:12
-
-
Save mfurtak/ff78ff575172846cc76f to your computer and use it in GitHub Desktop.
Is it Swing?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hourPaint = new Paint(); | |
hourPaint.setARGB(255, 200, 200, 200); | |
hourPaint.setStrokeWidth(6F); | |
hourPaint.setAntiAlias(true); | |
hourPaint.setStrokeCap(Paint.Cap.ROUND); | |
// ... | |
float hrX = (float) Math.sin(hrRot) * hrLength; | |
float hrY = (float) -Math.cos(hrRot) * hrLength; | |
canvas.drawLine(centerX, centerY, centerX + hrX, centerY + hrY, hourPaint); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment