identicon


License

License

Categories

Categories

IDE Development Tools CRaSH General Purpose Libraries Utility
GroupId

GroupId

io.crashbox
ArtifactId

ArtifactId

identicon_2.12
Last Version

Last Version

0.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

identicon
identicon
Project URL

Project URL

https://github.com/jodersky/identicon
Project Organization

Project Organization

io.crashbox
Source Code Management

Source Code Management

https://github.com/jodersky/identicon

Download identicon_2.12

How to add to project

<!-- https://jarcasting.com/artifacts/io.crashbox/identicon_2.12/ -->
<dependency>
    <groupId>io.crashbox</groupId>
    <artifactId>identicon_2.12</artifactId>
    <version>0.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/io.crashbox/identicon_2.12/
implementation 'io.crashbox:identicon_2.12:0.2.0'
// https://jarcasting.com/artifacts/io.crashbox/identicon_2.12/
implementation ("io.crashbox:identicon_2.12:0.2.0")
'io.crashbox:identicon_2.12:jar:0.2.0'
<dependency org="io.crashbox" name="identicon_2.12" rev="0.2.0">
  <artifact name="identicon_2.12" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.crashbox', module='identicon_2.12', version='0.2.0')
)
libraryDependencies += "io.crashbox" % "identicon_2.12" % "0.2.0"
[io.crashbox/identicon_2.12 "0.2.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.12.7

Project Modules

There are no modules declared in this project.

Identicons

A tiny implementation of identicons, similar to the ones used by GitHub for new avatars.

If you are interested in the workings of identicons, check out this excellent blog post by Jussi Judin.

Dependencies

This library is totally self-contained, there are no 3rd party dependencies. It is built and published for Scala on JVM, JS and Native.

Download

  • mill:

    ivy"io.crashbox::identicon::0.3.0"
  • sbt:

    "io.crashbox" %%% "identicon" % "0.3.0"

Usage

// generate identicon for user "admin" in SVG form
identicon.svg("admin") // = <svg width="5" height="5"><rect x="0" y="3" ...

// in base64 data url form
identicon.url("admin") // = data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0...

See the online generator for an interactive preview. The generator is simply a static site that uses the ScalaJS version of this library.

Versions

Version
0.2.0
0.1.0