예제 #1
0
        public static ColorBoundless operator /(ColorBoundless c1, float divider)
        {
            ColorBoundless color = new ColorBoundless((int)(c1.R / divider), (int)(c1.G / divider), (int)(c1.B / divider));

            return(color);
        }
예제 #2
0
        public static ColorBoundless operator +(ColorBoundless c1, Color c2)
        {
            ColorBoundless color = new ColorBoundless(c1.R + c2.R, c1.G + c2.G, c1.B + c2.B);

            return(color);
        }