mirror of
https://github.com/pcvolkmer/idicon.git
synced 2025-07-01 11:22:54 +00:00
Fix issue in gh icons with missing first nibble
This commit is contained in:
@ -32,7 +32,7 @@ func (generator *GhIconGenerator) GenIcon(id string, size int) *image.NRGBA {
|
||||
for x := 0; x < blocks; x++ {
|
||||
for y := 0; y < blocks; y++ {
|
||||
ni := x + blocks*(blocks-y-1)
|
||||
if x+blocks*y > 2*blocks {
|
||||
if x+blocks*y >= 2*blocks {
|
||||
di := (x + blocks*y) - 2*blocks
|
||||
data[di] = nibbles[ni%32]%2 == 0
|
||||
}
|
||||
|
Reference in New Issue
Block a user