コード例 #1
0
        public Color Get(int _index, float _strength_H = 1f, float _strength_S = 1f, float _strength_V = 1f)
        {
            float h, s, v;

            Color.RGBToHSV(Get(_index), out h, out s, out v);
            return(COL.HSV(h * _strength_H, s * _strength_S, v * _strength_V));
        }
コード例 #2
0
 public Color RandomColour(float _alpha)
 {
     return(COL.Set_alphaStrength(colours[Mathf.FloorToInt(Random.Range(0, totalColours))], _alpha));
 }
コード例 #3
0
 public Color Get(int _index, float _alpha)
 {
     return(COL.Set_alphaStrength(colours[_index], _alpha));
 }