Color3i.fromRGBd constructor

Color3i.fromRGBd(
  1. double r,
  2. double g,
  3. double b
)

Implementation

Color3i.fromRGBd(double r, double g, double b)
    : x = (r * 255).floor().toInt(),
      y = (g * 255).floor().toInt(),
      z = (b * 255).floor().toInt();