SDL Utility
Color.cpp File Reference
#include "structures/Color.hpp"
#include <math.h>
#include <cmath>

Functions

Color operator+ (const Color &left, const Color &right)
 
Color operator- (const Color &left, const Color &right)
 
Color operator* (const Color &left, const Color &right)
 
Color operator/ (const Color &left, const Color &right)
 
Color & operator+= (Color &left, const Color &right)
 
Color & operator-= (Color &left, const Color &right)
 
Color & operator*= (Color &left, const Color &right)
 
Color & operator/= (Color &left, const Color &right)
 
bool operator== (const Color &left, const Color &right)
 
bool operator!= (const Color &left, const Color &right)
 

Function Documentation

◆ operator!=()

bool operator!= ( const Color &  left,
const Color &  right 
)

◆ operator*()

Color operator* ( const Color &  left,
const Color &  right 
)

◆ operator*=()

Color& operator*= ( Color &  left,
const Color &  right 
)

◆ operator+()

Color operator+ ( const Color &  left,
const Color &  right 
)

◆ operator+=()

Color& operator+= ( Color &  left,
const Color &  right 
)

◆ operator-()

Color operator- ( const Color &  left,
const Color &  right 
)

◆ operator-=()

Color& operator-= ( Color &  left,
const Color &  right 
)

◆ operator/()

Color operator/ ( const Color &  left,
const Color &  right 
)

◆ operator/=()

Color& operator/= ( Color &  left,
const Color &  right 
)

◆ operator==()

bool operator== ( const Color &  left,
const Color &  right 
)