Color8.fromIndex constructor

  1. @literal
const Color8.fromIndex(
  1. int value
)

Creates a Color8 with the bottom 8-bits of the provided int value.

Implementation

@literal
const Color8.fromIndex(int value) : index = value & 0xFF;