red method

int red(
  1. int color
)

Implementation

int red(int color) => colors[color * 3];