Share via


ColorExtensions.WithHue(Color, Single) Method

Definition

Creates a new color based on this color, but with a new hue (0-360).

public static System.Drawing.Color WithHue (this System.Drawing.Color color, float hue);

Parameters

color
System.Drawing.Color

The color to use as a base.

hue
System.Single

The hue to set 0-360.

Returns

System.Drawing.Color

The new color.

Applies to