[{"name":"Color","comment":" An Elm package to work with web colors.\n\nExample usage\n\n    colors : List Color\n    colors =\n        [ hsl 194 0.49 0.14\n        , fromHexUnsafe \"#06A77D\"\n        , rgb 0.96 0.976 0.996\n        , rgb255 122 137 194\n        ]\n\n    colorPalette : List Color\n    colorPalette =\n        fromPalette \"https://coolors.co/40f99b-61707d\"\n\n    green : Color\n    green =\n        hsl 164 0.93 0.34\n\n    fontColor : Color\n    fontColor =\n        if isLight green then\n            black\n\n        else\n            white\n\n    viewHtml : Html msg\n    viewHtml =\n        Html.div\n            [ style \"background-color\" (Color.toCssString green)\n            , style \"color\" (Color.toCssString fontColor)\n            ]\n            [ Html.text (toCssString green) ]\n\n\n# Types\n\n@docs Color\n\n\n# Creating colors\n\n\n## Standard way\n\n@docs rgb, hsl, gray\n\n\n## From strings\n\n@docs fromHex, fromPalette, fromHexUnsafe\n\n\n# Convert\n\n@docs toCssString, toRgba, toHsla, toHexString, toRgba255\n\n\n# Manipulate\n\n@docs invertRgb, setAlpha\n\n\n# Lightness\n\n@docs isLight, lightness\n\n\n# Transform\n\n\n## Rgb\n\n@docs mapRgb, mapRed, mapGreen, mapBlue, mapAlpha\n\n\n## HSL\n\n@docs mapHue, mapLightness, mapSaturation\n\n\n# Variants\n\nMore constructors\n\n@docs rgb255, rgba, hsla, rgba255, fromRgb, fromRgba, fromHsla, fromRgb255, fromHsl\n\n\n# Helper colors\n\n@docs black, white\n\n","unions":[],"aliases":[{"name":"Color","comment":" The Color type representing a color in rgba space\n","args":[],"type":"Color.Internal.Color"}],"values":[{"name":"black","comment":" #000000\n","type":"Color.Color"},{"name":"fromHex","comment":" Parse a hex string to a color\n\nCan handle different formats:\n\n    fromHex \"#000\"\n\n    fromHex \"#F0F0F0\"\n\n    fromHex \"0xA0A0A0\"\n\n    fromHex \"8F8F8F\"\n\n    fromHex \"#C6C6C680\"\n\n","type":"String.String -> Maybe.Maybe Color.Color"},{"name":"fromHexUnsafe","comment":" Like fromHex, but uses transparent (`rgba 0 0 0 0`) as default value.\n","type":"String.String -> Color.Color"},{"name":"fromHsl","comment":" Create a color from an HSL record\n\nHue takes a value between 0 and 360.\n\nSaturation and lightness take a value between 0 and 1.\n\n","type":"{ hue : Basics.Float, saturation : Basics.Float, lightness : Basics.Float } -> Color.Color"},{"name":"fromHsla","comment":" Create a color from an HSL(a) record\n\nHue takes a value between 0 and 360.\n\nSaturation, lightness, and alpha take a value between 0 and 1.\n\n","type":"{ hue : Basics.Float, saturation : Basics.Float, lightness : Basics.Float, alpha : Basics.Float } -> Color.Color"},{"name":"fromPalette","comment":" Parses different palette formats\n\n    fromPalette \"https://huemint.com/website-monochrome/#palette=fffffc-00eb80\"\n    --> List.filterMap Color.fromHex [ \"fffffc\", \"00eb80\" ] : List Color\n\n    fromPalette \"\"\"\n                fffffc\n                00eb80\n                000000\n                \"\"\"\n    --> List.filterMap Color.fromHex [ \"fffffc\", \"00eb80\", \"000000\" ] : List Color\n\n    fromPalette \"https://coolors.co/40f99b-61707d\"\n    --> List.filterMap Color.fromHex [ \"40f99b\", \"61707d\" ] : List Color\n\n    -- Infact, it works with everything that has 6 digits hex values\n    fromPalette \"xxxxfffffc-00eb80x000000---\"\n    --> List.filterMap Color.fromHex [ \"fffffc\", \"00eb80\", \"000000\" ] : List Color\n\n","type":"String.String -> List.List Color.Color"},{"name":"fromRgb","comment":" Create a color from an rgb record. Each channel takes a value between 0 and 1.\n","type":"{ red : Basics.Float, green : Basics.Float, blue : Basics.Float } -> Color.Color"},{"name":"fromRgb255","comment":" Create a color from an rgb record. Each channel takes a value between 0 and 255.\n","type":"{ red : Basics.Int, green : Basics.Int, blue : Basics.Int } -> Color.Color"},{"name":"fromRgba","comment":" Create a color from an rgba record. Each channel takes a value between 0 and 1.\n","type":"{ red : Basics.Float, green : Basics.Float, blue : Basics.Float, alpha : Basics.Float } -> Color.Color"},{"name":"gray","comment":" Create a gray color. I.e. for a 50% gray: `gray 0.5`\n","type":"Basics.Float -> Color.Color"},{"name":"hsl","comment":" Provide the hue, saturation and lightness channels for the color.\n\nHue takes a value between 0 and 360.\n\nSaturation and lightness take a value between 0 and 1.\n\n","type":"Basics.Float -> Basics.Float -> Basics.Float -> Color.Color"},{"name":"hsla","comment":" Provide the hue, saturation, lightness, and alpha channels for the color.\n\nHue takes a value between 0 and 360.\n\nSaturation, lightness, and alpha take a value between 0 and 1.\n\n","type":"Basics.Float -> Basics.Float -> Basics.Float -> Basics.Float -> Color.Color"},{"name":"invertRgb","comment":" Invert a color by flipping its r g b values\n","type":"Color.Color -> Color.Color"},{"name":"isLight","comment":" Determine if a color is light, that is, if the lightness is over 50% (`L* > 0.5`). Using the L\\* CIELAB color space for human percieved lightness.\n\nUseful for example if you want to change font color based on the lightness of the color.\n\n","type":"Color.Color -> Basics.Bool"},{"name":"lightness","comment":" Lightness is the **visual perception** of the luminance L of an object. It is the L\\* component of a color in the CIELAB and CIELUV space.\n\nFor more information on this, take a look at the implementation details!\n\n","type":"Color.Color -> Basics.Float"},{"name":"mapAlpha","comment":" ","type":"(Basics.Float -> Basics.Float) -> Color.Color -> Color.Color"},{"name":"mapBlue","comment":" ","type":"(Basics.Float -> Basics.Float) -> Color.Color -> Color.Color"},{"name":"mapGreen","comment":" ","type":"(Basics.Float -> Basics.Float) -> Color.Color -> Color.Color"},{"name":"mapHue","comment":" Map the hue of the color in HSL space\n","type":"(Basics.Float -> Basics.Float) -> Color.Color -> Color.Color"},{"name":"mapLightness","comment":" Map the lightness in the HSL space\n\n    darken : Color -> Color\n    darken =\n        mapLightness ((*) 0.95)\n\n","type":"(Basics.Float -> Basics.Float) -> Color.Color -> Color.Color"},{"name":"mapRed","comment":" ","type":"(Basics.Float -> Basics.Float) -> Color.Color -> Color.Color"},{"name":"mapRgb","comment":" Map over rgb channels\n\n    invertRgb : Color -> Color\n    invertRgb =\n        mapRgb (\\c -> 1 - c)\n\n","type":"(Basics.Float -> Basics.Float) -> Color.Color -> Color.Color"},{"name":"mapSaturation","comment":" Map the saturation of the color in HSL space\n","type":"(Basics.Float -> Basics.Float) -> Color.Color -> Color.Color"},{"name":"rgb","comment":" Provide the red, green, and blue channels for the color.\n\nEach channel takes a value between 0 and 1.\n\n","type":"Basics.Float -> Basics.Float -> Basics.Float -> Color.Color"},{"name":"rgb255","comment":" Provide the red, green, and blue channels for the color.\n\nEach channel takes a value between 0 and 255.\n\n","type":"Basics.Int -> Basics.Int -> Basics.Int -> Color.Color"},{"name":"rgba","comment":" Provide the red, green, blue, and alpha channels for the color.\n\nEach channel takes a value between 0 and 1.\n\n","type":"Basics.Float -> Basics.Float -> Basics.Float -> Basics.Float -> Color.Color"},{"name":"rgba255","comment":" Provide the red, green, blue and alpha channels for the color.\n\nEach channel takes a value between 0 and 255.\n\n","type":"Basics.Int -> Basics.Int -> Basics.Int -> Basics.Int -> Color.Color"},{"name":"setAlpha","comment":" Set the alpha of the color\n","type":"Basics.Float -> Color.Color -> Color.Color"},{"name":"toCssString","comment":" Convert a color to an hex string. Use `toHexString` to omit the `#`-prefix.\n\n    toHexString (rgb 0.5 0.5 0.5) --> \"#808080\"\n\n","type":"Color.Color -> String.String"},{"name":"toHexString","comment":" Convert a color to an hex string. Use `toCssString` if you want a `#`-prefixed hex value.\n\n    toHexString (rgb 0.5 0.5 0.5) --> \"808080\"\n\n","type":"Color.Color -> String.String"},{"name":"toHsla","comment":" Deconstruct a Color into its hsla channels.\n","type":"Color.Color -> { hue : Basics.Float, saturation : Basics.Float, lightness : Basics.Float, alpha : Basics.Float }"},{"name":"toRgba","comment":" Deconstruct a Color into its rgba channels.\n","type":"Color.Color -> { red : Basics.Float, green : Basics.Float, blue : Basics.Float, alpha : Basics.Float }"},{"name":"toRgba255","comment":" Deconstruct a Color into its rgba255 channels.\n","type":"Color.Color -> { red : Basics.Int, green : Basics.Int, blue : Basics.Int, alpha : Basics.Int }"},{"name":"white","comment":" #FFFFFF\n","type":"Color.Color"}],"binops":[]}]