misc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.alexwennerberg.com/misc
Log | Files | Refs | README | LICENSE

commit f6ce5fbafe6d56a6ed53f8b8c7000de423b7ca85
parent dd54e242b7849939b19f72c0a4af08178e9d1515
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sun, 15 Aug 2021 09:54:56 -0700

Remove debug print, adjust size

Diffstat:
Mavatar.go | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/avatar.go b/avatar.go @@ -38,7 +38,7 @@ var avatarcolors = [4][4]byte{ } // x and y dimensions in pixels -const size = 500 +const size = 100 func genAvatar(name string) []byte { h := sha512.New() @@ -51,7 +51,6 @@ func genAvatar(name string) []byte { p := i*img.Stride + j*4 xx := i/(size/4)*16 + j/(size/4) x := s[xx] - fmt.Println(x) if x < 64 { img.Pix[p+0] = avatarcolors[0][0] img.Pix[p+1] = avatarcolors[0][1]