ColorRange
Struct in Zigurous.Architecture
Implements INumberRange<T>, IRange<T>
Declaration
[Serializable]
public struct ColorRange : INumberRange<Color>, IRange<Color>Description
A range of Color values.
Static Properties
| black | Shorthand for writing ColorRange(Color.black, Color.black). |
| white | Shorthand for writing ColorRange(Color.white, Color.white). |
| blackToWhite | Shorthand for writing ColorRange(Color.black, Color.white). |
| whiteToBlack | Shorthand for writing ColorRange(Color.white, Color.black). |
| fadeIn | Shorthand for writing ColorRange(Color(0,0,0,0), Color(0,0,0,1)). |
| fadeOut | Shorthand for writing ColorRange(Color(0,0,0,1), Color(0,0,0,0)). |
| transparent | Shorthand for writing ColorRange(Color(0,0,0,0), Color(0,0,0,0)). |
Properties
| min | The lower bound of the range. |
| max | The upper bound of the range. |
| Delta | The difference between the maximum and minimum values (Read only). |
| Median | The median value of the range (Read only). |
Constructors
| ColorRange | Creates a new range with the specified values. |
Methods
| Random | Returns a random value in the range. |
| Includes | Checks if a value is in the range. |
| Clamp | Clamps a value to the range. |
| Lerp | Linearly interpolates between the range by t. |
| InverseLerp | Calculates the linear parameter t that produces the interpolant value within the range. |