Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Identicon ¶
type Identicon struct { Pixels []Point // contains filtered or unexported fields }
Identicon grphically represents a hash in a 5x5 matrix
func Generate ¶
Generate creates an Identicon from an arbitrary byte array. It is garanteed that the same byte array produces the same Identicon.
func (Identicon) WritePNGImage ¶
WritePNGImage writes the identicon image to the given writer with width and height of 5 times pixwidth and LightBackground(true) or LightBackground(false) as lbg
Click to show internal directories.
Click to hide internal directories.