Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ MinMaxRgb()

static void System.Drawing.Color.MinMaxRgb ( out int min,
out int max,
int r,
int g,
int b )
inlinestaticprivate

Definition at line 470 of file Color.cs.

471 {
472 if (r > g)
473 {
474 max = r;
475 min = g;
476 }
477 else
478 {
479 max = g;
480 min = r;
481 }
482 if (b > max)
483 {
484 max = b;
485 }
486 else if (b < min)
487 {
488 min = b;
489 }
490 }

Referenced by System.Drawing.Color.GetBrightness(), System.Drawing.Color.GetHue(), and System.Drawing.Color.GetSaturation().