Blinkchain v1.0.0 Blinkchain.Color View Source
Represents a color with red, green, blue, and (optionally) white components.
Link to this section Summary
Functions
Parse a Blinkchain.Color.t/0 struct from an HTML-style hex code,
formatted as
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: %Blinkchain.Color{
b: Blinkchain.uint8(),
g: Blinkchain.uint8(),
r: Blinkchain.uint8(),
w: Blinkchain.uint8()
}
t() :: %Blinkchain.Color{
b: Blinkchain.uint8(),
g: Blinkchain.uint8(),
r: Blinkchain.uint8(),
w: Blinkchain.uint8()
}
Represents a color with red, green, blue, and (optionally) white components.
Link to this section Functions
Link to this function
parse(arg) View Source
Parse a Blinkchain.Color.t/0 struct from an HTML-style hex code,
formatted as:
"#RRGGBB"for RGB, or"#RRGGBBWW"for RGBW.