Add methods to initialize icon generators

This commit is contained in:
2022-12-26 12:49:48 +01:00
parent b84f291d2b
commit 18a1c2276b
5 changed files with 36 additions and 17 deletions

View File

@ -10,7 +10,7 @@ import (
)
type IconGenerator interface {
GenIcon(id string, size int, f func([16]byte) color.RGBA) *image.NRGBA
GenIcon(id string, size int) *image.NRGBA
}
func HashBytes(id string) [16]byte {