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.

  1. module Graphics.Identicon

    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.

  2. data Identicon (n :: Nat)

    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.

  3. Identicon :: Identicon (n :: Nat)

    identicon Graphics.Identicon

    No documentation available.

  4. newtype Ident

    jmacro Language.Javascript.JMacro

    Identifiers

  5. newtype IdentSupply a

    jmacro Language.Javascript.JMacro

    No documentation available.

  6. IdxExpr :: JExpr -> JExpr -> JExpr

    jmacro Language.Javascript.JMacro

    No documentation available.

  7. IdInt :: Int -> Id

    json-rpc Network.JSONRPC

    No documentation available.

  8. IdTxt :: Text -> Id

    json-rpc Network.JSONRPC

    No documentation available.

  9. Id3Both :: MetadataPlacement

    lame Codec.Audio.LAME

    Write ID3v1 and ID3v2

  10. Id3v1Only :: MetadataPlacement

    lame Codec.Audio.LAME

    Only write ID3v1 metadata

Page 216 of many | Previous | Next