SKShader.CreateColor(SKColor) Method

Definition

Creates a new shader that just draws the specified color.

public static SkiaSharp.SKShader CreateColor (SkiaSharp.SKColor color);

Parameters

color
SKColor

The color to paint.

Returns

Returns a new SKShader, or an empty shader on error. This function never returns null.

Applies to