swap_color static method

Color swap_color(
  1. Color c
)

Implementation

static Color swap_color(Color c) {
  return c == WHITE ? BLACK : WHITE;
}