.. index:: pair: class; EE::System::Color .. _doxid-class_e_e_1_1_system_1_1_color: class EE::System::Color ======================= .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class Color: public :ref:`EE::System::tColor` { public: // fields static const Color :target:`Transparent`; static const Color :target:`Black`; static const Color :target:`Silver`; static const Color :target:`Gray`; static const Color :target:`White`; static const Color :target:`Maroon`; static const Color :target:`Red`; static const Color :target:`Purple`; static const Color :target:`Fuchsia`; static const Color :target:`Green`; static const Color :target:`Lime`; static const Color :target:`Olive`; static const Color :target:`Yellow`; static const Color :target:`Navy`; static const Color :target:`Blue`; static const Color :target:`Teal`; static const Color :target:`Aqua`; static const Color :target:`aliceblue`; static const Color :target:`antiquewhite`; static const Color :target:`aqua`; static const Color :target:`aquamarine`; static const Color :target:`azure`; static const Color :target:`beige`; static const Color :target:`bisque`; static const Color :target:`black`; static const Color :target:`blanchedalmond`; static const Color :target:`blue`; static const Color :target:`blueviolet`; static const Color :target:`brown`; static const Color :target:`burlywood`; static const Color :target:`cadetblue`; static const Color :target:`chartreuse`; static const Color :target:`chocolate`; static const Color :target:`coral`; static const Color :target:`cornflowerblue`; static const Color :target:`cornsilk`; static const Color :target:`crimson`; static const Color :target:`cyan`; static const Color :target:`darkblue`; static const Color :target:`darkcyan`; static const Color :target:`darkgoldenrod`; static const Color :target:`darkgray`; static const Color :target:`darkgreen`; static const Color :target:`darkgrey`; static const Color :target:`darkkhaki`; static const Color :target:`darkmagenta`; static const Color :target:`darkolivegreen`; static const Color :target:`darkorange`; static const Color :target:`darkorchid`; static const Color :target:`darkred`; static const Color :target:`darksalmon`; static const Color :target:`darkseagreen`; static const Color :target:`darkslateblue`; static const Color :target:`darkslategray`; static const Color :target:`darkslategrey`; static const Color :target:`darkturquoise`; static const Color :target:`darkviolet`; static const Color :target:`deeppink`; static const Color :target:`deepskyblue`; static const Color :target:`dimgray`; static const Color :target:`dimgrey`; static const Color :target:`dodgerblue`; static const Color :target:`firebrick`; static const Color :target:`floralwhite`; static const Color :target:`forestgreen`; static const Color :target:`fuchsia`; static const Color :target:`gainsboro`; static const Color :target:`ghostwhite`; static const Color :target:`gold`; static const Color :target:`goldenrod`; static const Color :target:`gray`; static const Color :target:`green`; static const Color :target:`greenyellow`; static const Color :target:`grey`; static const Color :target:`honeydew`; static const Color :target:`hotpink`; static const Color :target:`indianred`; static const Color :target:`indigo`; static const Color :target:`ivory`; static const Color :target:`khaki`; static const Color :target:`lavender`; static const Color :target:`lavenderblush`; static const Color :target:`lawngreen`; static const Color :target:`lemonchiffon`; static const Color :target:`lightblue`; static const Color :target:`lightcoral`; static const Color :target:`lightcyan`; static const Color :target:`lightgoldenrodyellow`; static const Color :target:`lightgray`; static const Color :target:`lightgreen`; static const Color :target:`lightgrey`; static const Color :target:`lightpink`; static const Color :target:`lightsalmon`; static const Color :target:`lightseagreen`; static const Color :target:`lightskyblue`; static const Color :target:`lightslategray`; static const Color :target:`lightslategrey`; static const Color :target:`lightsteelblue`; static const Color :target:`lightyellow`; static const Color :target:`lime`; static const Color :target:`limegreen`; static const Color :target:`linen`; static const Color :target:`magenta`; static const Color :target:`maroon`; static const Color :target:`mediumaquamarine`; static const Color :target:`mediumblue`; static const Color :target:`mediumorchid`; static const Color :target:`mediumpurple`; static const Color :target:`mediumseagreen`; static const Color :target:`mediumslateblue`; static const Color :target:`mediumspringgreen`; static const Color :target:`mediumturquoise`; static const Color :target:`mediumvioletred`; static const Color :target:`midnightblue`; static const Color :target:`mintcream`; static const Color :target:`mistyrose`; static const Color :target:`moccasin`; static const Color :target:`navajowhite`; static const Color :target:`navy`; static const Color :target:`oldlace`; static const Color :target:`olive`; static const Color :target:`olivedrab`; static const Color :target:`orange`; static const Color :target:`orangered`; static const Color :target:`orchid`; static const Color :target:`palegoldenrod`; static const Color :target:`palegreen`; static const Color :target:`paleturquoise`; static const Color :target:`palevioletred`; static const Color :target:`papayawhip`; static const Color :target:`peachpuff`; static const Color :target:`peru`; static const Color :target:`pink`; static const Color :target:`plum`; static const Color :target:`powderblue`; static const Color :target:`purple`; static const Color :target:`red`; static const Color :target:`rosybrown`; static const Color :target:`royalblue`; static const Color :target:`saddlebrown`; static const Color :target:`salmon`; static const Color :target:`sandybrown`; static const Color :target:`seagreen`; static const Color :target:`seashell`; static const Color :target:`sienna`; static const Color :target:`silver`; static const Color :target:`skyblue`; static const Color :target:`slateblue`; static const Color :target:`slategray`; static const Color :target:`slategrey`; static const Color :target:`snow`; static const Color :target:`springgreen`; static const Color :target:`steelblue`; static const Color :target:`tan`; static const Color :target:`teal`; static const Color :target:`thistle`; static const Color :target:`tomato`; static const Color :target:`turquoise`; static const Color :target:`violet`; static const Color :target:`wheat`; static const Color :target:`white`; static const Color :target:`whitesmoke`; static const Color :target:`yellow`; static const Color :target:`yellowgreen`; // construction :target:`Color`(); :target:`Color`(const Color& color); :target:`Color`(const std::string& colorString); :target:`Color`(:ref:`Uint8` r, :ref:`Uint8` g, :ref:`Uint8` b, :ref:`Uint8` a = 255); :target:`Color`(const :ref:`tRGB`<:ref:`Uint8`>& Col); :target:`Color`(const :ref:`tRGB`<:ref:`Uint8`>& Col, :ref:`Uint8` a); :target:`Color`(const :ref:`tColor`<:ref:`Uint8`>& Col, :ref:`Uint8` a); :target:`Color`(const :ref:`tColor`<:ref:`Uint8`>& Col); :target:`Color`(const :ref:`Uint32`& Col); // methods Color& :target:`operator=`(const Color& col); :ref:`Colorf` :target:`toHsv`() const; :ref:`Colorf` :target:`toHsl`() const; Color :target:`clone`() const; Color :target:`invert`() const; Color :target:`div`(int divisor, bool divAlpha = false); std::string :target:`toHexString`(const bool& prependHash = true) const; std::string :target:`toRgbaString`() const; std::string :target:`toRgbString`() const; Color& :target:`blendAlpha`(const :ref:`Uint8`& alpha); static Color :target:`fromHsv`(const :ref:`Colorf`& hsv); static Color :target:`fromHsl`(const :ref:`Colorf`& hsl); static :ref:`ColorAf` :ref:`blend`(:ref:`ColorAf` srcf, :ref:`ColorAf` dstf); static Color :ref:`blend`(Color src, Color dst); static Color :target:`fromPointer`(void* ptr); static Color :target:`fromString`(const char* str); static Color :target:`fromString`(std::string str); static bool :target:`isColorString`(std::string str); static void :target:`registerColor`(const std::string& name, const Color& color); static bool :target:`unregisterColor`(const std::string& name); static bool :target:`validHexColorString`(const std::string& hexColor); }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // fields :ref:`Uint32` :ref:`Value`; T :ref:`r`; T :ref:`g`; T :ref:`b`; T :ref:`a`; T :ref:`h`; T :ref:`s`; T :ref:`v`; struct EE::System::tColor::@4::@8 :ref:`hsv`; T :ref:`l`; struct EE::System::tColor::@4::@9 :ref:`hsl`; // methods :ref:`Uint32` :ref:`getValue`() const; void :ref:`assign`(T r, T g, T b, T a); void :ref:`assign`(const :ref:`tColor`& Col); bool :ref:`operator==`(const :ref:`tColor`& Col) const; bool :ref:`operator!=`(const :ref:`tColor`& Col) const; :ref:`tColor` :ref:`operator+`(const :ref:`tColor`& Col) const; :ref:`tColor` :ref:`operator-`(const :ref:`tColor`& Col) const; :ref:`tColor` :ref:`operator*`(const :ref:`tColor`& Col) const; :ref:`tRGB` :ref:`toRGB`(); .. _details-class_e_e_1_1_system_1_1_color: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; blend .. _doxid-class_e_e_1_1_system_1_1_color_1a0d7679f75d9e574681013a1a25052bb5: .. ref-code-block:: cpp :class: doxyrest-title-code-block static :ref:`ColorAf` blend(:ref:`ColorAf` srcf, :ref:`ColorAf` dstf) Blend a source color to destination color .. index:: pair: function; blend .. _doxid-class_e_e_1_1_system_1_1_color_1ad3142180da36551308ea49cef9266b59: .. ref-code-block:: cpp :class: doxyrest-title-code-block static Color blend(Color src, Color dst) Blend a source color to destination color