Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yingzhuo/avatar-generator

avatar-generator for java.
https://github.com/yingzhuo/avatar-generator

avatar avatar-generator java

Last synced: 25 days ago
JSON representation

avatar-generator for java.

Awesome Lists containing this project

README

        

[![License](http://img.shields.io/badge/License-Apache_2-red.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0)
[![JDK](http://img.shields.io/badge/JDK-v8.0-yellow.svg)](http://www.oracle.com/technetwork/java/javase/downloads/index.html)
[![Build](http://img.shields.io/badge/Build-Maven_2-green.svg)](https://maven.apache.org/)
[![Maven Central](https://img.shields.io/maven-central/v/com.github.yingzhuo/avatar-generator.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.github.yingzhuo%22%20AND%20a:%22avatar-generator%22)

# avatar-generator

### 依赖

```xml

com.github.yingzhuo
avatar-generator
${version}

```
### 使用

```java
public static void main(String[] args) {
final Avatar avatar = IdenticonAvatar.newAvatarBuilder()
.layers(new ColorPaintBackgroundLayer(Color.WHITE))
.build();

final BufferedImage image = avatar.create(123456L);
}
```

### 作者

* 应卓 - [github](https://github.com/yingzhuo)