ColorUtilities Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |