mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00:00
LibGfx: Add Color::Transparent as a named color
This commit is contained in:
parent
2650005af8
commit
3bba163574
Notes:
sideshowbarker
2024-07-19 05:39:51 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/3bba163574c
2 changed files with 6 additions and 0 deletions
|
@ -40,6 +40,11 @@ namespace Gfx {
|
|||
|
||||
Color::Color(NamedColor named)
|
||||
{
|
||||
if (named == Transparent) {
|
||||
m_value = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
struct {
|
||||
u8 r;
|
||||
u8 g;
|
||||
|
|
|
@ -49,6 +49,7 @@ struct HSV {
|
|||
class Color {
|
||||
public:
|
||||
enum NamedColor {
|
||||
Transparent,
|
||||
Black,
|
||||
White,
|
||||
Red,
|
||||
|
|
Loading…
Add table
Reference in a new issue