georgesboris / elm-widgets-charts-alpha / W.Chart.Colors

Accessible colors based on https://www.s-ings.com/scratchpad/oklch-smooth/ .

mapWithColors : Palette -> (String -> a -> b) -> List a -> List b

mapWithColorsSkipping : Palette -> (String -> a -> b) -> List a -> List b


type Palette

mix : Palette

mixB : Palette

rainbow : Palette

cool : Palette

warm : Palette

amber : Palette

blue : Palette

cyan : Palette

emerald : Palette

gray : Palette

green : Palette

indigo : Palette

orange : Palette

pink : Palette

purple : Palette

red : Palette

rose : Palette

teal : Palette

violet : Palette

yellow : Palette

toColors : Palette -> List String

toColorWithShades : Palette -> List String

toColorWithShadesSkipping : Palette -> List String

colorByIndex : Palette -> Basics.Int -> String

Get the color string for each color in a palette. Use all shades for a given color before moving to the next color. This is usually recommended since the user will be able to distinguish different shades if the colors are near each other.

colorByIndexSkipping : Palette -> Basics.Int -> String

Get the color string for each color in a palette. Always skip color, move between shades after all colors were used. Shades are also slightly moved in a circular fashion to achieve more contrast.