miniBill / elm-avataaars / Avataaars

An Avataaar contains all the information to draw a cute avatar

Definition


type alias Avataaar =
{ circleBg : Basics.Bool
, skinTone : SkinTone
, clothes : Clothes
, face : Face
, top : Top 
}

An Avataaar is a description of how to draw an avataaar.

Example:

avataaar : Avataaar
avataaar =
    { circleBg = True
    , skinTone = SkinTone.black
    , clothes = Clothes.BlazerShirt
    , face =
        { mouth = Mouth.Default
        , eyes = Eyes.Default
        , eyebrow = Eyebrow.Default
        }
    , top = Top.TopAccessoryFacialHair Top.NoHair Accessory.Blank FacialHair.Blank
    }

View function

view : { width : Basics.Int, height : Basics.Int } -> Avataaar -> Svg msg

Transform an Avataaar into an Svg msg.