(https://jitpack.io/#WycliffeAssociates/jdenticon-kotlin)
Kotlin library for generating highly recognizable identicons.
This is based on the JavaScript Jdenticon library.
JVM:
<dependency>
<groupId>org.wycliffeassociates</groupId>
<artifactId>jdenticon-kotlin-jvm</artifactId>
<version>1.x</version>
<type>pom</type>
</dependency>
JS:
<dependency>
<groupId>org.wycliffeassociates</groupId>
<artifactId>jdenticon-kotlin-js</artifactId>
<version>1.x</version>
<type>pom</type>
</dependency>
JVM:
repositories {
jcenter()
}
implementation 'org.wycliffeassociates:jdenticon-kotlin-jvm:1.x'
JS:
repositories {
jcenter()
}
implementation 'org.wycliffeassociates:jdenticon-kotlin-js:1.x'
(Please replace x
with the latest version numbers) y
1.1 and lower versions use the artifact ID "jdenticon-kotlin"
Due to kotlin multiplatform support, the artifact id needs to reflect the platform:
jdenticon-kotlin-jvm
or jdenticon-kotlin-js
-
Jdenticon.toSvg(hash: String, size: Int, padding: Float?)
Generates an SVG string containing an icon. Padding is optional (default is null).
Jdenticon Kotlin is available under the MIT License. See the LICENSE file for more info.