operator [] method

P operator [](
  1. int index
)

Returns the color in the palette at the given index.

Implementation

P operator [](int index) => _lookupByIndex(index);