Generate a phace from a hexadecimal String. Make sure to remove any "0x" from the source first.
Specify svg width and height
Phace generation will fail if the provided source is too short or not composed of hex characters.
Get an explanation from an error type.
Just get the primary color of the Phace. Can be used to make a unique "character color" that matches the Phace.
Generate a phace from an Ethereum
Address. Uses 32 chraracters, leaving 6 characters near the middle unused.Specify svg width and height (Note that values other than 100x100 have only been minimally tested)
CAUTION: If you supply a malformed Eth address (maybe you were mucking about with
Eth.Utils.unsafeToAddress?), this will produce a plain div with an error message in it.