Color.from256 constructor
const
Color.from256(
- int index
Creates a color from an 8-bit index in the 256-color palette.
The index should be in the range 0-255.
See Color8 for a more detailed representation of 8-bit colors.
Implementation
const factory Color.from256(int index) = Color8.fromIndex;