rgb2hex static method

String rgb2hex(
  1. int r,
  2. int g,
  3. int b
)

Converts RGB values to a hex string.

Returns a string representing the hex value. ffffffff

Implementation

static String rgb2hex(int r, int g, int b) {
  final int integer = rgb2int(r, g, b);
  return int2hex(integer);
}