public static void drawClockPlayground(SKCanvas canvas, Context context, SKColor numbersColor, SKColor darkHandsColor, SKColor lightHandColor, SKColor rimColor, SKColor tickColor, SKColor faceColor) { // Local Colors SKColor color4 = Helpers.ColorFromArgb(255, 255, 255, 255); SKColor color2 = Helpers.ColorFromArgb(255, 56, 95, 117); SKColor color5 = Helpers.ColorFromArgb(255, 22, 216, 217); SKColor color = Helpers.ColorFromArgb(255, 255, 0, 0); SKColor color3 = Helpers.ColorFromArgb(255, 74, 74, 74); // Symbol var symbolRect = new SKRect(90f, 30f, 348f, 288f); canvas.Save(); canvas.ClipRect(symbolRect); canvas.Translate(symbolRect.Left, symbolRect.Top); var symbolTargetRect = new SKRect(0f, 0f, symbolRect.Width, symbolRect.Height); StyleKitName.drawClock(canvas, context, symbolTargetRect, ResizingBehavior.Stretch, color5, color2, color, color2, tickColor, faceColor, 11f, 45f, 39f); canvas.Restore(); // Symbol 2 var symbol2Rect = new SKRect(348f, 33f, 601f, 286f); canvas.Save(); canvas.ClipRect(symbol2Rect); canvas.Translate(symbol2Rect.Left, symbol2Rect.Top); var symbol2TargetRect = new SKRect(0f, 0f, symbol2Rect.Width, symbol2Rect.Height); StyleKitName.drawClock(canvas, context, symbol2TargetRect, ResizingBehavior.Stretch, numbersColor, darkHandsColor, lightHandColor, rimColor, tickColor, faceColor, 7f, 43f, 3f); canvas.Restore(); // Symbol 3 var symbol3Rect = new SKRect(611f, 33f, 871f, 293f); canvas.Save(); canvas.ClipRect(symbol3Rect); canvas.Translate(symbol3Rect.Left, symbol3Rect.Top); var symbol3TargetRect = new SKRect(0f, 0f, symbol3Rect.Width, symbol3Rect.Height); StyleKitName.drawClock(canvas, context, symbol3TargetRect, ResizingBehavior.Stretch, color4, color4, color5, color4, color4, color3, 16f, 6f, 43f); canvas.Restore(); }
public static void drawClock(SKCanvas canvas, Context context, SKColor numbersColor, SKColor darkHandsColor, SKColor lightHandColor, SKColor rimColor, SKColor tickColor, SKColor faceColor, float hours, float minutes, float seconds) { StyleKitName.drawClock(canvas, context, new SKRect(0f, 0f, 260f, 260f), ResizingBehavior.AspectFit, numbersColor, darkHandsColor, lightHandColor, rimColor, tickColor, faceColor, hours, minutes, seconds); }