Module colors

Procs

proc initColor(r, g, b: float32; a: float32 = 1.0'f32): Color {.
inline, raises: [], tags: []
.}
  Source Edit
proc initColor(): Color {.
inline, raises: [], tags: []
.}
Initializes black color with 1.0 alpha   Source Edit
proc h(self: Color): float32 {.
inline, raises: [], tags: []
.}
  Source Edit
proc s(self: Color): float32 {.
inline, raises: [], tags: []
.}
  Source Edit
proc v(self: Color): float32 {.
inline, raises: [], tags: []
.}
  Source Edit
proc `$`(self: Color): string {.
inline, raises: [], tags: []
.}
  Source Edit
proc hash(self: Color): Hash {.
inline, raises: [], tags: []
.}
  Source Edit
proc toHtml(self: Color; withAlpha: bool): string {.
raises: [], tags: []
.}
  Source Edit
proc toARGB32(self: Color): uint32 {.
inline, raises: [], tags: []
.}
  Source Edit
proc gray(self: Color): float32 {.
inline, raises: [], tags: []
.}
  Source Edit
proc inverted(self: Color): Color {.
inline, raises: [], tags: []
.}
  Source Edit
proc contrasted(self: Color): Color {.
inline, raises: [], tags: []
.}
  Source Edit
proc lerp(self: Color; b: Color; t: float32): Color {.
inline, raises: [], tags: []
.}
  Source Edit
proc blend(self: Color; over: Color): Color {.
inline, raises: [], tags: []
.}
  Source Edit
proc `==`(a, b: Color): bool {.
inline, raises: [], tags: []
.}
  Source Edit
proc `<`(a, b: Color): bool {.
raises: [], tags: []
.}
  Source Edit