Skip to content

babilonczyk/elixir-identicon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elixir Identicon

How to Run?

Clone repository, then:

cd elixir_identicon

mix deps.get

iex -S mix  

  iex> ElixirIdenticon.generate("babilonczyk")
    :ok

# Check your images directory :)

The goal of this project is to create a simple application that will generate the Github-like logo images, based on the string input. They should be "replicable", meaning once the same input was passed, the same identicon will be generated.

  graph LR;
      Generation[Identicon Generation]
      String-->Generation;
      Generation-->Image;
Loading

If String1 = String2, we receive the same image

  graph LR;
      String1-->Image;
      String2-->Image;
Loading

Pipeline:

  graph TB;
      Step1[String]
      Step2[Compute hash of string]
      Step3[List of numbers based of the string]
      Step4[Pick color]
      Step5[Build grid of squares]
      Step6[Convert grid to image]
      Step7[Save Image]

      Step1-->Step2;
      Step2-->Step3;
      Step3-->Step4;
      Step4-->Step5;
      Step5-->Step6;
      Step6-->Step7;
Loading

About

An app that takes string as an input and generates GitHub-like image

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages