This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public static class Colors | |
{ | |
public static Color ColorFromHSV(float h, float s, float v, float a = 1) | |
{ | |
// no saturation, we can return the value across the board (grayscale) | |
if (s == 0) |