ColorHash v0.2.0 ColorHash

Generate color based on the given string.

Link to this section Summary

Link to this section Types

Link to this type

options()

options() :: [
  lightness: Range.t() | list() | integer(),
  saturation: Range.t() | list() | integer()
]

Link to this section Functions

Link to this function

hex(string, opts \\ [])

hex(String.t(), options()) :: String.t()
Link to this function

hsl(string, opts \\ [])

hsl(String.t(), options()) :: list()
Link to this function

rgb(string, opts \\ [])

rgb(String.t(), options()) :: list()