1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 03:57:35 +00:00

LibGfx: Add Color::Transparent as a named color

This commit is contained in:
Andreas Kling 2020-06-13 20:03:19 +02:00
parent 2650005af8
commit 3bba163574
2 changed files with 6 additions and 0 deletions

View file

@ -40,6 +40,11 @@ namespace Gfx {
Color::Color(NamedColor named)
{
if (named == Transparent) {
m_value = 0;
return;
}
struct {
u8 r;
u8 g;