RGBColor.opBinary

Basic arithmetic for color operations. Only the RGBColor type can be used as the value on the right.

Typical usage:

    // Red color
    RGBColor color  = new RGBColor(255, 0, 0);
    // Blue color  	
	RGBColor color2 = new RGBColor(0, 0, 255); 		
	
	// mix two colors
	auto mix = color + color2;
	// difference between color
	auto diff = color - color2;
  1. RGBColor opBinary(T rhs)
  2. RGBColor opBinary(RGBColor rhs)
    class RGBColor
    opBinary
    (
    string op
    )

Meta