[
    {
        "name": "ColorPicker",
        "comment": " An Elm library to help you implement a color picker tool.\n\n@docs State, Msg, empty, update, view, color2Hex, hex2Color\n\n",
        "unions": [
            {
                "name": "Msg",
                "comment": " Opaque type. These messages are handled by `ColorPicker.update`\n",
                "args": [],
                "cases": []
            },
            {
                "name": "State",
                "comment": " Opaque type. Needs to be added to your model. You will also need to store a color in your model\n\n    type alias Model =\n        { myColour : Color\n        , colorPicker : ColorPicker.Model\n        }\n\n",
                "args": [],
                "cases": []
            }
        ],
        "aliases": [],
        "values": [
            {
                "name": "color2Hex",
                "comment": " Converts `Color` to `String` (with preceding `#`).\nUsed internally and exposed because the public alternative is a library with multiple dependencies.\n",
                "type": "Color -> String"
            },
            {
                "name": "empty",
                "comment": " Initial ColorPicker state\n\n    init =\n        { myColour = Color.red\n        , colorPicker = ColorPicker.empty\n        }\n\n",
                "type": "State"
            },
            {
                "name": "hex2Color",
                "comment": " Converts `String` to `Color`.\nUsed internally and exposed because the public alternative is a library with multiple dependencies.\n",
                "type": "String -> Maybe Color"
            },
            {
                "name": "update",
                "comment": " On each update, ColorPicker returns its model and (where appropriate) the new selected colo(u)r.\n\n    ColorPickermsg msg ->\n        let\n            (cp, col) =\n                ColorPicker.update msg model.colorPicker\n        in\n            { model | colorPicker = cp, myColor = Maybe.withDefault model.myColor col }\n\n",
                "type": "Msg -> Color -> State -> ( State, Maybe Color )"
            },
            {
                "name": "view",
                "comment": " Renders the color picker on screen\n",
                "type": "Color -> State -> Html Msg"
            }
        ],
        "binops": []
    }
]