共用方式為


Color.WithHue(Double) Method

Definition

Returns a color with modified Hue, but keeping the same Saturation and Luminosity.

public Xamarin.Forms.Color WithHue (double hue);
member this.WithHue : double -> Xamarin.Forms.Color

Parameters

hue
System.Double

The modified Hue.

Returns

A color.

Remarks

The Hue is clamped to the inclusive range [0,1]. This method is useful for creating color palettes.

Applies to