From 58e02dced8061ecc2ea7512a06668243c9db21db Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Fri, 21 Apr 2023 21:49:29 -0400 Subject: [PATCH] Fixed shapesColorLine If the line started off-screen it would not draw. It draws now. --- artist/shapes/line.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/artist/shapes/line.go b/artist/shapes/line.go index 1ebfbbb..1d81f94 100644 --- a/artist/shapes/line.go +++ b/artist/shapes/line.go @@ -70,7 +70,6 @@ func (context linePlottingContext) lineLow () { point := context.min for ; point.X < context.max.X; point.X ++ { - if !point.In(context.bounds) { break } context.plotColor(point) if D > 0 { D += 2 * (deltaY - deltaX) @@ -95,7 +94,6 @@ func (context linePlottingContext) lineHigh () { point := context.min for ; point.Y < context.max.Y; point.Y ++ { - if !point.In(context.bounds) { break } context.plotColor(point) if D > 0 { point.X += xi