color global
Makes a Color from red, green and blue, 0 to 1; also from hue, saturation and value, or the nearest map colour.
Docs: Basics((r: number, g: number, b: number) -> Color)
Functions 3
color.hsv(h: number, s: number, v: number) → ColorMakes a colour from hue, saturation and value, each 0 to 1.
color.nearest(c: Color) → ColorThe colour a picture really shows, since it snaps to the map palette.
color.gradient(list: { Ink }, u: number, loop: boolean?) → ColorThe colour u (0 to 1) of the way along the list; with loop, u wraps and the last colour runs back into the first.