SpectrumColor enum

One of the pre-defined color values used by the ZX Spectrum.

Inheritance

Constructors

SpectrumColor()
const
SpectrumColor.fromByteValue(int value)
Takes a single byte value and returns the color represented by it.
factory

Values

black → const SpectrumColor
blue → const SpectrumColor
red → const SpectrumColor
magenta → const SpectrumColor
green → const SpectrumColor
cyan → const SpectrumColor
yellow → const SpectrumColor
gray → const SpectrumColor
brightBlack → const SpectrumColor
brightBlue → const SpectrumColor
brightRed → const SpectrumColor
brightMagenta → const SpectrumColor
brightGreen → const SpectrumColor
brightCyan → const SpectrumColor
brightYellow → const SpectrumColor
white → const SpectrumColor

Properties

blueChannel int
The blue channel of this color as an 8-bit value.
no setter
greenChannel int
The green channel of this color as an 8-bit value.
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
redChannel int
The red channel of this color as an 8-bit value.
no setter
rgbColor int
Returns the RGB color represented by the underlying ZX Spectrum color.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<SpectrumColor>
A constant List of the values in this enum, in order of their declaration.