diff --git a/geometry.go b/geometry.go index 81bf7ecac4a0eb4045870c760cb0bfc029a665c5..ad63f990c3954db57e4ad30c10d017f8cdf4cc1a 100644 --- a/geometry.go +++ b/geometry.go @@ -247,7 +247,7 @@ func (r Rect) Contains(u Vec) bool { // // pixel.IM.Moved(pixel.V(100, 200)).Rotated(0, math.Pi/2) // -// This code creates a Matrix that first moves everything by 100 units horizontaly and 200 units +// This code creates a Matrix that first moves everything by 100 units horizontally and 200 units // vertically and then rotates everything by 90 degrees around the origin. type Matrix [9]float64 diff --git a/graphics.go b/graphics.go index d194fa65ae9e3b3c340ac3db3737bbbb90ede4b6..80acc66d834d2c201ae9f9aaf06aae5447e86c1f 100644 --- a/graphics.go +++ b/graphics.go @@ -190,7 +190,7 @@ func (imd *IMDraw) SetMatrix(m Matrix) { imd.batch.SetMatrix(imd.matrix) } -// SetColorMask sets a color that all futher point's color will be multiplied by. +// SetColorMask sets a color that all further point's color will be multiplied by. func (imd *IMDraw) SetColorMask(color color.Color) { imd.mask = NRGBAModel.Convert(color).(NRGBA) imd.batch.SetColorMask(imd.mask)