|
| | Color () |
| | Black. More...
|
| |
| | Color (::Vector3 hsv) |
| | Returns a Color from HSV values. More...
|
| |
| | Color (::Vector4 normalized) |
| | Returns Color from normalized values [0..1]. More...
|
| |
| | Color (const ::Color &color) |
| |
| | Color (unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha=255) |
| |
| | Color (unsigned int hexValue) |
| | Get Color structure from hexadecimal value. More...
|
| |
| | Color (void *srcPtr, int format) |
| |
| Color | Alpha (float alpha) const |
| | Returns color with alpha applied, alpha goes from 0.0f to 1.0f. More...
|
| |
| Color | AlphaBlend (::Color dst, ::Color tint) const |
| | Returns src alpha-blended into dst color with tint. More...
|
| |
| Color | Brightness (float factor) |
| | Get color with brightness correction, brightness factor goes from -1.0f to 1.0f. More...
|
| |
| Color & | ClearBackground () |
| | Set background color (framebuffer clear color) More...
|
| |
| Color | Contrast (float contrast) |
| | Get color with contrast correction, contrast values between -1.0f and 1.0f. More...
|
| |
| void | DrawLine (::Vector2 startPos, ::Vector2 endPos) const |
| | Draw a line using Vector points. More...
|
| |
| void | DrawLine (::Vector2 startPos, ::Vector2 endPos, float thick) const |
| | Draw a line using Vector points, with a given thickness. More...
|
| |
| void | DrawLine (int startPosX, int startPosY, int endPosX, int endPosY) const |
| | Draw a line. More...
|
| |
| void | DrawLineBezier (::Vector2 startPos, ::Vector2 endPos, float thick=1.0f) const |
| |
| void | DrawLineStrip (::Vector2 *points, int numPoints) const |
| |
| void | DrawPixel (::Vector2 pos) const |
| | Draw a pixel. More...
|
| |
| void | DrawPixel (int x, int y) const |
| |
| void | DrawRectangle (::Rectangle rec) const |
| |
| void | DrawRectangle (::Rectangle rec, ::Vector2 origin, Degree rotation) const |
| |
| void | DrawRectangle (::Vector2 position, ::Vector2 size) const |
| |
| void | DrawRectangle (int posX, int posY, int width, int height) const |
| |
| void | DrawRectangleLines (::Rectangle rec, float lineThick) const |
| |
| void | DrawRectangleLines (int posX, int posY, int width, int height) const |
| |
| void | DrawText (const ::Font &font, const char *text, ::Vector2 position, ::Vector2 origin, Degree rotation, float fontSize, float spacing) const |
| |
| void | DrawText (const ::Font &font, const char *text, ::Vector2 position, float fontSize, float spacing) const |
| |
| void | DrawText (const ::Font &font, const std::string_view text, ::Vector2 position, ::Vector2 origin, Degree rotation, float fontSize, float spacing) const |
| |
| void | DrawText (const ::Font &font, const std::string_view text, ::Vector2 position, float fontSize, float spacing) const |
| |
| void | DrawText (const char *text, int posX=0, int posY=0, int fontSize=10.0f) const |
| |
| void | DrawText (const std::string_view text, int posX=0, int posY=0, int fontSize=10.0f) const |
| |
| Color | Fade (float alpha) const |
| | Returns color with alpha applied, alpha goes from 0.0f to 1.0f. More...
|
| |
| unsigned char | GetA () const |
| | Retrieves the a value for the object. More...
|
| |
| unsigned char | GetB () const |
| | Retrieves the b value for the object. More...
|
| |
| unsigned char | GetG () const |
| | Retrieves the g value for the object. More...
|
| |
| unsigned char | GetR () const |
| | Retrieves the r value for the object. More...
|
| |
| bool | IsEqual (::Color color) |
| |
| Color | Lerp (::Color color2, float factor) |
| |
| Vector4 | Normalize () const |
| | Returns Color normalized as float [0..1]. More...
|
| |
| | operator int () const |
| | Returns hexadecimal value for a Color. More...
|
| |
| | operator std::string () const |
| |
| bool | operator!= (const ::Color &other) const |
| |
| Color & | operator= (const ::Color &color) |
| |
| bool | operator== (const ::Color &other) const |
| |
| void | SetA (unsigned char value) |
| | Sets the a value for the object. More...
|
| |
| void | SetB (unsigned char value) |
| | Sets the b value for the object. More...
|
| |
| void | SetG (unsigned char value) |
| | Sets the g value for the object. More...
|
| |
| void | SetR (unsigned char value) |
| | Sets the r value for the object. More...
|
| |
| Color | Tint (::Color tint) |
| | Get color multiplied with another color. More...
|
| |
| Vector3 | ToHSV () const |
| | Returns HSV values for a Color. More...
|
| |
| int | ToInt () const |
| | Returns hexadecimal value for a Color. More...
|
| |
| std::string | ToString () const |
| |
Color type, RGBA (32bit)
Definition at line 16 of file Color.hpp.