Skip to content

Commit

Permalink
Updated doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
msoap committed Feb 19, 2022
1 parent ca0007f commit 44f0072
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func NewBufferFromImage(img image.Image) Buffer {
return buf
}

// ToImage - convert buffer to std (Gray) Image, for example for save buffer to image file like png
// ToImage - convert buffer to std Image with Gray colorspace, for example for save buffer to image file like png
func (b *Buffer) ToImage() image.Image {
img := image.NewGray(image.Rect(0, 0, b.Width, b.Height))
var c uint8
Expand Down Expand Up @@ -167,7 +167,7 @@ func (b *Buffer) Set(x, y int, color int) {
}
}

// At - get pixel from buffer
// At - get pixel color from buffer
func (b Buffer) At(x, y int) int {
if x < 0 || x > b.Width-1 || y < 0 || y > b.Height-1 {
return White
Expand Down

0 comments on commit 44f0072

Please sign in to comment.