共用方式為


Color.WithLuminosity(Double) Method

Definition

Returns a color with modified Luminosity.

public Xamarin.Forms.Color WithLuminosity (double luminosity);
member this.WithLuminosity : double -> Xamarin.Forms.Color

Parameters

luminosity
System.Double

The modified luminosity.

Returns

A new HSL color.

Remarks

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

Applies to