ConvertToRGB() public méthode

Konvertier HSL zu RGB Farb-System Die math. Formeln sind vom Internet
public ConvertToRGB ( double hue, double sat, double bri, int &r, int &g, int &b ) : void
hue double Grad-Parameter in der HSL-Farb-Skala. 0-0.9999
sat double Stättigungswert 0-255
bri double Helligkeit 0-255
r int Out Variable für Rot-Wert
g int Out Variable für Grün-Wert
b int Out Variable für Blau-Wert
Résultat void
 public void ConvertToRGBTestGreen()
 {
     HSVRGB target = new HSVRGB();
     int r, g, b;
     target.ConvertToRGB(120.0, 1.0, 0.250, out r, out g, out b);
     Assert.AreEqual(0, r);
     Assert.AreEqual(127, g);
     Assert.AreEqual(0, b);
 }
 public void ConvertToRGBTestRed()
 {
     HSVRGB target = new HSVRGB();
     int r, g, b;
     target.ConvertToRGB(0.0, 1.0, 0.5, out r, out g, out b);
     Assert.AreEqual(255, r);
     Assert.AreEqual(0, g);
     Assert.AreEqual(0, b);
 }
 public void ConvertToRGBTestBlack()
 {
     HSVRGB target = new HSVRGB();
     int r, g, b;
     target.ConvertToRGB(180.0, 0.0, 0.0, out r, out g, out b);
     Assert.AreEqual(0, r);
     Assert.AreEqual(0, g);
     Assert.AreEqual(0, b);
 }
 public void ConvertToRGBTestWhite()
 {
     HSVRGB target = new HSVRGB();
     int r, g, b;
     target.ConvertToRGB(180.0, 0.0, 1.0, out r, out g, out b);
     Assert.AreEqual(255, r);
     Assert.AreEqual(255, g);
     Assert.AreEqual(255, b);
 }