Guide 1 Docs 2 Reference 3
3

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) → Color

Makes a colour from hue, saturation and value, each 0 to 1.

color.nearest(c: Color) → Color

The colour a picture really shows, since it snaps to the map palette.

color.gradient(list: { Ink }, u: number, loop: boolean?) → Color

The colour u (0 to 1) of the way along the list; with loop, u wraps and the last colour runs back into the first.