예제 #1
0
        public ColorValue GetClamp(ColorValue min, ColorValue max)
        {
            ColorValue r = this;

            r.Clamp(min, max);
            return(r);
        }
예제 #2
0
        public void Clamp(ColorValuePowered min, ColorValuePowered max)
        {
            Color.Clamp(min.Color, max.Color);

            if (Power < min.Power)
            {
                Power = min.Power;
            }
            else if (Power > max.Power)
            {
                Power = max.Power;
            }
        }