ASW Lib
A.D.S. Games SDL Wrapper Library. A library targeted at Allegro4 users who want to switch to SDL3 and use modern c++.
Loading...
Searching...
No Matches
color.h File Reference
#include <SDL3/SDL.h>
#include <string>
Include dependency graph for color.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  asw::Color
 RGBA color struct with 8-bit channels. More...
 

Namespaces

namespace  asw
 
namespace  asw::color
 Color constants.
 

Variables

const Color asw::color::black = Color::from_hex("#000000")
 
const Color asw::color::silver = Color::from_hex("#c0c0c0")
 
const Color asw::color::gray = Color::from_hex("#808080")
 
const Color asw::color::white = Color::from_hex("#ffffff")
 
const Color asw::color::maroon = Color::from_hex("#800000")
 
const Color asw::color::red = Color::from_hex("#ff0000")
 
const Color asw::color::purple = Color::from_hex("#800080")
 
const Color asw::color::fuchsia = Color::from_hex("#ff00ff")
 
const Color asw::color::green = Color::from_hex("#008000")
 
const Color asw::color::lime = Color::from_hex("#00ff00")
 
const Color asw::color::olive = Color::from_hex("#808000")
 
const Color asw::color::yellow = Color::from_hex("#ffff00")
 
const Color asw::color::navy = Color::from_hex("#000080")
 
const Color asw::color::blue = Color::from_hex("#0000ff")
 
const Color asw::color::teal = Color::from_hex("#008080")
 
const Color asw::color::aqua = Color::from_hex("#00ffff")
 
const Color asw::color::aliceblue = Color::from_hex("#f0f8ff")
 
const Color asw::color::antiquewhite = Color::from_hex("#faebd7")
 
const Color asw::color::aquamarine = Color::from_hex("#7fffd4")
 
const Color asw::color::azure = Color::from_hex("#f0ffff")
 
const Color asw::color::beige = Color::from_hex("#f5f5dc")
 
const Color asw::color::bisque = Color::from_hex("#ffe4c4")
 
const Color asw::color::blanchedalmond = Color::from_hex("#ffebcd")
 
const Color asw::color::blueviolet = Color::from_hex("#8a2be2")
 
const Color asw::color::brown = Color::from_hex("#a52a2a")
 
const Color asw::color::burlywood = Color::from_hex("#deb887")
 
const Color asw::color::cadetblue = Color::from_hex("#5f9ea0")
 
const Color asw::color::chartreuse = Color::from_hex("#7fff00")
 
const Color asw::color::chocolate = Color::from_hex("#d2691e")
 
const Color asw::color::coral = Color::from_hex("#ff7f50")
 
const Color asw::color::cornflowerblue = Color::from_hex("#6495ed")
 
const Color asw::color::cornsilk = Color::from_hex("#fff8dc")
 
const Color asw::color::crimson = Color::from_hex("#dc143c")
 
const Color asw::color::cyan = Color::from_hex("#00ffff")
 
const Color asw::color::darkblue = Color::from_hex("#00008b")
 
const Color asw::color::darkcyan = Color::from_hex("#008b8b")
 
const Color asw::color::darkgoldenrod = Color::from_hex("#b8860b")
 
const Color asw::color::darkgray = Color::from_hex("#a9a9a9")
 
const Color asw::color::darkgreen = Color::from_hex("#006400")
 
const Color asw::color::darkgrey = Color::from_hex("#a9a9a9")
 
const Color asw::color::darkkhaki = Color::from_hex("#bdb76b")
 
const Color asw::color::darkmagenta = Color::from_hex("#8b008b")
 
const Color asw::color::darkolivegreen = Color::from_hex("#556b2f")
 
const Color asw::color::darkorange = Color::from_hex("#ff8c00")
 
const Color asw::color::darkorchid = Color::from_hex("#9932cc")
 
const Color asw::color::darkred = Color::from_hex("#8b0000")
 
const Color asw::color::darksalmon = Color::from_hex("#e9967a")
 
const Color asw::color::darkseagreen = Color::from_hex("#8fbc8f")
 
const Color asw::color::darkslateblue = Color::from_hex("#483d8b")
 
const Color asw::color::darkslategray = Color::from_hex("#2f4f4f")
 
const Color asw::color::darkslategrey = Color::from_hex("#2f4f4f")
 
const Color asw::color::darkturquoise = Color::from_hex("#00ced1")
 
const Color asw::color::darkviolet = Color::from_hex("#9400d3")
 
const Color asw::color::deeppink = Color::from_hex("#ff1493")
 
const Color asw::color::deepskyblue = Color::from_hex("#00bfff")
 
const Color asw::color::dimgray = Color::from_hex("#696969")
 
const Color asw::color::dimgrey = Color::from_hex("#696969")
 
const Color asw::color::dodgerblue = Color::from_hex("#1e90ff")
 
const Color asw::color::firebrick = Color::from_hex("#b22222")
 
const Color asw::color::floralwhite = Color::from_hex("#fffaf0")
 
const Color asw::color::forestgreen = Color::from_hex("#228b22")
 
const Color asw::color::gainsboro = Color::from_hex("#dcdcdc")
 
const Color asw::color::ghostwhite = Color::from_hex("#f8f8ff")
 
const Color asw::color::gold = Color::from_hex("#ffd700")
 
const Color asw::color::goldenrod = Color::from_hex("#daa520")
 
const Color asw::color::greenyellow = Color::from_hex("#adff2f")
 
const Color asw::color::grey = Color::from_hex("#808080")
 
const Color asw::color::honeydew = Color::from_hex("#f0fff0")
 
const Color asw::color::hotpink = Color::from_hex("#ff69b4")
 
const Color asw::color::indianred = Color::from_hex("#cd5c5c")
 
const Color asw::color::indigo = Color::from_hex("#4b0082")
 
const Color asw::color::ivory = Color::from_hex("#fffff0")
 
const Color asw::color::khaki = Color::from_hex("#f0e68c")
 
const Color asw::color::lavender = Color::from_hex("#e6e6fa")
 
const Color asw::color::lavenderblush = Color::from_hex("#fff0f5")
 
const Color asw::color::lawngreen = Color::from_hex("#7cfc00")
 
const Color asw::color::lemonchiffon = Color::from_hex("#fffacd")
 
const Color asw::color::lightblue = Color::from_hex("#add8e6")
 
const Color asw::color::lightcoral = Color::from_hex("#f08080")
 
const Color asw::color::lightcyan = Color::from_hex("#e0ffff")
 
const Color asw::color::lightgoldenrodyellow = Color::from_hex("#fafad2")
 
const Color asw::color::lightgray = Color::from_hex("#d3d3d3")
 
const Color asw::color::lightgreen = Color::from_hex("#90ee90")
 
const Color asw::color::lightgrey = Color::from_hex("#d3d3d3")
 
const Color asw::color::lightpink = Color::from_hex("#ffb6c1")
 
const Color asw::color::lightsalmon = Color::from_hex("#ffa07a")
 
const Color asw::color::lightseagreen = Color::from_hex("#20b2aa")
 
const Color asw::color::lightskyblue = Color::from_hex("#87cefa")
 
const Color asw::color::lightslategray = Color::from_hex("#778899")
 
const Color asw::color::lightslategrey = Color::from_hex("#778899")
 
const Color asw::color::lightsteelblue = Color::from_hex("#b0c4de")
 
const Color asw::color::lightyellow = Color::from_hex("#ffffe0")
 
const Color asw::color::limegreen = Color::from_hex("#32cd32")
 
const Color asw::color::linen = Color::from_hex("#faf0e6")
 
const Color asw::color::magenta = Color::from_hex("#ff00ff")
 
const Color asw::color::mediumaquamarine = Color::from_hex("#66cdaa")
 
const Color asw::color::mediumblue = Color::from_hex("#0000cd")
 
const Color asw::color::mediumorchid = Color::from_hex("#ba55d3")
 
const Color asw::color::mediumpurple = Color::from_hex("#9370db")
 
const Color asw::color::mediumseagreen = Color::from_hex("#3cb371")
 
const Color asw::color::mediumslateblue = Color::from_hex("#7b68ee")
 
const Color asw::color::mediumspringgreen = Color::from_hex("#00fa9a")
 
const Color asw::color::mediumturquoise = Color::from_hex("#48d1cc")
 
const Color asw::color::mediumvioletred = Color::from_hex("#c71585")
 
const Color asw::color::midnightblue = Color::from_hex("#191970")
 
const Color asw::color::mintcream = Color::from_hex("#f5fffa")
 
const Color asw::color::mistyrose = Color::from_hex("#ffe4e1")
 
const Color asw::color::moccasin = Color::from_hex("#ffe4b5")
 
const Color asw::color::navajowhite = Color::from_hex("#ffdead")
 
const Color asw::color::oldlace = Color::from_hex("#fdf5e6")
 
const Color asw::color::olivedrab = Color::from_hex("#6b8e23")
 
const Color asw::color::orange = Color::from_hex("#ffa500")
 
const Color asw::color::orangered = Color::from_hex("#ff4500")
 
const Color asw::color::orchid = Color::from_hex("#da70d6")
 
const Color asw::color::palegoldenrod = Color::from_hex("#eee8aa")
 
const Color asw::color::palegreen = Color::from_hex("#98fb98")
 
const Color asw::color::paleturquoise = Color::from_hex("#afeeee")
 
const Color asw::color::palevioletred = Color::from_hex("#db7093")
 
const Color asw::color::papayawhip = Color::from_hex("#ffefd5")
 
const Color asw::color::peachpuff = Color::from_hex("#ffdab9")
 
const Color asw::color::peru = Color::from_hex("#cd853f")
 
const Color asw::color::pink = Color::from_hex("#ffc0cb")
 
const Color asw::color::plum = Color::from_hex("#dda0dd")
 
const Color asw::color::powderblue = Color::from_hex("#b0e0e6")
 
const Color asw::color::rebeccapurple = Color::from_hex("#663399")
 
const Color asw::color::rosybrown = Color::from_hex("#bc8f8f")
 
const Color asw::color::royalblue = Color::from_hex("#4169e1")
 
const Color asw::color::saddlebrown = Color::from_hex("#8b4513")
 
const Color asw::color::salmon = Color::from_hex("#fa8072")
 
const Color asw::color::sandybrown = Color::from_hex("#f4a460")
 
const Color asw::color::seagreen = Color::from_hex("#2e8b57")
 
const Color asw::color::seashell = Color::from_hex("#fff5ee")
 
const Color asw::color::sienna = Color::from_hex("#a0522d")
 
const Color asw::color::skyblue = Color::from_hex("#87ceeb")
 
const Color asw::color::slateblue = Color::from_hex("#6a5acd")
 
const Color asw::color::slategray = Color::from_hex("#708090")
 
const Color asw::color::slategrey = Color::from_hex("#708090")
 
const Color asw::color::snow = Color::from_hex("#fffafa")
 
const Color asw::color::springgreen = Color::from_hex("#00ff7f")
 
const Color asw::color::steelblue = Color::from_hex("#4682b4")
 
const Color asw::color::tan = Color::from_hex("#d2b48c")
 
const Color asw::color::thistle = Color::from_hex("#d8bfd8")
 
const Color asw::color::tomato = Color::from_hex("#ff6347")
 
const Color asw::color::turquoise = Color::from_hex("#40e0d0")
 
const Color asw::color::violet = Color::from_hex("#ee82ee")
 
const Color asw::color::wheat = Color::from_hex("#f5deb3")
 
const Color asw::color::whitesmoke = Color::from_hex("#f5f5f5")
 
const Color asw::color::yellowgreen = Color::from_hex("#9acd32")
 
const Color asw::color::transparent = Color::from_hex("#00000000")