42 lines
633 B
C++
42 lines
633 B
C++
#include "NeoPacket.h"
|
|
|
|
namespace NeoPacket
|
|
{
|
|
|
|
GreenPixel& GreenPixel::operator=(GreenPixel& other)
|
|
{
|
|
this->value = other.value;
|
|
return *this;
|
|
}
|
|
|
|
GreenPixel& GreenPixel::operator=(uint8_t val)
|
|
{
|
|
this->value = val;
|
|
return *this;
|
|
}
|
|
|
|
RedPixel& RedPixel::operator=(RedPixel& other)
|
|
{
|
|
this->value = other.value;
|
|
return *this;
|
|
}
|
|
|
|
RedPixel& RedPixel::operator=(uint8_t val)
|
|
{
|
|
this->value = val;
|
|
return *this;
|
|
}
|
|
|
|
BluePixel& BluePixel::operator=(BluePixel& other)
|
|
{
|
|
this->value = other.value;
|
|
return *this;
|
|
}
|
|
|
|
BluePixel& BluePixel::operator=(uint8_t val)
|
|
{
|
|
this->value = val;
|
|
return *this;
|
|
}
|
|
|
|
} |