public static void Draw(Rect canvas, IEnumerable <ClockHandle> clockHandles, HourTick major, HourTick minor) { for (var h = 0; h < 12; h++) { if (h % 3 == 0) { if (major != null) { DrawTick(canvas, major, h); } } else { if (minor != null) { DrawTick(canvas, minor, h); } } } foreach (var handle in clockHandles) { DrawHandle(canvas, handle); } }
public static void DrawTick(Rect canvas, HourTick tick, float hour) { DrawMarker(canvas, hour, tick.Thickness, tick.Color, 1f - tick.Length, 1f); }