Package-level declarations

Functions

Link copied to clipboard
.color base:{Color = Color(0, 0, 0)} \
red:{Int = base.red} \
green:{Int = base.green} \
blue:{Int = base.blue} \
alpha:{Number = base.alpha}
-> Color

Builds a color, either from scratch or from an existing one. Each given component replaces the corresponding one of base, while the others are kept. Without a base, unspecified components start from opaque black.