utils.colourcube

Changes the colour cube used by 256-colour ANSI codes

Prototype

utils.colourcube (which)

Description

There are (at least) two colour cubes which can be used to generate the 216 colours used by 256-colour ANSI. (6 * 6 * 6 = 216). The other colours are fixed: 16 "standard ANSI" colours plus 24 gray-scale ones.

This function lets you choose between the Xterm cube (the default) which favours brighter colours (the gap between colours is: 95 / 40 / 40 / 40) and the Netscape cube which has even colours, with a consistent gap of 51 / 51 / 51 / 51 / 51.

utils.colourcube (1) -- Use the Xterm cube

utils.colourcube (2) -- Use the Netscape cube

Lua functions

Topics