20 Colour(
float _red,
float _green,
float _blue,
float _alpha = 1);
21 explicit Colour(std::string_view _value);
23 bool operator==(Colour
const& _value)
const;
24 bool operator!=(Colour
const& _value)
const;
26 void set(
float _red,
float _green,
float _blue,
float _alpha = 1);
30 std::string print()
const;
32 static Colour parse(std::string_view _value);
34 friend std::ostream& operator<<(std::ostream& _stream,
const Colour& _value)
36 return operatorShiftLeft(_stream, _value);
39 friend std::istream& operator>>(std::istream& _stream, Colour& _value)
41 return operatorShiftRight(_stream, _value);
44 static std::ostream& operatorShiftLeft(std::ostream& _stream,
const Colour& _value);
45 static std::istream& operatorShiftRight(std::istream& _stream, Colour& _value);
53 static const Colour Zero;
54 static const Colour Black;
55 static const Colour White;
56 static const Colour Red;
57 static const Colour Green;
58 static const Colour Blue;