HSBColor

CS Version A: Jonathan Czeck (aarku)

JS Version B: Antony Stewart (ohh bertie)

Description
Version A provides a Hue/Saturation/Brightness/Alpha color model in addition to Unity's built in Red/Green/Blue/Alpha colors. It is useful for interpolating between colors in a more pleasing fashion.

Version B in .JS, Is the same probably, one difference is it has backwards and forwards conversion to and from HSV. i haven't compared them, the maths is different. I have tested it though and it converts fine, the algorithm is better in 32 bit depth CPU than in GPU by a visible amount. doesnt have a lerp fct.

Usage
Put this script in a file in /Plugins/HSBColor.cs so that it may be callable by JavaScript. Additionally, there is a helper class called Colorx that is useful to put in your Plugins folder. This provides a quick helper function to slerp between two Colors, which gives much more visually pleasing results than Color.Lerp. See Colorx for a simple importable Unity Package.