mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 02:03:06 -05:00
28 lines
397 B
C++
28 lines
397 B
C++
#pragma once
|
|
|
|
#include <AK/Types.h>
|
|
|
|
typedef dword RGBA32;
|
|
|
|
class Color {
|
|
public:
|
|
enum NamedColor {
|
|
Black,
|
|
White,
|
|
Red,
|
|
Green,
|
|
Blue,
|
|
DarkGray,
|
|
MidGray,
|
|
LightGray,
|
|
};
|
|
|
|
Color() { }
|
|
Color(NamedColor);
|
|
Color(byte r, byte g, byte b);
|
|
|
|
RGBA32 value() const { return m_value; }
|
|
|
|
private:
|
|
RGBA32 m_value { 0 };
|
|
};
|