setFromRGBd method

void setFromRGBd(
  1. double r,
  2. double g,
  3. double b
)

Implementation

void setFromRGBd(double r, double g, double b) {
  x = (r * 255).floor().toInt();
  y = (g * 255).floor().toInt();
  z = (b * 255).floor().toInt();
}