Color constructor

const Color(
  1. int r,
  2. int g,
  3. int b
)

Creates an opaque color from red, green, and blue components.

Implementation

const Color(int r, int g, int b)
  : argb = (255 << 24) | ((r & 0xFF) << 16) | ((g & 0xFF) << 8) | (b & 0xFF);