Struct RGBPixel
All code is using RGB pixel, provide some struct for it
struct RGBPixel
;
Methods
Name | Description |
---|---|
opBinary
(other)
|
Addition of two RGBPixels |
opBinary
(other)
|
Subtraction of two RGBPixels |
opBinary
(scalar)
|
Multiplication by a scalar |
opBinary
(scalar)
|
Division by a scalar |
opOpAssign
(other)
|
Addition with assignment |
opOpAssign
(other)
|
Subtraction with assignment |
opOpAssign
(scalar)
|
Scalar multiplication with assignment |
opOpAssign
(scalar)
|
Scalar division with assignment |
opUnary
()
|
Negation (inverts the colors) |