Click or drag to resize
CanvasLinearGradientBrushCreateRainbow Method
A convenience for producing a rainbow-colored gradient.

Namespace:  Microsoft.Graphics.Canvas.Brushes
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public static CanvasLinearGradientBrush CreateRainbow(
	ICanvasResourceCreator resourceCreator,
	float eldritchness
)

Parameters

resourceCreator
Type: Microsoft.Graphics.CanvasICanvasResourceCreator
eldritchness
Type: SystemSingle
Zero for a unicorny rainbow of gladness,
One for Seattle style depressing gray and sadness.
Since this value is a float,
you may use fractional values to denote,
sheens inbetween.

Return Value

Type: CanvasLinearGradientBrush
See Also