/// <summary> /// Draws ticks on an analog clock. /// </summary> /// <param name="graphics">Graphics context</param> public void Draw(IGraphicsService graphics) { if (graphics == null) { throw new ArgumentNullException("graphics"); } for (var x = 1; x <= 60; x++) { var begPoint = _mathService.GetPoint(x / 60d, x % 5 == 0 ? ShortTickEnd : LongTickEnd); var endPoint = _mathService.GetPoint(x / 60d, TickStart); graphics.DrawLine(_tickPen, begPoint, endPoint); } }