Skip to main content

HsvLerp

A class in Root.Township, the global namespace.

Editor helper that fills an array with colours blended in HSV space between two colours.

Constructors​

MemberWhat it is
HsvLerp()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

4 private and internal fields
MemberWhat it is
private Color endLast colour of the blend.
private bool isReversedIf true, blends hue the long way round the wheel.
private Color[] resultsOutput colours; set its length to choose how many.
private Color startFirst colour of the blend.

Methods​

1 private and internal method
MemberWhat it is
private void OnValidate()Fills results with colours from start to end, going round the hue wheel the short or long way.