setRGB method

void setRGB(
  1. int r,
  2. int g,
  3. int b
)

Implementation

void setRGB(int r, int g, int b) {
  x = r;
  y = g;
  z = b;
}