Blinkchain v1.0.0 Blinkchain.Color View Source

Represents a color with red, green, blue, and (optionally) white components.

Link to this section Summary

Types

t()

Represents a color with red, green, blue, and (optionally) white components.

Functions

Parse a Blinkchain.Color.t/0 struct from an HTML-style hex code, formatted as

Link to this section Types

Represents a color with red, green, blue, and (optionally) white components.

Link to this section Functions

Parse a Blinkchain.Color.t/0 struct from an HTML-style hex code, formatted as:

  • "#RRGGBB" for RGB, or
  • "#RRGGBBWW" for RGBW.