KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
jadenticon
★ 13
Open GitHub ↗
Java wrapper for jdenticon
Download README (.md)
Explore Similar Repositories
CXCarousel
:
一个方便的滚播图控件
sqrtOram
:
No description available.
hydra
:
A Scale Testing infra using Mesos and marathon
atpg
:
An automatic test pattern generation (ATPG) and fault simulation system.
directShare
:
Tiny P2P File Sharing in C#
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
jadenticon
?
Download (.md)
 [](https://jitpack.io/#atomfrede/jadenticon) [](https://codecov.io/github/atomfrede/jadenticon?branch=master) # Jadenticon Jadenticon is a simple java wrapper for the [Jdenticon](https://jdenticon.com/) javascript library to create nice looking, random identicons. ## Get It Jadenticon is available on [Jitpack](https://jitpack.io/). **Gradle** ```groovy repositories { maven { url "https://jitpack.io" } } dependencies { implementation 'com.github.atomfrede:jadenticon:3.0.4' } ``` **Maven** ```xml <repository> <id>jitpack.io</id> <url>https://jitpack.io</url> </repository> <dependency> <groupId>com.github.atomfrede</groupId> <artifactId>jadenticon</artifactId> <version>3.0.3</version> </dependency> ``` ## Usage ```java // Create default jdenticon (as svg) with size 300 and padding 0.08 String rawSvg = Jadenticon.from("Jane Doe").toSvg(); // Create a jdenticon with size 555 and padding 0.08 // Restriction: 30 <= size String rawSvgWithSize = Jadenticon.from("Jane Doe").withSize(555).toSvg(); // Create a jdenticon with size 300 and padding 0.1 // Restriction: 0 <= padding <= 0.5 String rawSvgWithPadding = Jadenticon.from("John Doe").withPadding(0.1); // You can save it directly to a svg file, the .svg suffix is added automatically File svgFile = Jadenticon.from("Jane Doe").file("janedoe"); // You can save it directly to a png file, the .png suffix is added automatically File pngFile = Jadenticon.from("Janet Doe").png("janetdoe"); // If you don't care about the file you don't need to provide any File svgFile2 = Jadenticon.from("John Doe").file(); File pngFile2 = Jadenticon.from("Johnny Doe").png(); ``` ## Example ![example jdenticon][example] [example]: https://github.com/atomfrede/jadenticon/raw/master/example.png "Sample identicon" ## License Apache-2.0 © [Frederik Hahne](http://atomfrede.github.io/shiny-adventure/)