1- # letteravatar
1+ # initials
22
3- [ ![ GoDoc] ( https://godoc.org/github.com/tnb-labs/letteravatar/v2?status.svg )] ( https://godoc.org/github.com/tnb-labs/letteravatar/v2 )
4- [ ![ Go] ( https://img.shields.io/github/go-mod/go-version/tnb-labs/letteravatar )] ( https://go.dev/ )
5- [ ![ Release] ( https://img.shields.io/github/release/tnb-labs/letteravatar.svg )] ( https://github.com/tnb-labs/letteravatar/releases )
6- [ ![ Test] ( https://github.com/tnb-labs/letteravatar/actions/workflows/test.yml/badge.svg )] ( https://github.com/tnb-labs/letteravatar/actions )
7- [ ![ Report Card] ( https://goreportcard.com/badge/github.com/tnb-labs/letteravatar/v2 )] ( https://goreportcard.com/report/github.com/tnb-labs/letteravatar/v2 )
8- [ ![ License] ( https://img.shields.io/github/license/tnb-labs/letteravatar )] ( https://mit-license.org/ )
3+ [ ![ GoDoc] ( https://godoc.org/github.com/weavatar/initials?status.svg )] ( https://godoc.org/github.com/weavatar/initials )
4+ [ ![ Go] ( https://img.shields.io/github/go-mod/go-version/weavatar/initials )] ( https://go.dev/ )
5+ [ ![ Release] ( https://img.shields.io/github/release/weavatar/initials.svg )] ( https://github.com/weavatar/initials/releases )
6+ [ ![ Test] ( https://github.com/weavatar/initials/actions/workflows/test.yml/badge.svg )] ( https://github.com/weavatar/initials/actions )
7+ [ ![ Report Card] ( https://goreportcard.com/badge/github.com/weavatar/initials )] ( https://goreportcard.com/report/github.com/weavatar/initials )
98
10- Letter avatar generation for Go.
9+ Initials avatar generation for Go.
1110
1211## Usage
1312
14- Generate a 100x100px 'A'-letter avatar:
13+ Generate a 100x100px 'A'-initial avatar:
1514
1615``` go
17- img , err := letteravatar .Draw (100 , ' A' , nil )
16+ img , err := initials .Draw (100 , ' A' , nil )
1817```
1918
2019The third parameter ` options *Options ` can be used for customization:
@@ -32,7 +31,7 @@ type Options struct {
3231Using a custom palette:
3332
3433``` go
35- img , err := letteravatar .Draw (100 , []rune{' A' }, &letteravatar .Options {
34+ img , err := initials .Draw (100 , []rune{' A' }, &initials .Options {
3635 Palette : []color.Color {
3736 color.RGBA {255 , 0 , 0 , 255 },
3837 color.RGBA {0 , 255 , 0 , 255 },
@@ -43,7 +42,7 @@ img, err := letteravatar.Draw(100, []rune{'A'}, &letteravatar.Options{
4342
4443## Documentation
4544
46- [ https://godoc.org/github.com/tnb-labs/letteravatar/v2 ] ( https://godoc.org/github.com/tnb-labs/letteravatar/v2 )
45+ [ https://godoc.org/github.com/weavatar/initials ] ( https://godoc.org/github.com/weavatar/initials )
4746
4847## Examples
4948
@@ -68,7 +67,7 @@ import (
6867 " os"
6968 " unicode/utf8"
7069
71- " github.com/tnb-labs/letteravatar/v2 "
70+ " github.com/weavatar/initials "
7271)
7372
7473var names = []string {
@@ -90,7 +89,7 @@ func main() {
9089 for _ , name := range names {
9190 firstLetter , _ := utf8.DecodeRuneInString (name)
9291
93- img , err := letteravatar .Draw (75 , []rune{firstLetter}, nil )
92+ img , err := initials .Draw (75 , []rune{firstLetter}, nil )
9493 if err != nil {
9594 log.Fatal (err)
9695 }
@@ -111,7 +110,7 @@ func main() {
111110
112111## License
113112
114- The package "letteravatar " is distributed under the terms of the MIT license.
113+ The package "initials " is distributed under the terms of the MIT license.
115114
116115The Roboto-Medium font is distributed under the terms of the Apache License v2.0.
117116
0 commit comments