예제 #1
0
            public int GetColor(float position, float size, bool invert = false)
            {
                GetTweenColorsByStops(ref position, ref size, out int c1, out int c2);

                if (invert)
                    return Colours.Blend(c2, c1, position, size);
                return Colours.Blend(c1, c2, position, size);
            }
예제 #2
0
파일: RGBA.cs 프로젝트: MananAdhvaryu/GWS
 public RGBA Blend(IRGBA c2, float e0 = 0)
 {
     return(Colours.Blend(this, c2.Value, e0));
 }