catppuccin

Types

pub type Color {
  Color(hex: Hex, rgb: RGB, hsl: HSL)
}

Constructors

  • Color(hex: Hex, rgb: RGB, hsl: HSL)
pub type HSL {
  HSL(h: Int, s: Float, l: Float)
}

Constructors

  • HSL(h: Int, s: Float, l: Float)
pub type Hex =
  String
pub type RGB {
  RGB(r: Int, g: Int, b: Int)
}

Constructors

  • RGB(r: Int, g: Int, b: Int)

Functions

pub fn to_hex(color: Color) -> String
pub fn to_hsl(color: Color) -> HSL
pub fn to_rgb(color: Color) -> RGB
Search Document