Skip to content

Modern Tui TuiIndexed

Paul Squires edited this page Oct 19, 2026 · 6 revisions

Home › Terminal TUI Library › Colour and Style › TuiIndexed

TuiIndexed

Returns a colour from the 256-colour palette by its number.

Syntax

TuiIndexed( byval idx as uint8 ) as TuiColor

Description

A colour from the 256-entry palette: 0-15 the classic set, 16-231 a 6x6x6 cube, 232-255 a grey ramp.

Example

#import "std/tui"
using tui

dim as TuiColor orange = TuiIndexed( 214 )
dim as TuiColor grey   = TuiIndexed( 244 )
print orange.Index( ), grey.Index( )         '' 214 244

See also

TuiColor TuiColor.Equals TuiDefaultColor TuiRgb TuiRed TuiYellow
TuiColor.IsDefault TuiColor.Index TuiAnsi TuiBlack TuiGreen TuiBlue

Library: Terminal TUI Library
Category: Terminal TUI Library
Documented under: Colour and Style
Working examples: hello.tiko · form.tiko · dashboard.tiko


Home · Keyword Index

Clone this wiki locally