Hoogle Search
Within LTS Haskell 24.38 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
Core types and definitions for flexible generation of identicons. Please see the Graphics.Identicon.Primitive module for a collection of building blocks to code layers of your identicon. A basic complete example looks like this:
import Codec.Picture import Data.ByteString (ByteString) import Data.Proxy import Data.Word (Word8) import Graphics.Identicon import Graphics.Identicon.Primitive myImageType :: Proxy (Identicon 4 :+ Consumer 4) myImageType = Proxy myImpl = Identicon :+ a where a :: Word8 -> Word8 -> Word8 -> Word8 -> Layer a r g b n = rsym $ onGrid 6 6 n $ circle $ gradientLR (edge . mid) black (PixelRGB8 r g b) myGenerator :: Int -> Int -> ByteString -> Maybe (Image PixelRGB8) myGenerator = renderIdenticon myImageType myImpl
myGenerator takes the desired width, height, and a hash that should have at least 4 bytes in it and returns an identicon corresponding to that hash or Nothing if the hash has less than 4 bytes in it or when width/height don't make sense. The identicon has randomly placed circle with gradient filling changing (horizontally) from black to some color and back to black. The circle is mirrored 4 times, and every repetition is rotated by 90°. This identicon consumes 4 bytes and has one layer. -
identicon Graphics.Identicon Identicon is a type that represents an identicon consisting of zero layers. The type is parametrized over a phantom type n which is a natural number on the type level that represents the number of bytes that should be provided to generate this type of identicon. Bytes typically come from some sort of hash that has a fixed size.
Identicon :: Identicon (n :: Nat)identicon Graphics.Identicon No documentation available.
-
jmacro Language.Javascript.JMacro Identifiers
-
jmacro Language.Javascript.JMacro No documentation available.
IdxExpr :: JExpr -> JExpr -> JExprjmacro Language.Javascript.JMacro No documentation available.
-
json-rpc Network.JSONRPC No documentation available.
-
json-rpc Network.JSONRPC No documentation available.
-
lame Codec.Audio.LAME Write ID3v1 and ID3v2
Id3v1Only :: MetadataPlacementlame Codec.Audio.LAME Only write ID3v1 metadata