Udostępnij za pośrednictwem


Color.WithSaturation(Double) Method

Definition

Returns a new color with modified Saturation.

public Xamarin.Forms.Color WithSaturation (double saturation);
member this.WithSaturation : double -> Xamarin.Forms.Color

Parameters

saturation
System.Double

The modified Saturation.

Returns

A new HSLcolor.

Remarks

The Saturation is clamped to [0,1]. This method is useful for creating color palettes.

Applies to