aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/issue9/identicon/README.md
diff options
context:
space:
mode:
authorMura Li <typeless@users.noreply.github.com>2019-03-27 19:15:23 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2019-03-27 19:15:23 +0800
commitd77176912bccf1dc0ad93366df55f00fee23b498 (patch)
tree309fc6350f77f4061360160b88343360d45d5d24 /vendor/github.com/issue9/identicon/README.md
parentd578b71d61ee8131e8abf7f538b93d8c6cc6fe6d (diff)
downloadgitea-d77176912bccf1dc0ad93366df55f00fee23b498.tar.gz
gitea-d77176912bccf1dc0ad93366df55f00fee23b498.zip
Use Go1.11 module (#5743)
* Migrate to go modules * make vendor * Update mvdan.cc/xurls * make vendor * Update code.gitea.io/git * make fmt-check * Update github.com/go-sql-driver/mysql * make vendor
Diffstat (limited to 'vendor/github.com/issue9/identicon/README.md')
-rw-r--r--vendor/github.com/issue9/identicon/README.md40
1 files changed, 40 insertions, 0 deletions
diff --git a/vendor/github.com/issue9/identicon/README.md b/vendor/github.com/issue9/identicon/README.md
new file mode 100644
index 0000000000..a68c73bc4e
--- /dev/null
+++ b/vendor/github.com/issue9/identicon/README.md
@@ -0,0 +1,40 @@
+identicon [![Build Status](https://travis-ci.org/issue9/identicon.svg?branch=master)](https://travis-ci.org/issue9/identicon)
+======
+
+根据用户的IP、邮箱名等任意数据为用户产生漂亮的随机头像。
+
+![screenhost.1](https://raw.github.com/issue9/identicon/master/screenshot/1.png)
+![screenhost.4](https://raw.github.com/issue9/identicon/master/screenshot/4.png)
+![screenhost.5](https://raw.github.com/issue9/identicon/master/screenshot/5.png)
+![screenhost.6](https://raw.github.com/issue9/identicon/master/screenshot/6.png)
+![screenhost.7](https://raw.github.com/issue9/identicon/master/screenshot/7.png)
+
+```go
+// 根据用户访问的IP,为其生成一张头像
+img, _ := identicon.Make(128, color.NRGBA{},color.NRGBA{}, []byte("192.168.1.1"))
+fi, _ := os.Create("/tmp/u1.png")
+png.Encode(fi, img)
+fi.Close()
+
+// 或者
+ii, _ := identicon.New(128, color.NRGBA{}, color.NRGBA{}, color.NRGBA{}, color.NRGBA{})
+img := ii.Make([]byte("192.168.1.1"))
+img = ii.Make([]byte("192.168.1.2"))
+```
+
+### 安装
+
+```shell
+go get github.com/issue9/identicon
+```
+
+
+### 文档
+
+[![Go Walker](http://gowalker.org/api/v1/badge)](http://gowalker.org/github.com/issue9/identicon)
+[![GoDoc](https://godoc.org/github.com/issue9/identicon?status.svg)](https://godoc.org/github.com/issue9/identicon)
+
+
+### 版权
+
+本项目采用[MIT](http://opensource.org/licenses/MIT)开源授权许可证,完整的授权说明可在[LICENSE](LICENSE)文件中找到。