瀏覽代碼

LibDraw: Add named colors "MidCyan" and "DarkCyan"

I need these for .. a thing. :^)
Andreas Kling 5 年之前
父節點
當前提交
5f7f97355e
共有 2 個文件被更改,包括 8 次插入0 次删除
  1. 6 0
      Libraries/LibDraw/Color.cpp
  2. 2 0
      Libraries/LibDraw/Color.h

+ 6 - 0
Libraries/LibDraw/Color.cpp

@@ -27,6 +27,12 @@ Color::Color(NamedColor named)
     case Cyan:
         rgb = { 0, 255, 255 };
         break;
+    case DarkCyan:
+        rgb = { 0, 127, 127 };
+        break;
+    case MidCyan:
+        rgb = { 0, 192, 192 };
+        break;
     case Blue:
         rgb = { 0, 0, 255 };
         break;

+ 2 - 0
Libraries/LibDraw/Color.h

@@ -26,9 +26,11 @@ public:
         MidGray,
         LightGray,
         WarmGray,
+        DarkCyan,
         DarkGreen,
         DarkBlue,
         DarkRed,
+        MidCyan,
         MidGreen,
         MidRed,
         MidBlue,