rakutentech/r10/2.1.3

NOTE: the latest version is 7.0.0

R10.Color.Utils

Utilities for colors.

colorToElementColor : Color -> Color

Transform a color, as defined in avh4/elm-color, to an Element color, as defined in mdgriffith/elm-ui.

elementColorToColor : Color -> Color

Transform a color, as defined in mdgriffith/elm-ui, to an Element color, as defined in avh4/elm-color.

fromHex : String -> Color

Convert a string containing an hexadecimal number to a Color.

toHex : Color -> String
fromLightToDark : Color -> Color

Convert a color from Light Mode to Dark Mode.

setAlpha : Float -> Color -> Color

Change the alpha channel in a color.