Skip to content

Commit

Permalink
fix(color): use keyed fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Martijn-Faber committed Oct 16, 2021
1 parent f082327 commit bd32c23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/block/color.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ func GetAverageBlockColor(img *image.RGBA, blkX int, blkY int, blkSizeX int, blk
var gAvg = gSum / totalPix
var bAvg = bSum / totalPix

return color.Rgb{rAvg, gAvg, bAvg}
return color.Rgb{R: rAvg, G: gAvg, B: bAvg}
}

0 comments on commit bd32c23

Please sign in to comment.