RGBColor.opBinary

Basic arithmetic for color operations. The value on the right can be a value of any numeric type.

Typical usage:

    // Red color
    RGBColor color = new RGBColor(255, 0, 0);
       	
	// Add two for all channels in color
	auto newColor = color + 2;	
	// Divide all channels by two					
	color = color / 2;
  1. RGBColor opBinary(T rhs)
    class RGBColor
    opBinary
    (
    string op
    T
    )
    (
    auto ref T rhs
    )
  2. RGBColor opBinary(RGBColor rhs)

Meta