identicon-style-squares-0.1.0.0: Squares style for the identicon package

Copyright(c) Francesco Gazzetta 2017
LicenseBSD3 (see the file LICENSE)
Maintainerfrancygazz@gmail.org
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Graphics.Identicon.Styles.Squares

Description

Squares style for the identicon package.

Synopsis

Documentation

type Squares n = (Identicon (3 + NecessaryBytes n) :+ Consumer (NecessaryBytes n)) :+ Consumer 3 Source #

A grid of colored squares on a white background, with vertical symmetry. The argument n represents the number of columns on one side of the simmetry, excluding the central column. For example Squares 3 produces a 7x7 square (5=3*2+1). To have a github-like style, use Squares 2

squares :: (KnownNat n, Polyvariadic [Word8] Layer (ToLayer (NecessaryBytes n))) => Proxy n -> Implementation (Squares n) Source #

Implementation for the Squares style. See Squares for the meaning of n.