mirror of
https://github.com/pcvolkmer/idicon.git
synced 2025-04-19 08:36:50 +00:00
Fix issue in gh icons with missing first nibble
This commit is contained in:
parent
98d85ed9ae
commit
79fc47068b
@ -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
|
||||
}
|
||||
|
BIN
testdata/1a79a4d60de6718e8e5b326e338ae533_gh.png
vendored
BIN
testdata/1a79a4d60de6718e8e5b326e338ae533_gh.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 242 B After Width: | Height: | Size: 256 B |
BIN
testdata/a1d0c6e83f027327d8461063f4ac58a6_gh.png
vendored
BIN
testdata/a1d0c6e83f027327d8461063f4ac58a6_gh.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 266 B After Width: | Height: | Size: 268 B |
Loading…
x
Reference in New Issue
Block a user