operator [] method

Color operator [](
  1. int step
)

Implementation

Color operator [](int step) => switch (step) {
      100 => c100,
      500 => c500,
      700 => c700,
      _ => c500,
    };