20 Colour(
float _red,
float _green,
float _blue,
float _alpha = 1);
21 explicit Colour(std::string_view _value);
26 void set(
float _red,
float _green,
float _blue,
float _alpha = 1);
30 std::string
print()
const;
44 static std::ostream& operatorShiftLeft(std::ostream& _stream,
const Colour& _value);
45 static std::istream& operatorShiftRight(std::istream& _stream,
Colour& _value);
static Colour parse(std::string_view _value)
bool operator!=(Colour const &_value) const
std::string print() const
friend std::ostream & operator<<(std::ostream &_stream, const Colour &_value)
static const Colour Green
static std::istream & operatorShiftRight(std::istream &_stream, Colour &_value)
void set(float _red, float _green, float _blue, float _alpha=1)
static const Colour White
static std::ostream & operatorShiftLeft(std::ostream &_stream, const Colour &_value)
bool operator==(Colour const &_value) const
friend std::istream & operator>>(std::istream &_stream, Colour &_value)
static const Colour Black