toyGraphics / com.anysolo.toyGraphics / Pal16

Pal16

object Pal16

16 colors palette from old computers.

This is the easiest way to work with colors. You can address these colors by index: Pal16[0] to Pal16[15], or you can address them by names like: Pal16.green`

Properties

all

val all: Array<Color>

An array containg all 16 color objects.

black

val black: Color

blue

val blue: Color

brightBlue

val brightBlue: Color

brightCyan

val brightCyan: Color

brightGreen

val brightGreen: Color

brightMagenta

val brightMagenta: Color

brightRed

val brightRed: Color

brightYellow

val brightYellow: Color

brown

val brown: Color

cyan

val cyan: Color

darkGray

val darkGray: Color

green

val green: Color

lightGray

val lightGray: Color

magenta

val magenta: Color

red

val red: Color

size

val size: Int

white

val white: Color

Functions

get

operator fun get(index: Int): Color