Language
Edit

ColorUtilities Class

Definition

Utilities for manipulating and interpolating between colors and gradients.

public static class ColorUtilities
type ColorUtilities = class
Public Class ColorUtilities
Inheritance
ColorUtilities

Methods

Name Description
GradientCompress(Gradient, Single, Single)

Compresses the gradient to the interval (p1, p2). The colors at the start and end of the result are the same as the gradient a.

GradientLerp(Gradient, Gradient, Single)

Linearly interpolates between gradients a and b by t

GradientLerpNoAlpha(Gradient, Gradient, Single)

Linearly interpolate between two gradients, without interpolating alpha.

GradientLerpNoColor(Gradient, Gradient, Single)

Linearly interpolate between two gradients using only the alpha channel.

Applies to