Module colour
Colour related functions (dlua only).
dlua
add_colour (name, fun) | Define a new elemental colour. |
colour_generation_function (rand, x, y) | This function is not a member of the module, but documents the expected behaviour of the second argument to add_colour. |
dlua
- add_colour (name, fun)
-
Define a new elemental colour.
Parameters:
- name string colour name
- fun colour_generation_function generation function
- colour_generation_function (rand, x, y)
-
This function is not a member of the module, but documents the expected
behaviour of the second argument to add_colour.
Parameters:
- rand int random number between 0 and 119
- x int
- y int The coordinates of the cell to be coloured
Returns:
-
string
The name of the basic colour to be used