getRed function

int getRed (
  1. int color
)

Get the red channel from the color.

Implementation

int getRed(int color) => (color) & 0xff;