Skip to content

GradientExtensions

Namespace: SideXP.Core

public static class GradientExtensions

Extension functions for Gradient instances.

Methods

Clone(Gradient)

public static Gradient Clone(Gradient gradient)

Clones this gradient.

Parameters

  • gradient: The gradient to clone.

Returns

Returns the gradient's clone.

Reverse(Gradient)

public static Gradient Reverse(Gradient gradient)

Reverses the Gradient color and alpha keys.

Parameters

  • gradient: The original gradient you want to reverse.

Returns

Returns a new Gradient instance with the reversed keys of the input Gradient.