the_stars/color

Types

pub type Color {
  Color(red: Int, green: Int, blue: Int)
  NoColor
}

Constructors

  • Color(red: Int, green: Int, blue: Int)
  • NoColor

Values

pub fn new(red: Int, green: Int, blue: Int) -> Color
pub fn new_from_hex(
  s: String,
) -> Result(Color, errors.ParseError)
pub fn rgb(color: Color) -> #(Int, Int, Int)
pub const rgb_max: Int
pub const rgb_min: Int
pub fn to_rgb_hex_string(color: Color) -> String
Search Document