static Color Min( Color& a, Color& b )

robot_2Generated
code_blocksInput

Description

The Color.Min method is a static method that returns a new Color instance representing the minimum color values between two given colors. It compares each component (red, green, blue, and alpha) of the two colors and selects the smallest value for each component to form the resulting color.

Usage

To use the Color.Min method, pass two Color references as parameters. The method will return a new Color object with the minimum component values from the two input colors.

Example

Color color1 = new Color(0.5f, 0.7f, 0.2f, 1.0f);
Color color2 = new Color(0.3f, 0.9f, 0.4f, 0.8f);
Color minColor = Color.Min(ref color1, ref color2);
// minColor will have the values (0.3f, 0.7f, 0.2f, 0.8f)