Difference between revisions of "Manual:Display Functions"
Jump to navigation
Jump to search
(→wrapLine: remove double section) |
(→display: remove double entry to manual) |
||
Line 2: | Line 2: | ||
= Display Functions = | = Display Functions = | ||
A collection of functions for displaying or formatting information on the screen. | A collection of functions for displaying or formatting information on the screen. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==showColors== | ==showColors== |
Revision as of 21:12, 8 July 2017
Display Functions
A collection of functions for displaying or formatting information on the screen.
showColors
- showColors(columns, filterColor)
- shows the named colors currently available in Mudlet's color table. These colors are stored in color_table, in table form. The format is color_table.colorName = {r,g,b}.
- See Also: bg(), fg(), cecho()
- Parameters
- columns:
- Optional: number of columns to print the color table in. Passed as a number.
- filterColor:
- Optional: limits the display to only certain colours that contain this word.
- Example
-- display as four columns:
showColors(4)
-- show only red colours:
showColors("red")
The output for this is: