Identicon
Opens a PNG file populated with an identicon derived from:
- an input string (arbitrary)
- a dimension (number of squares across and down)
- a size (overall width and height in pixels)
Based on the course The Complete Elixir and Phoenix Bootcamp by Stephen Grider.
Usage
To use Identicon locally, run these commands:
git clone https://github.com/RaymondLoranger/identicon
cd identicon
mix deps.get
mix escript.build
mix escript.installYou can now run the application like so:
ic kiwi 7
ic pineapple 9 --size 350 --duration 7 --bell
ic orange 7 -s 300 -d 6
ic guava --no-bell --no-help
ic --helpExample 1
# Creates file "kiwi 250px 7x7.png" and opens it for 3 seconds.
ic kiwi 7Example 2
# Creates file "pineapple 350px 9x9.png" and opens it for 7 seconds.
ic pineapple 9 --size 350 --duration 7 --bellExample 3
# Creates file "orange 300px 7x7.png" and opens it for 6 seconds.
ic orange 7 -s 300 -d 6Example 4
# Creates file "guava 250px 5x5.png" and opens it for 3 seconds.
ic guava --no-bell --no-helpExample 5
# Prints info on the escript command's usage and syntax.
ic --help