ColorVector:operator+(col2)

Version added: before 9.5

Adds two colors and returns the result as a new color

ArgumentTypeDescriptionDefaultVer
col2ColorVectorA color to add to the first one< 9.5

Return type (ColorVector): the sum of two colors

Adds two colors and returns the result as a new color. This operator makes it possible to add two colors as if they were regular numbers. Example: c = a + b.