Fixed shapesColorLine

If the line started off-screen it would not draw. It draws now.
This commit is contained in:
Sasha Koshka 2023-04-21 21:49:29 -04:00
parent 61d3c14519
commit 58e02dced8
1 changed files with 0 additions and 2 deletions

View File

@ -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