colorhash

Types

pub type ColorHash {
  ColorHash(
    saturations: dict.Dict(Int, Float),
    lightnesses: dict.Dict(Int, Float),
    hue_ranges: dict.Dict(Int, #(Float, Float)),
  )
}

Constructors

Values

pub fn new() -> ColorHash
pub fn to_color(
  color_hash: ColorHash,
  input: String,
) -> colour.Colour
pub fn with_hue_ranges(
  color_hash: ColorHash,
  hue_ranges: List(#(Float, Float)),
) -> ColorHash
pub fn with_lightnesses(
  color_hash: ColorHash,
  lightnesses: List(Float),
) -> ColorHash
pub fn with_saturations(
  color_hash: ColorHash,
  saturations: List(Float),
) -> ColorHash
Search Document