Merge pull request #64942 from paulloz/cs-fix-color-names
C#: Fix dictionary keys in Colors
This commit is contained in:
commit
488c501633
1 changed files with 91 additions and 91 deletions
|
@ -10,136 +10,136 @@ namespace Godot
|
|||
{
|
||||
// Color names and values are derived from core/math/color_names.inc
|
||||
internal static readonly Dictionary<string, Color> namedColors = new Dictionary<string, Color> {
|
||||
{ "ALICE_BLUE", new Color(0xF0F8FFFF) },
|
||||
{ "ANTIQUE_WHITE", new Color(0xFAEBD7FF) },
|
||||
{ "ALICEBLUE", new Color(0xF0F8FFFF) },
|
||||
{ "ANTIQUEWHITE", new Color(0xFAEBD7FF) },
|
||||
{ "AQUA", new Color(0x00FFFFFF) },
|
||||
{ "AQUAMARINE", new Color(0x7FFFD4FF) },
|
||||
{ "AZURE", new Color(0xF0FFFFFF) },
|
||||
{ "BEIGE", new Color(0xF5F5DCFF) },
|
||||
{ "BISQUE", new Color(0xFFE4C4FF) },
|
||||
{ "BLACK", new Color(0x000000FF) },
|
||||
{ "BLANCHED_ALMOND", new Color(0xFFEBCDFF) },
|
||||
{ "BLANCHEDALMOND", new Color(0xFFEBCDFF) },
|
||||
{ "BLUE", new Color(0x0000FFFF) },
|
||||
{ "BLUE_VIOLET", new Color(0x8A2BE2FF) },
|
||||
{ "BLUEVIOLET", new Color(0x8A2BE2FF) },
|
||||
{ "BROWN", new Color(0xA52A2AFF) },
|
||||
{ "BURLYWOOD", new Color(0xDEB887FF) },
|
||||
{ "CADET_BLUE", new Color(0x5F9EA0FF) },
|
||||
{ "CADETBLUE", new Color(0x5F9EA0FF) },
|
||||
{ "CHARTREUSE", new Color(0x7FFF00FF) },
|
||||
{ "CHOCOLATE", new Color(0xD2691EFF) },
|
||||
{ "CORAL", new Color(0xFF7F50FF) },
|
||||
{ "CORNFLOWER_BLUE", new Color(0x6495EDFF) },
|
||||
{ "CORNFLOWERBLUE", new Color(0x6495EDFF) },
|
||||
{ "CORNSILK", new Color(0xFFF8DCFF) },
|
||||
{ "CRIMSON", new Color(0xDC143CFF) },
|
||||
{ "CYAN", new Color(0x00FFFFFF) },
|
||||
{ "DARK_BLUE", new Color(0x00008BFF) },
|
||||
{ "DARK_CYAN", new Color(0x008B8BFF) },
|
||||
{ "DARK_GOLDENROD", new Color(0xB8860BFF) },
|
||||
{ "DARK_GRAY", new Color(0xA9A9A9FF) },
|
||||
{ "DARK_GREEN", new Color(0x006400FF) },
|
||||
{ "DARK_KHAKI", new Color(0xBDB76BFF) },
|
||||
{ "DARK_MAGENTA", new Color(0x8B008BFF) },
|
||||
{ "DARK_OLIVE_GREEN", new Color(0x556B2FFF) },
|
||||
{ "DARK_ORANGE", new Color(0xFF8C00FF) },
|
||||
{ "DARK_ORCHID", new Color(0x9932CCFF) },
|
||||
{ "DARK_RED", new Color(0x8B0000FF) },
|
||||
{ "DARK_SALMON", new Color(0xE9967AFF) },
|
||||
{ "DARK_SEA_GREEN", new Color(0x8FBC8FFF) },
|
||||
{ "DARK_SLATE_BLUE", new Color(0x483D8BFF) },
|
||||
{ "DARK_SLATE_GRAY", new Color(0x2F4F4FFF) },
|
||||
{ "DARK_TURQUOISE", new Color(0x00CED1FF) },
|
||||
{ "DARK_VIOLET", new Color(0x9400D3FF) },
|
||||
{ "DEEP_PINK", new Color(0xFF1493FF) },
|
||||
{ "DEEP_SKY_BLUE", new Color(0x00BFFFFF) },
|
||||
{ "DIM_GRAY", new Color(0x696969FF) },
|
||||
{ "DODGER_BLUE", new Color(0x1E90FFFF) },
|
||||
{ "DARKBLUE", new Color(0x00008BFF) },
|
||||
{ "DARKCYAN", new Color(0x008B8BFF) },
|
||||
{ "DARKGOLDENROD", new Color(0xB8860BFF) },
|
||||
{ "DARKGRAY", new Color(0xA9A9A9FF) },
|
||||
{ "DARKGREEN", new Color(0x006400FF) },
|
||||
{ "DARKKHAKI", new Color(0xBDB76BFF) },
|
||||
{ "DARKMAGENTA", new Color(0x8B008BFF) },
|
||||
{ "DARKOLIVEGREEN", new Color(0x556B2FFF) },
|
||||
{ "DARKORANGE", new Color(0xFF8C00FF) },
|
||||
{ "DARKORCHID", new Color(0x9932CCFF) },
|
||||
{ "DARKRED", new Color(0x8B0000FF) },
|
||||
{ "DARKSALMON", new Color(0xE9967AFF) },
|
||||
{ "DARKSEAGREEN", new Color(0x8FBC8FFF) },
|
||||
{ "DARKSLATEBLUE", new Color(0x483D8BFF) },
|
||||
{ "DARKSLATEGRAY", new Color(0x2F4F4FFF) },
|
||||
{ "DARKTURQUOISE", new Color(0x00CED1FF) },
|
||||
{ "DARKVIOLET", new Color(0x9400D3FF) },
|
||||
{ "DEEPPINK", new Color(0xFF1493FF) },
|
||||
{ "DEEPSKYBLUE", new Color(0x00BFFFFF) },
|
||||
{ "DIMGRAY", new Color(0x696969FF) },
|
||||
{ "DODGERBLUE", new Color(0x1E90FFFF) },
|
||||
{ "FIREBRICK", new Color(0xB22222FF) },
|
||||
{ "FLORAL_WHITE", new Color(0xFFFAF0FF) },
|
||||
{ "FOREST_GREEN", new Color(0x228B22FF) },
|
||||
{ "FLORALWHITE", new Color(0xFFFAF0FF) },
|
||||
{ "FORESTGREEN", new Color(0x228B22FF) },
|
||||
{ "FUCHSIA", new Color(0xFF00FFFF) },
|
||||
{ "GAINSBORO", new Color(0xDCDCDCFF) },
|
||||
{ "GHOST_WHITE", new Color(0xF8F8FFFF) },
|
||||
{ "GHOSTWHITE", new Color(0xF8F8FFFF) },
|
||||
{ "GOLD", new Color(0xFFD700FF) },
|
||||
{ "GOLDENROD", new Color(0xDAA520FF) },
|
||||
{ "GRAY", new Color(0xBEBEBEFF) },
|
||||
{ "GREEN", new Color(0x00FF00FF) },
|
||||
{ "GREEN_YELLOW", new Color(0xADFF2FFF) },
|
||||
{ "GREENYELLOW", new Color(0xADFF2FFF) },
|
||||
{ "HONEYDEW", new Color(0xF0FFF0FF) },
|
||||
{ "HOT_PINK", new Color(0xFF69B4FF) },
|
||||
{ "INDIAN_RED", new Color(0xCD5C5CFF) },
|
||||
{ "HOTPINK", new Color(0xFF69B4FF) },
|
||||
{ "INDIANRED", new Color(0xCD5C5CFF) },
|
||||
{ "INDIGO", new Color(0x4B0082FF) },
|
||||
{ "IVORY", new Color(0xFFFFF0FF) },
|
||||
{ "KHAKI", new Color(0xF0E68CFF) },
|
||||
{ "LAVENDER", new Color(0xE6E6FAFF) },
|
||||
{ "LAVENDER_BLUSH", new Color(0xFFF0F5FF) },
|
||||
{ "LAWN_GREEN", new Color(0x7CFC00FF) },
|
||||
{ "LEMON_CHIFFON", new Color(0xFFFACDFF) },
|
||||
{ "LIGHT_BLUE", new Color(0xADD8E6FF) },
|
||||
{ "LIGHT_CORAL", new Color(0xF08080FF) },
|
||||
{ "LIGHT_CYAN", new Color(0xE0FFFFFF) },
|
||||
{ "LIGHT_GOLDENROD", new Color(0xFAFAD2FF) },
|
||||
{ "LIGHT_GRAY", new Color(0xD3D3D3FF) },
|
||||
{ "LIGHT_GREEN", new Color(0x90EE90FF) },
|
||||
{ "LIGHT_PINK", new Color(0xFFB6C1FF) },
|
||||
{ "LIGHT_SALMON", new Color(0xFFA07AFF) },
|
||||
{ "LIGHT_SEA_GREEN", new Color(0x20B2AAFF) },
|
||||
{ "LIGHT_SKY_BLUE", new Color(0x87CEFAFF) },
|
||||
{ "LIGHT_SLATE_GRAY", new Color(0x778899FF) },
|
||||
{ "LIGHT_STEEL_BLUE", new Color(0xB0C4DEFF) },
|
||||
{ "LIGHT_YELLOW", new Color(0xFFFFE0FF) },
|
||||
{ "LAVENDERBLUSH", new Color(0xFFF0F5FF) },
|
||||
{ "LAWNGREEN", new Color(0x7CFC00FF) },
|
||||
{ "LEMONCHIFFON", new Color(0xFFFACDFF) },
|
||||
{ "LIGHTBLUE", new Color(0xADD8E6FF) },
|
||||
{ "LIGHTCORAL", new Color(0xF08080FF) },
|
||||
{ "LIGHTCYAN", new Color(0xE0FFFFFF) },
|
||||
{ "LIGHTGOLDENROD", new Color(0xFAFAD2FF) },
|
||||
{ "LIGHTGRAY", new Color(0xD3D3D3FF) },
|
||||
{ "LIGHTGREEN", new Color(0x90EE90FF) },
|
||||
{ "LIGHTPINK", new Color(0xFFB6C1FF) },
|
||||
{ "LIGHTSALMON", new Color(0xFFA07AFF) },
|
||||
{ "LIGHTSEAGREEN", new Color(0x20B2AAFF) },
|
||||
{ "LIGHTSKYBLUE", new Color(0x87CEFAFF) },
|
||||
{ "LIGHTSLATEGRAY", new Color(0x778899FF) },
|
||||
{ "LIGHTSTEELBLUE", new Color(0xB0C4DEFF) },
|
||||
{ "LIGHTYELLOW", new Color(0xFFFFE0FF) },
|
||||
{ "LIME", new Color(0x00FF00FF) },
|
||||
{ "LIME_GREEN", new Color(0x32CD32FF) },
|
||||
{ "LIMEGREEN", new Color(0x32CD32FF) },
|
||||
{ "LINEN", new Color(0xFAF0E6FF) },
|
||||
{ "MAGENTA", new Color(0xFF00FFFF) },
|
||||
{ "MAROON", new Color(0xB03060FF) },
|
||||
{ "MEDIUM_AQUAMARINE", new Color(0x66CDAAFF) },
|
||||
{ "MEDIUM_BLUE", new Color(0x0000CDFF) },
|
||||
{ "MEDIUM_ORCHID", new Color(0xBA55D3FF) },
|
||||
{ "MEDIUM_PURPLE", new Color(0x9370DBFF) },
|
||||
{ "MEDIUM_SEA_GREEN", new Color(0x3CB371FF) },
|
||||
{ "MEDIUM_SLATE_BLUE", new Color(0x7B68EEFF) },
|
||||
{ "MEDIUM_SPRING_GREEN", new Color(0x00FA9AFF) },
|
||||
{ "MEDIUM_TURQUOISE", new Color(0x48D1CCFF) },
|
||||
{ "MEDIUM_VIOLET_RED", new Color(0xC71585FF) },
|
||||
{ "MIDNIGHT_BLUE", new Color(0x191970FF) },
|
||||
{ "MINT_CREAM", new Color(0xF5FFFAFF) },
|
||||
{ "MISTY_ROSE", new Color(0xFFE4E1FF) },
|
||||
{ "MEDIUMAQUAMARINE", new Color(0x66CDAAFF) },
|
||||
{ "MEDIUMBLUE", new Color(0x0000CDFF) },
|
||||
{ "MEDIUMORCHID", new Color(0xBA55D3FF) },
|
||||
{ "MEDIUMPURPLE", new Color(0x9370DBFF) },
|
||||
{ "MEDIUMSEAGREEN", new Color(0x3CB371FF) },
|
||||
{ "MEDIUMSLATEBLUE", new Color(0x7B68EEFF) },
|
||||
{ "MEDIUMSPRINGGREEN", new Color(0x00FA9AFF) },
|
||||
{ "MEDIUMTURQUOISE", new Color(0x48D1CCFF) },
|
||||
{ "MEDIUMVIOLETRED", new Color(0xC71585FF) },
|
||||
{ "MIDNIGHTBLUE", new Color(0x191970FF) },
|
||||
{ "MINTCREAM", new Color(0xF5FFFAFF) },
|
||||
{ "MISTYROSE", new Color(0xFFE4E1FF) },
|
||||
{ "MOCCASIN", new Color(0xFFE4B5FF) },
|
||||
{ "NAVAJO_WHITE", new Color(0xFFDEADFF) },
|
||||
{ "NAVY_BLUE", new Color(0x000080FF) },
|
||||
{ "OLD_LACE", new Color(0xFDF5E6FF) },
|
||||
{ "NAVAJOWHITE", new Color(0xFFDEADFF) },
|
||||
{ "NAVYBLUE", new Color(0x000080FF) },
|
||||
{ "OLDLACE", new Color(0xFDF5E6FF) },
|
||||
{ "OLIVE", new Color(0x808000FF) },
|
||||
{ "OLIVE_DRAB", new Color(0x6B8E23FF) },
|
||||
{ "OLIVEDRAB", new Color(0x6B8E23FF) },
|
||||
{ "ORANGE", new Color(0xFFA500FF) },
|
||||
{ "ORANGE_RED", new Color(0xFF4500FF) },
|
||||
{ "ORANGERED", new Color(0xFF4500FF) },
|
||||
{ "ORCHID", new Color(0xDA70D6FF) },
|
||||
{ "PALE_GOLDENROD", new Color(0xEEE8AAFF) },
|
||||
{ "PALE_GREEN", new Color(0x98FB98FF) },
|
||||
{ "PALE_TURQUOISE", new Color(0xAFEEEEFF) },
|
||||
{ "PALE_VIOLET_RED", new Color(0xDB7093FF) },
|
||||
{ "PAPAYA_WHIP", new Color(0xFFEFD5FF) },
|
||||
{ "PEACH_PUFF", new Color(0xFFDAB9FF) },
|
||||
{ "PALEGOLDENROD", new Color(0xEEE8AAFF) },
|
||||
{ "PALEGREEN", new Color(0x98FB98FF) },
|
||||
{ "PALETURQUOISE", new Color(0xAFEEEEFF) },
|
||||
{ "PALEVIOLETRED", new Color(0xDB7093FF) },
|
||||
{ "PAPAYAWHIP", new Color(0xFFEFD5FF) },
|
||||
{ "PEACHPUFF", new Color(0xFFDAB9FF) },
|
||||
{ "PERU", new Color(0xCD853FFF) },
|
||||
{ "PINK", new Color(0xFFC0CBFF) },
|
||||
{ "PLUM", new Color(0xDDA0DDFF) },
|
||||
{ "POWDER_BLUE", new Color(0xB0E0E6FF) },
|
||||
{ "POWDERBLUE", new Color(0xB0E0E6FF) },
|
||||
{ "PURPLE", new Color(0xA020F0FF) },
|
||||
{ "REBECCA_PURPLE", new Color(0x663399FF) },
|
||||
{ "REBECCAPURPLE", new Color(0x663399FF) },
|
||||
{ "RED", new Color(0xFF0000FF) },
|
||||
{ "ROSY_BROWN", new Color(0xBC8F8FFF) },
|
||||
{ "ROYAL_BLUE", new Color(0x4169E1FF) },
|
||||
{ "SADDLE_BROWN", new Color(0x8B4513FF) },
|
||||
{ "ROSYBROWN", new Color(0xBC8F8FFF) },
|
||||
{ "ROYALBLUE", new Color(0x4169E1FF) },
|
||||
{ "SADDLEBROWN", new Color(0x8B4513FF) },
|
||||
{ "SALMON", new Color(0xFA8072FF) },
|
||||
{ "SANDY_BROWN", new Color(0xF4A460FF) },
|
||||
{ "SEA_GREEN", new Color(0x2E8B57FF) },
|
||||
{ "SANDYBROWN", new Color(0xF4A460FF) },
|
||||
{ "SEAGREEN", new Color(0x2E8B57FF) },
|
||||
{ "SEASHELL", new Color(0xFFF5EEFF) },
|
||||
{ "SIENNA", new Color(0xA0522DFF) },
|
||||
{ "SILVER", new Color(0xC0C0C0FF) },
|
||||
{ "SKY_BLUE", new Color(0x87CEEBFF) },
|
||||
{ "SLATE_BLUE", new Color(0x6A5ACDFF) },
|
||||
{ "SLATE_GRAY", new Color(0x708090FF) },
|
||||
{ "SKYBLUE", new Color(0x87CEEBFF) },
|
||||
{ "SLATEBLUE", new Color(0x6A5ACDFF) },
|
||||
{ "SLATEGRAY", new Color(0x708090FF) },
|
||||
{ "SNOW", new Color(0xFFFAFAFF) },
|
||||
{ "SPRING_GREEN", new Color(0x00FF7FFF) },
|
||||
{ "STEEL_BLUE", new Color(0x4682B4FF) },
|
||||
{ "SPRINGGREEN", new Color(0x00FF7FFF) },
|
||||
{ "STEELBLUE", new Color(0x4682B4FF) },
|
||||
{ "TAN", new Color(0xD2B48CFF) },
|
||||
{ "TEAL", new Color(0x008080FF) },
|
||||
{ "THISTLE", new Color(0xD8BFD8FF) },
|
||||
|
@ -147,15 +147,15 @@ namespace Godot
|
|||
{ "TRANSPARENT", new Color(0xFFFFFF00) },
|
||||
{ "TURQUOISE", new Color(0x40E0D0FF) },
|
||||
{ "VIOLET", new Color(0xEE82EEFF) },
|
||||
{ "WEB_GRAY", new Color(0x808080FF) },
|
||||
{ "WEB_GREEN", new Color(0x008000FF) },
|
||||
{ "WEB_MAROON", new Color(0x800000FF) },
|
||||
{ "WEB_PURPLE", new Color(0x800080FF) },
|
||||
{ "WEBGRAY", new Color(0x808080FF) },
|
||||
{ "WEBGREEN", new Color(0x008000FF) },
|
||||
{ "WEBMAROON", new Color(0x800000FF) },
|
||||
{ "WEBPURPLE", new Color(0x800080FF) },
|
||||
{ "WHEAT", new Color(0xF5DEB3FF) },
|
||||
{ "WHITE", new Color(0xFFFFFFFF) },
|
||||
{ "WHITE_SMOKE", new Color(0xF5F5F5FF) },
|
||||
{ "WHITESMOKE", new Color(0xF5F5F5FF) },
|
||||
{ "YELLOW", new Color(0xFFFF00FF) },
|
||||
{ "YELLOW_GREEN", new Color(0x9ACD32FF) },
|
||||
{ "YELLOWGREEN", new Color(0x9ACD32FF) },
|
||||
};
|
||||
|
||||
#pragma warning disable CS1591 // Disable warning: "Missing XML comment for publicly visible type or member"
|
||||
|
|
Loading…
Reference in a new issue