identicon_3

identicon

License

License

Categories

Categories

IDE Development Tools CRaSH General Purpose Libraries Utility
GroupId

GroupId

io.crashbox
ArtifactId

ArtifactId

identicon_3
Last Version

Last Version

0.4.0
Release Date

Release Date

Type

Type

jar
Description

Description

identicon_3
identicon
Project URL

Project URL

https://github.com/jodersky/identicon
Source Code Management

Source Code Management

https://github.com/jodersky/identicon

Download identicon_3

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

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.4.0"
  • sbt:

    "io.crashbox" %%% "identicon" % "0.4.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.4.0