Dualie
Loading...
Searching...
No Matches
dl::Color Class Reference

A class used to describe a RGBA color. More...

#include <Color.hpp>

Collaboration diagram for dl::Color:

Public Member Functions

 Color (std::uint8_t red, std::uint8_t green, std::uint8_t blue, std::uint8_t alpha=255)
 
 Color (std::uint32_t color)
 
const u32 & getColorValue () const
 Color values are stored as a 32 bit integer in the format ABGR, with A being shifted 24 bits, B 16 bits, and so on.
 

Static Public Attributes

static Color Black
 Black predefined color.
 
static Color White
 White predefined color.
 
static Color Red
 Red predefined color.
 
static Color Green
 Green predefined color.
 
static Color Blue
 Blue predefined color.
 
static Color Yellow
 Yellow predefined color.
 
static Color Magenta
 Magenta predefined color.
 
static Color Cyan
 Cyan predefined color.
 
static Color Transparent
 Transparent (black) predefined color.
 

Detailed Description

A class used to describe a RGBA color.

Member Function Documentation

◆ getColorValue()

const u32 & dl::Color::getColorValue ( ) const

Color values are stored as a 32 bit integer in the format ABGR, with A being shifted 24 bits, B 16 bits, and so on.

Returns
The color value as a 32 bit integer

The documentation for this class was generated from the following files: