A class in Root.Township, the global namespace.
Editor helper that fills an array with colours blended in HSV space between two colours.
Constructors
| Member | What it is |
|---|
HsvLerp() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
4 private and internal fields
| Member | What it is |
|---|
private Color end | Last colour of the blend. |
private bool isReversed | If true, blends hue the long way round the wheel. |
private Color[] results | Output colours; set its length to choose how many. |
private Color start | First colour of the blend. |
Methods
1 private and internal method
| Member | What it is |
|---|
private void OnValidate() | Fills results with colours from start to end, going round the hue wheel the short or long way. |