redFromArgb static method

int redFromArgb(
  1. int argb
)

Returns the red component of a color in ARGB format.

Implementation

static int redFromArgb(int argb) {
  return argb >> 16 & 255;
}