operator [] method

int operator [] (
  1. int index
)

Implementation

int operator [](int index) => colors[index];