From ea5fc87790935b9688be42f59d21505d90d02739 Mon Sep 17 00:00:00 2001 From: Orphey <15167344+frostmorn@users.noreply.github.com> Date: Wed, 27 Mar 2024 12:35:35 +0000 Subject: [PATCH 1/3] lilka::colors::RGB565 --- firmware/doom/src/main.cpp | 4 +- firmware/keira/src/apps/demos/ball.cpp | 2 +- firmware/keira/src/apps/demos/disk.cpp | 2 +- firmware/keira/src/apps/demos/letris.cpp | 20 +- firmware/keira/src/apps/demos/scan_i2c.cpp | 2 +- firmware/keira/src/apps/demos/transform.cpp | 2 +- firmware/keira/src/apps/launcher.cpp | 22 +- firmware/keira/src/apps/lua/luarunner.cpp | 4 +- firmware/keira/src/apps/nes/driver.cpp | 4 +- firmware/keira/src/apps/statusbar.cpp | 21 +- firmware/keira/src/apps/wifi_config.cpp | 4 +- sdk/lib/lilka/src/lilka/alert.cpp | 2 +- sdk/lib/lilka/src/lilka/colors565.h | 1088 +++++++++++++++++++ sdk/lib/lilka/src/lilka/display.h | 8 +- sdk/lib/lilka/src/lilka/inputdialog.cpp | 6 +- sdk/lib/lilka/src/lilka/menu.cpp | 16 +- sdk/lib/lilka/src/lilka/progressdialog.cpp | 4 +- 17 files changed, 1148 insertions(+), 63 deletions(-) create mode 100644 sdk/lib/lilka/src/lilka/colors565.h diff --git a/firmware/doom/src/main.cpp b/firmware/doom/src/main.cpp index da121b2c..e1e62a3c 100644 --- a/firmware/doom/src/main.cpp +++ b/firmware/doom/src/main.cpp @@ -216,7 +216,7 @@ void drawTask(void* arg) { lilka::display.endWrite(); lilka::display.setTextBound(0, 0, LILKA_DISPLAY_WIDTH, LILKA_DISPLAY_HEIGHT); lilka::display.setCursor(32, 16); - lilka::display.setTextColor(lilka::display.color565(255, 255, 255), lilka::display.color565(0, 0, 0)); + lilka::display.setTextColor(lilka::display.color565(255, 255, 255), lilka::colors::RGB565_Black); lilka::display.setFont(FONT_6x12); lilka::display.print(" FPS: "); lilka::display.print(1000 / delta); @@ -285,7 +285,7 @@ extern "C" void DG_printf(const char* format, ...) { lilka::display.setFont(u8g2_font_6x12_t_cyrillic); if (hadNewLine) { hadNewLine = false; - lilka::display.fillRect(0, bottom, 240, 280 - bottom, lilka::display.color565(0, 0, 0)); + lilka::display.fillRect(0, bottom, 240, 280 - bottom, lilka::colors::RGB565_Black); lilka::display.setCursor(0, bottom + 10); } lilka::display.setTextBound(0, bottom, 240, 280 - bottom); diff --git a/firmware/keira/src/apps/demos/ball.cpp b/firmware/keira/src/apps/demos/ball.cpp index 4e4a285c..b860da94 100644 --- a/firmware/keira/src/apps/demos/ball.cpp +++ b/firmware/keira/src/apps/demos/ball.cpp @@ -40,7 +40,7 @@ void BallApp::run() { xVelo = 500; } - canvas->fillScreen(canvas->color565(0, 0, 0)); + canvas->fillScreen(lilka::colors::RGB565_Black); canvas->fillCircle(x, y, radius, canvas->color565(255, 200, 0)); // Calculate FPS canvas->setCursor(16, 32); diff --git a/firmware/keira/src/apps/demos/disk.cpp b/firmware/keira/src/apps/demos/disk.cpp index 19ac3005..fe679924 100644 --- a/firmware/keira/src/apps/demos/disk.cpp +++ b/firmware/keira/src/apps/demos/disk.cpp @@ -34,7 +34,7 @@ void DiskApp::run() { return; } - canvas->fillScreen(canvas->color565(0, 0, 0)); + canvas->fillScreen(lilka::colors::RGB565_Black); canvas->drawCircle(x, y, radius, 0xFFFF); canvas->setCursor(16, 32); canvas->println("FPS: " + String(1000 / (millis() - prevRenderTime))); diff --git a/firmware/keira/src/apps/demos/letris.cpp b/firmware/keira/src/apps/demos/letris.cpp index f4e913f4..01ce3fa6 100644 --- a/firmware/keira/src/apps/demos/letris.cpp +++ b/firmware/keira/src/apps/demos/letris.cpp @@ -16,13 +16,13 @@ const bool shapesData[7][4][4] = { }; const uint16_t colors[7] = { - lilka::display.color565(255, 0, 0), - lilka::display.color565(0, 255, 0), - lilka::display.color565(0, 0, 255), - lilka::display.color565(255, 255, 0), - lilka::display.color565(255, 0, 255), - lilka::display.color565(0, 255, 255), - lilka::display.color565(200, 200, 200), + lilka::colors::RGB565_Red, + lilka::colors::RGB565_Green, + lilka::colors::RGB565_Blue, + lilka::colors::RGB565_Yellow, + lilka::colors::RGB565_Fuchsia, + lilka::colors::RGB565_Aqua, + lilka::colors::RGB565_Light_gray, }; const uint8_t colorCount = sizeof(colors) / sizeof(colors[0]); @@ -71,7 +71,7 @@ class Shape { (this->y + yy) * BLOCK_SIZE + 2, BLOCK_SIZE - 4, BLOCK_SIZE - 4, - lilka::display.color565(0, 0, 0) + lilka::colors::RGB565_Black ); } else if (drawEmptyBlocks) { canvas->fillRect( @@ -79,7 +79,7 @@ class Shape { (this->y + yy) * BLOCK_SIZE, BLOCK_SIZE, BLOCK_SIZE, - lilka::display.color565(0, 0, 0) + lilka::colors::RGB565_Black ); } } @@ -196,7 +196,7 @@ void LetrisApp::run() { int16_t xMargin = (canvas->width() - letris_splash_width) / 2; while (!lilka::controller.getState().a.justPressed) { float time = millis() / 1000.0; - canvas->fillScreen(canvas->color565(0, 0, 0)); + canvas->fillScreen(lilka::colors::RGB565_Black); float yShifts[letris_splash_width]; for (uint16_t x = 0; x < letris_splash_width; x++) { yShifts[x] = cos(time + ((float)x) / 32.0) * 8; diff --git a/firmware/keira/src/apps/demos/scan_i2c.cpp b/firmware/keira/src/apps/demos/scan_i2c.cpp index 9f113cb9..792347a5 100644 --- a/firmware/keira/src/apps/demos/scan_i2c.cpp +++ b/firmware/keira/src/apps/demos/scan_i2c.cpp @@ -13,7 +13,7 @@ void ScanI2CApp::run() { buffer.fillScreen(0); buffer.setFont(FONT_9x15); - buffer.fillScreen(canvas->color565(0, 0, 0)); + buffer.fillScreen(lilka::colors::RGB565_Black); buffer.setTextBound(4, 0, canvas->width() - 8, canvas->height()); buffer.setCursor(4, 20); buffer.println("I2C init: SDA=" + String(LILKA_P3) + ", SCL=" + String(LILKA_P4)); diff --git a/firmware/keira/src/apps/demos/transform.cpp b/firmware/keira/src/apps/demos/transform.cpp index ce3f098e..9783bdcd 100644 --- a/firmware/keira/src/apps/demos/transform.cpp +++ b/firmware/keira/src/apps/demos/transform.cpp @@ -6,7 +6,7 @@ TransformApp::TransformApp() : App("Transform") { } void TransformApp::run() { - lilka::Image* face = lilka::resources.loadImage("/sd/face.bmp", canvas->color565(0, 0, 0), 32, 32); + lilka::Image* face = lilka::resources.loadImage("/sd/face.bmp", lilka::colors::RGB565_Black, 32, 32); if (!face) { lilka::Alert alert("Помилка", "Не вдалось завантажити face.bmp з SD-карти."); diff --git a/firmware/keira/src/apps/launcher.cpp b/firmware/keira/src/apps/launcher.cpp index dff32d60..04e93cb2 100644 --- a/firmware/keira/src/apps/launcher.cpp +++ b/firmware/keira/src/apps/launcher.cpp @@ -40,11 +40,11 @@ LauncherApp::LauncherApp() : App("Menu") { void LauncherApp::run() { lilka::Menu menu("Головне меню"); - menu.addItem("Додатки", &demos, lilka::display.color565(255, 200, 200)); - menu.addItem("Браузер SD-карти", &sdcard, lilka::display.color565(255, 255, 200)); - menu.addItem("Браузер SPIFFS", &memory, lilka::display.color565(200, 255, 200)); - menu.addItem("Розробка", &dev, lilka::display.color565(255, 224, 128)); - menu.addItem("Налаштування", &settings, lilka::display.color565(255, 200, 224)); + menu.addItem("Додатки", &demos, lilka::colors::RGB565_Pink); + menu.addItem("Браузер SD-карти", &sdcard, lilka::colors::RGB565_Arylide_yellow); + menu.addItem("Браузер SPIFFS", &memory, lilka::colors::RGB565_Dark_sea_green); + menu.addItem("Розробка", &dev, lilka::colors::RGB565_Jasmine); + menu.addItem("Налаштування", &settings, lilka::colors::RGB565_Orchid); while (1) { while (!menu.isFinished()) { @@ -120,15 +120,15 @@ const uint16_t get_file_color(const String& filename) { String lowerCasedFileName = filename; lowerCasedFileName.toLowerCase(); if (lowerCasedFileName.endsWith(".rom") || lowerCasedFileName.endsWith(".nes")) { - return lilka::display.color565(255, 128, 128); + return lilka::colors::RGB565_Candy_pink; } else if (lowerCasedFileName.endsWith(".bin")) { - return lilka::display.color565(128, 255, 128); + return lilka::colors::RGB565_Mint_green; } else if (lowerCasedFileName.endsWith(".lua")) { - return lilka::display.color565(128, 128, 255); + return lilka::colors::RGB565_Maya_blue; } else if (lowerCasedFileName.endsWith(".js")) { - return lilka::display.color565(255, 200, 128); + return lilka::colors::RGB565_Butterscotch; } else { - return lilka::display.color565(200, 200, 200); + return lilka::colors::RGB565_Light_gray; } } @@ -159,7 +159,7 @@ void LauncherApp::sdBrowserMenu(String path) { String filename = entries[i].name; const menu_icon_t* icon = entries[i].type == lilka::EntryType::ENT_DIRECTORY ? &folder : get_file_icon(filename); - uint16_t color = entries[i].type == lilka::EntryType::ENT_DIRECTORY ? lilka::display.color565(255, 255, 200) + uint16_t color = entries[i].type == lilka::EntryType::ENT_DIRECTORY ? lilka::colors::RGB565_Arylide_yellow : get_file_color(filename); menu.addItem(filename, icon, color); } diff --git a/firmware/keira/src/apps/lua/luarunner.cpp b/firmware/keira/src/apps/lua/luarunner.cpp index e37279fa..bc4909f6 100644 --- a/firmware/keira/src/apps/lua/luarunner.cpp +++ b/firmware/keira/src/apps/lua/luarunner.cpp @@ -347,7 +347,7 @@ void LuaLiveRunnerApp::run() { } canvas->setFont(FONT_10x20); canvas->setCursor(8, 48); - canvas->fillScreen(canvas->color565(0, 0, 0)); + canvas->fillScreen(lilka::colors::RGB565_Black); canvas->setTextBound(8, 0, canvas->width() - 16, canvas->height()); canvas->print("Очікування коду\nз UART...\n\n"); canvas->print("Натисніть [A]\n"); @@ -454,7 +454,7 @@ void LuaReplApp::run() { canvas->setFont(FONT_10x20); canvas->setCursor(8, 48); - canvas->fillScreen(canvas->color565(0, 0, 0)); + canvas->fillScreen(lilka::colors::RGB565_Black); canvas->setTextBound(8, 0, canvas->width() - 16, canvas->height()); canvas->print("Lua REPL\n\n"); canvas->print("Під'єднайтесь до\nЛілки через серійний\nтермінал та починайте\nвводити команди!"); diff --git a/firmware/keira/src/apps/nes/driver.cpp b/firmware/keira/src/apps/nes/driver.cpp index 4ccd9300..e7a702c5 100644 --- a/firmware/keira/src/apps/nes/driver.cpp +++ b/firmware/keira/src/apps/nes/driver.cpp @@ -95,10 +95,10 @@ void Driver::customBlit(bitmap_t* bmp, int numDirties, rect_t* dirtyRects) { // Serial.println("Draw 1 took " + String(micros() - last_render) + "us"); if (last_frame_duration > 0) { - canvas->fillRect(80, canvas->height() - 20, 80, 20, canvas->color565(0, 0, 0)); + canvas->fillRect(80, canvas->height() - 20, 80, 20, lilka::colors::RGB565_Black); canvas->setCursor(80, canvas->height() - 4); canvas->setTextSize(1); - canvas->setTextColor(canvas->color565(128, 128, 128)); + canvas->setTextColor(lilka::colors::RGB565_Graygrey); canvas->print("FPS: "); canvas->print(1000000 / last_frame_duration); } diff --git a/firmware/keira/src/apps/statusbar.cpp b/firmware/keira/src/apps/statusbar.cpp index 084ac016..5341e9f0 100644 --- a/firmware/keira/src/apps/statusbar.cpp +++ b/firmware/keira/src/apps/statusbar.cpp @@ -21,10 +21,10 @@ const uint16_t* icons[] = {wifi_offline, wifi_0, wifi_1, wifi_2, wifi_3}; void StatusBarApp::run() { lilka::Canvas iconCanvas(240, 24); while (1) { - canvas->fillScreen(lilka::display.color565(0, 0, 0)); + canvas->fillScreen(lilka::colors::RGB565_Black); ClockService* clockService = ServiceManager::getInstance()->getService("clock"); - canvas->setTextColor(lilka::display.color565(255, 255, 255), lilka::display.color565(0, 0, 0)); + canvas->setTextColor(lilka::colors::RGB565_White, lilka::colors::RGB565_Black); canvas->setFont(FONT_9x15); canvas->setCursor(24, 17); struct tm timeinfo = clockService->getTime(); @@ -47,7 +47,7 @@ int16_t StatusBarApp::drawIcons(lilka::Canvas* iconCanvas) { int16_t xOffset = 0; - iconCanvas->fillScreen(lilka::display.color565(0, 0, 0)); + iconCanvas->fillScreen(lilka::colors::RGB565_Black); iconCanvas->setFont(FONT_9x15); // Draw RAM usage @@ -57,8 +57,8 @@ int16_t StatusBarApp::drawIcons(lilka::Canvas* iconCanvas) { int16_t barWidth = 24 - padding * 2; int16_t barHeight = barWidth; int16_t barWidthUsed = barWidth * (totalRAM - freeRAM) / totalRAM; - iconCanvas->fillRect(xOffset + padding, padding, barWidthUsed, barHeight, lilka::display.color565(255, 0, 0)); - iconCanvas->draw16bitRGBBitmapWithTranColor(xOffset, 0, ram, lilka::display.color565(0, 0, 0), 24, 24); + iconCanvas->fillRect(xOffset + padding, padding, barWidthUsed, barHeight, lilka::colors::RGB565_Red); + iconCanvas->draw16bitRGBBitmapWithTranColor(xOffset, 0, ram, lilka::colors::RGB565_Black, 24, 24); xOffset += 4 + 24; // Draw WiFi signal strength @@ -78,9 +78,7 @@ int16_t StatusBarApp::drawIcons(lilka::Canvas* iconCanvas) { // Draw battery int level = lilka::battery.readLevel(); if (level == -1) { - iconCanvas->draw16bitRGBBitmapWithTranColor( - xOffset, 0, battery_absent, lilka::display.color565(255, 0, 255), 16, 24 - ); + iconCanvas->draw16bitRGBBitmapWithTranColor(xOffset, 0, battery_absent, lilka::colors::RGB565_Fuchsia, 16, 24); xOffset += 4 + 16; } else { int16_t x1 = 4, y1 = 6; @@ -88,11 +86,10 @@ int16_t StatusBarApp::drawIcons(lilka::Canvas* iconCanvas) { int filledHeight = fullHeight * level / 100; if (filledHeight < 1) filledHeight = 1; int emptyHeight = fullHeight - filledHeight; - int16_t color = level > 50 - ? lilka::display.color565(0, 255, 0) - : (level > 20 ? lilka::display.color565(255, 255, 0) : lilka::display.color565(255, 0, 0)); + int16_t color = level > 50 ? lilka::colors::RGB565_Green + : (level > 20 ? lilka::colors::RGB565_Yellow : lilka::colors::RGB565_Red); iconCanvas->draw16bitRGBBitmapWithTranColor( - xOffset, 0, level > 10 ? battery : battery_danger, lilka::display.color565(255, 0, 255), 16, 24 + xOffset, 0, level > 10 ? battery : battery_danger, lilka::colors::RGB565_Fuchsia, 16, 24 ); iconCanvas->fillRect(xOffset + x1, y1 + emptyHeight, width, filledHeight, color); xOffset += 4 + 16; diff --git a/firmware/keira/src/apps/wifi_config.cpp b/firmware/keira/src/apps/wifi_config.cpp index ace08e13..b259d2d8 100644 --- a/firmware/keira/src/apps/wifi_config.cpp +++ b/firmware/keira/src/apps/wifi_config.cpp @@ -83,8 +83,8 @@ void WiFiConfigApp::run() { menu.addItem( networks[i], icons[signalStrength], - networkService->getPassword(networks[i]).length() ? lilka::display.color565(0, 255, 0) - : lilka::display.color565(255, 255, 255) + networkService->getPassword(networks[i]).length() ? lilka::colors::RGB565_Green + : lilka::colors::RGB565_White ); } menu.addItem("<< Назад"); diff --git a/sdk/lib/lilka/src/lilka/alert.cpp b/sdk/lib/lilka/src/lilka/alert.cpp index b5f38f0c..9a24874d 100644 --- a/sdk/lib/lilka/src/lilka/alert.cpp +++ b/sdk/lib/lilka/src/lilka/alert.cpp @@ -41,7 +41,7 @@ void Alert::draw(Arduino_GFX* canvas) { int width = right - left; int xMargin = 4; - canvas->setTextColor(canvas->color565(255, 255, 255)); + canvas->setTextColor(lilka::colors::RGB565_White); canvas->fillRect(left, top, width, mid - top, canvas->color565(32, 32, 128)); canvas->setFont(FONT_6x13); diff --git a/sdk/lib/lilka/src/lilka/colors565.h b/sdk/lib/lilka/src/lilka/colors565.h new file mode 100644 index 00000000..6acd6e43 --- /dev/null +++ b/sdk/lib/lilka/src/lilka/colors565.h @@ -0,0 +1,1088 @@ +#pragma once +namespace lilka { +namespace colors { +enum { + RGB565_Absolute_zero = 0x0257, + RGB565_Acid_green = 0xADE3, + RGB565_Aero = 0x7DDC, + RGB565_Aero_blue = 0xBF3A, + RGB565_African_violet = 0xB437, + RGB565_Air_force_blue = 0x5C54, + RGB565_Air_superiority_blue = 0x7517, + RGB565_Alabaster = 0xEF5B, + RGB565_Alice_blue = 0xEFBF, + RGB565_Alloy_orange = 0xC302, + RGB565_Almond = 0xEEF9, + RGB565_Amaranth = 0xE16A, + RGB565_Amaranth_mp = 0x996D, + RGB565_Amaranth_pink = 0xECF7, + RGB565_Amaranth_purple = 0xA94A, + RGB565_Amaranth_red = 0xD105, + RGB565_Amazon = 0x3BCB, + RGB565_Amber = 0xFDE0, + RGB565_Amber_saeece = 0xFBE0, + RGB565_Amethyst = 0x9B39, + RGB565_Android_green = 0xA627, + RGB565_Antique_brass = 0xCCAE, + RGB565_Antique_bronze = 0x62E4, + RGB565_Antique_fuchsia = 0x92F0, + RGB565_Antique_ruby = 0x80E5, + RGB565_Antique_white = 0xF75A, + RGB565_Ao_english = 0x0400, + RGB565_Apple_green = 0x8DA0, + RGB565_Apricot = 0xFE76, + RGB565_Aqua = 0x07FF, + RGB565_Aquamarine = 0x7FFA, + RGB565_Arctic_lime = 0xCFE2, + RGB565_Argentinian_blue = 0x6D9D, + RGB565_Army_green = 0x4AA4, + RGB565_Artichoke = 0x8CAF, + RGB565_Artichoke_green_pantone = 0x4B68, + RGB565_Arylide_yellow = 0xE6AD, + RGB565_Ash_gray = 0xB5F6, + RGB565_Asparagus = 0x854D, + RGB565_Atomic_tangerine = 0xFCCC, + RGB565_Auburn = 0xA145, + RGB565_Aureolin = 0xFF60, + RGB565_Avocado = 0x5400, + RGB565_Azure = 0x041F, + RGB565_Azure_web = 0xEFFF, + RGB565_Azure_x11web_color = 0xEFFF, + RGB565_Baby_blue = 0x8E7D, + RGB565_Baby_blue_eyes = 0xA65D, + RGB565_Baby_pink = 0xF618, + RGB565_Baby_powder = 0xFFFE, + RGB565_Baker_miller_pink = 0xFC95, + RGB565_Banana_mania = 0xF736, + RGB565_Barbie_pink = 0xD8D0, + RGB565_Barn_red = 0x7840, + RGB565_Battleship_gray = 0x8430, + RGB565_Battleship_grey = 0x8430, + RGB565_Bdazzled_blue = 0x32D2, + RGB565_Bean = 0x3860, + RGB565_Beau_blue = 0xBE9C, + RGB565_Beaver = 0x9C0E, + RGB565_Beige = 0xF7BB, + RGB565_Berkeley_blue = 0x018C, + RGB565_Big_dip_oruby = 0x9928, + RGB565_Bisque = 0xFF18, + RGB565_Bistre = 0x3964, + RGB565_Bistre_brown = 0x9383, + RGB565_Bitter_lemon = 0xCEE2, + RGB565_Bitter_lime = 0xBFE0, + RGB565_Bittersweet = 0xFB6B, + RGB565_Bittersweet_shimmer = 0xBA8A, + RGB565_Black = 0x0000, + RGB565_Black_bean = 0x3860, + RGB565_Black_chocolate = 0x18C2, + RGB565_Black_coffee = 0x3986, + RGB565_Black_coral = 0x530D, + RGB565_Black_olive = 0x39E7, + RGB565_Black_shadows = 0xBD76, + RGB565_Blanched_almond = 0xFF59, + RGB565_Blast_off_bronze = 0xA38C, + RGB565_Bleu_de_france = 0x347C, + RGB565_Blizzard_blue = 0xAF3D, + RGB565_Blond = 0xF777, + RGB565_Blood_red = 0x6000, + RGB565_Blue = 0x001F, + RGB565_Blue_bell = 0xA519, + RGB565_Blue_cmyk_pigment_blue = 0x31B3, + RGB565_Blue_computer_web_color = 0x001F, + RGB565_Blue_crayola = 0x23BF, + RGB565_Blue_gray = 0x64D9, + RGB565_Blue_green = 0x14D7, + RGB565_Blue_green_color_wheel = 0x0A68, + RGB565_Blue_jeans = 0x5D7D, + RGB565_Blue_munsell = 0x0495, + RGB565_Blue_ncs = 0x0437, + RGB565_Blue_pantone = 0x00D4, + RGB565_Blue_pigment = 0x31B3, + RGB565_Blue_ryb = 0x025F, + RGB565_Blue_sapphire = 0x1310, + RGB565_Blue_violet = 0x897B, + RGB565_Blue_violet_color_wheel = 0x48CF, + RGB565_Blue_violet_crayola = 0x7337, + RGB565_Blue_yonder = 0x5394, + RGB565_Bluetiful = 0x3B5C, + RGB565_Blush = 0xDAF0, + RGB565_Bole = 0x7A27, + RGB565_Bone = 0xE6D8, + RGB565_Bottle_green = 0x0349, + RGB565_Brandeis_blue = 0x039F, + RGB565_Brandy = 0x8208, + RGB565_Brick_red = 0xCA0A, + RGB565_Bright_green = 0x67E0, + RGB565_Bright_lilac = 0xD49D, + RGB565_Bright_maroon = 0xC109, + RGB565_Bright_navy_blue = 0x1BBA, + RGB565_Bright_yellow_crayola = 0xFD44, + RGB565_Brilliant_rose = 0xFAB4, + RGB565_Brink_pink = 0xFB0F, + RGB565_British_racing_green = 0x0204, + RGB565_Bronze = 0xCBE6, + RGB565_Brown = 0x9260, + RGB565_Brown_sugar = 0xAB69, + RGB565_Brunswick_green = 0x1A68, + RGB565_Bubblegum_pink = 0xF412, + RGB565_Bud_green = 0x7DAC, + RGB565_Buff = 0xDD0D, + RGB565_Burgundy = 0x8004, + RGB565_Burlywood = 0xDDB0, + RGB565_Burnished_brown = 0xA3CE, + RGB565_Burnt_orange = 0xBAA0, + RGB565_Burnt_sienna = 0xE3AA, + RGB565_Burnt_umber = 0x89A4, + RGB565_Butterscotch = 0xDCA8, + RGB565_Byzantine = 0xB9B4, + RGB565_Byzantium = 0x714C, + RGB565_Cadet = 0x534E, + RGB565_Cadet_blue = 0x64F3, + RGB565_Cadet_blue_crayola = 0xAD98, + RGB565_Cadet_gray = 0x9515, + RGB565_Cadet_grey = 0x9515, + RGB565_Cadmium_green = 0x0347, + RGB565_Cadmium_orange = 0xEC25, + RGB565_Cadmium_red = 0xE004, + RGB565_Cadmium_yellow = 0xFFA0, + RGB565_Cafe_au_lait = 0xA3CB, + RGB565_Cafe_noir = 0x49A4, + RGB565_Cambridge_blue = 0xA615, + RGB565_Camel = 0xBCCD, + RGB565_Cameo_pink = 0xEDD9, + RGB565_Canary = 0xFFF3, + RGB565_Canary_yellow = 0xFFF3, + RGB565_Candy_apple_red = 0xF840, + RGB565_Candy_pink = 0xE38F, + RGB565_Cantaloupe_melon = 0xFDD6, + RGB565_Capri = 0x05FF, + RGB565_Caput_mortuum = 0x5944, + RGB565_Cardinal = 0xC0E7, + RGB565_Caribbean_current = 0x036D, + RGB565_Caribbean_green = 0x0653, + RGB565_Carmine = 0x9003, + RGB565_Carmine_mp = 0xD008, + RGB565_Carnation_pink = 0xFD38, + RGB565_Carnelian = 0xB0E3, + RGB565_Carolina_blue = 0x551A, + RGB565_Carrot_orange = 0xEC84, + RGB565_Castleton_green = 0x02A8, + RGB565_Catawba = 0x71A8, + RGB565_Cedar_chest = 0xC2C9, + RGB565_Celadon = 0xAF15, + RGB565_Celadon_blue = 0x03D4, + RGB565_Celadon_green = 0x342F, + RGB565_Celeste = 0xB7FF, + RGB565_Celestial_blue = 0x4CB9, + RGB565_Celtic_blue = 0x2359, + RGB565_Cerise = 0xD98C, + RGB565_Cerulean = 0x03D4, + RGB565_Cerulean_blue = 0x2A97, + RGB565_Cerulean_crayola = 0x255A, + RGB565_Cerulean_frost = 0x6CD8, + RGB565_Cg_blue = 0x03D4, + RGB565_Cg_red = 0xD9E6, + RGB565_Champagne = 0xF739, + RGB565_Champagne_pink = 0xEEF9, + RGB565_Charcoal = 0x3A2A, + RGB565_Charleston_green = 0x2165, + RGB565_Charm_pink = 0xE475, + RGB565_Chartreuse_traditional = 0xDFE0, + RGB565_Chartreuse_web = 0x7FE0, + RGB565_Chefchaouen_blue = 0x4C7C, + RGB565_Cherry_blossom_pink = 0xFDB8, + RGB565_Chestnut = 0x9226, + RGB565_Chilean_pink = 0xE617, + RGB565_Chili_red = 0xD9E5, + RGB565_China_pink = 0xDB74, + RGB565_China_rose = 0xA28D, + RGB565_Chinese_red = 0xA9C4, + RGB565_Chinese_violet = 0x8311, + RGB565_Chinese_yellow = 0xFD80, + RGB565_Chocolate = 0x7A00, + RGB565_Chocolate_cosmos = 0x5883, + RGB565_Chocolate_traditional = 0x7A00, + RGB565_Chocolate_web = 0xD344, + RGB565_Chrome_yellow = 0xFD20, + RGB565_Cinereous = 0x940F, + RGB565_Cinnabar = 0xE266, + RGB565_Cinnamon_satin = 0xCB0F, + RGB565_Citrine = 0xE661, + RGB565_Citron = 0x9D44, + RGB565_Claret = 0x78C6, + RGB565_Cobalt_blue = 0x0255, + RGB565_Cocoa_brown = 0xD344, + RGB565_Coffee = 0x6A67, + RGB565_Columbia_blue = 0xB6DD, + RGB565_Congo_pink = 0xF40F, + RGB565_Cool_gray = 0x9497, + RGB565_Cool_grey = 0x8C95, + RGB565_Copper = 0xB386, + RGB565_Copper_crayola = 0xDC4D, + RGB565_Copper_penny = 0xAB6D, + RGB565_Copper_red = 0xCB6A, + RGB565_Copper_rose = 0x9B2C, + RGB565_Coquelicot = 0xF9C0, + RGB565_Coral = 0xFBEA, + RGB565_Coral_pink = 0xF40F, + RGB565_Cordovan = 0x8A08, + RGB565_Corn = 0xFF4B, + RGB565_Cornell_red = 0xB0E3, + RGB565_Cornflower_blue = 0x64BD, + RGB565_Cornsilk = 0xFFBB, + RGB565_Cosmic_cobalt = 0x3171, + RGB565_Cosmic_latte = 0xFFBC, + RGB565_Cotton_candy = 0xFDDA, + RGB565_Coyote_brown = 0x8307, + RGB565_Cream = 0xFFF9, + RGB565_Crimson = 0xD8A7, + RGB565_Crimson_ua = 0x98E6, + RGB565_Crystal = 0xA6BB, + RGB565_Cultured = 0xF7BE, + RGB565_Cyan = 0x07FF, + RGB565_Cyan_additive_secondary = 0x07FF, + RGB565_Cyan_process = 0x05BD, + RGB565_Cyan_subtractive_primary = 0x05BD, + RGB565_Cyber_grape = 0x5A0F, + RGB565_Cyber_yellow = 0xFE80, + RGB565_Cyclamen = 0xF374, + RGB565_Dark_blue = 0x0011, + RGB565_Dark_blue_gray = 0x6333, + RGB565_Dark_brown = 0x5A06, + RGB565_Dark_byzantium = 0x59CA, + RGB565_Dark_cornflower_blue = 0x2A11, + RGB565_Dark_cyan = 0x0451, + RGB565_Dark_electric_blue = 0x534F, + RGB565_Dark_goldenrod = 0xB421, + RGB565_Dark_green = 0x0184, + RGB565_Dark_green_x11 = 0x0320, + RGB565_Dark_jungle_green = 0x1924, + RGB565_Dark_khaki = 0xBDAD, + RGB565_Dark_lava = 0x49E6, + RGB565_Dark_liver = 0x526A, + RGB565_Dark_liver_horses = 0x51E7, + RGB565_Dark_magenta = 0x8811, + RGB565_Dark_moss_green = 0x4AE4, + RGB565_Dark_olive_green = 0x5346, + RGB565_Dark_orange = 0xFC60, + RGB565_Dark_orchid = 0x9999, + RGB565_Dark_pastel_green = 0x05E7, + RGB565_Dark_purple = 0x30C6, + RGB565_Dark_red = 0x8800, + RGB565_Dark_salmon = 0xE4AF, + RGB565_Dark_sea_green = 0x8DD1, + RGB565_Dark_sienna = 0x38A2, + RGB565_Dark_sky_blue = 0x8DFA, + RGB565_Dark_slate_blue = 0x49F1, + RGB565_Dark_slate_gray = 0x328A, + RGB565_Dark_spring_green = 0x1B88, + RGB565_Dark_turquoise = 0x0679, + RGB565_Dark_violet = 0x901A, + RGB565_Dartmouth_green = 0x0387, + RGB565_Davys_gray = 0x52AA, + RGB565_Davys_grey = 0x52AA, + RGB565_Deep_cerise = 0xD990, + RGB565_Deep_champagne = 0xF6B4, + RGB565_Deep_chestnut = 0xB269, + RGB565_Deep_jungle_green = 0x0269, + RGB565_Deep_pink = 0xF8B2, + RGB565_Deep_saffron = 0xFCC6, + RGB565_Deep_sky_blue = 0x05FF, + RGB565_Deep_space_sparkle = 0x4B2D, + RGB565_Deep_taupe = 0x7AEC, + RGB565_Delft_blue = 0x218B, + RGB565_Denim = 0x1B17, + RGB565_Denim_blue = 0x2236, + RGB565_Desert = 0xBCCD, + RGB565_Desert_sand = 0xEE55, + RGB565_Dim_gray = 0x6B4D, + RGB565_Dodger_blue = 0x249F, + RGB565_Dogwood_rose = 0xD0CD, + RGB565_Drab = 0x9383, + RGB565_Duck_blue = 0x03B2, + RGB565_Duke_blue = 0x0013, + RGB565_Dutch_white = 0xEEF7, + RGB565_Earth_yellow = 0xDD4C, + RGB565_Ebony = 0x52EA, + RGB565_Ecru = 0xC590, + RGB565_Eerie_black = 0x18E3, + RGB565_Eggplant = 0x620A, + RGB565_Eggshell = 0xEF5A, + RGB565_Egyptian_blue = 0x11B4, + RGB565_Eigengrau = 0x18A4, + RGB565_Electric_blue = 0x7FDF, + RGB565_Electric_green = 0x07E0, + RGB565_Electric_indigo = 0x681F, + RGB565_Electric_lime = 0xCFE0, + RGB565_Electric_purple = 0xB81F, + RGB565_Electric_violet = 0x881F, + RGB565_Emerald = 0x562F, + RGB565_Eminence = 0x6990, + RGB565_English_green = 0x1A68, + RGB565_English_lavender = 0xB412, + RGB565_English_red = 0xAA6A, + RGB565_English_vermillion = 0xCA49, + RGB565_English_violet = 0x51EB, + RGB565_Erin = 0x07E8, + RGB565_Eton_blue = 0x9634, + RGB565_Fairy_tale = 0xEE19, + RGB565_Fallow = 0xBCCD, + RGB565_Falu_red = 0x80C3, + RGB565_Fandango = 0xB1B1, + RGB565_Fandango_pink = 0xDA90, + RGB565_Fashion_fuchsia = 0xF014, + RGB565_Fawn = 0xE54E, + RGB565_Feldgrau = 0x4AEA, + RGB565_Fern = 0x75CF, + RGB565_Fern_green = 0x53C8, + RGB565_Field_drab = 0x6AA4, + RGB565_Fiery_rose = 0xFAAE, + RGB565_Fire_brick = 0xB104, + RGB565_Fire_engine_red = 0xC905, + RGB565_Fire_opal = 0xE2E9, + RGB565_Firebrick = 0xB104, + RGB565_Flame = 0xDAC4, + RGB565_Flax = 0xEED0, + RGB565_Flirt = 0xA00D, + RGB565_Floral_white = 0xFFDD, + RGB565_Fluorescent_blue = 0x1F9D, + RGB565_Forest_green = 0x2444, + RGB565_Forest_green_crayola = 0x652E, + RGB565_Forest_green_traditional = 0x0224, + RGB565_Forest_green_web = 0x2444, + RGB565_French_beige = 0xA3CB, + RGB565_French_bistre = 0x8369, + RGB565_French_blue = 0x0397, + RGB565_French_fuchsia = 0xFA12, + RGB565_French_lilac = 0x8311, + RGB565_French_lime = 0x9FE7, + RGB565_French_mauve = 0xD39A, + RGB565_French_pink = 0xFB73, + RGB565_French_raspberry = 0xC169, + RGB565_French_rose = 0xF251, + RGB565_French_sky_blue = 0x75BF, + RGB565_French_violet = 0x8839, + RGB565_Frostbite = 0xE1B4, + RGB565_Fuchsia = 0xF81F, + RGB565_Fuchsia_crayola = 0xBAB7, + RGB565_Fuchsia_purple = 0xC9CF, + RGB565_Fuchsia_rose = 0xC22E, + RGB565_Fulvous = 0xE420, + RGB565_Fuzzy_wuzzy = 0x8204, + RGB565_Gainsboro = 0xDEDB, + RGB565_Gamboge = 0xE4C2, + RGB565_Garnet = 0x71A6, + RGB565_Generic_viridian = 0x03EC, + RGB565_Ghost_white = 0xF7BF, + RGB565_Giants_orange = 0xFAC4, + RGB565_Glaucous = 0x6416, + RGB565_Glossy_grape = 0xAC96, + RGB565_Go_green = 0x054C, + RGB565_Gold = 0xA3E0, + RGB565_Gold_crayola = 0xE5F1, + RGB565_Gold_fusion = 0x83A9, + RGB565_Gold_golden = 0xFEA0, + RGB565_Gold_metallic = 0xD567, + RGB565_Gold_web_golden = 0xFEA0, + RGB565_Golden_brown = 0x9B23, + RGB565_Golden_poppy = 0xFE00, + RGB565_Golden_yellow = 0xFEE0, + RGB565_Goldenrod = 0xDD24, + RGB565_Granite_gray = 0x6B2D, + RGB565_Granny_smith_apple = 0xA713, + RGB565_Grape = 0x6974, + RGB565_Gray_green = 0x5B8D, + RGB565_Gray_web = 0x8410, + RGB565_Gray_x11_gray = 0xBDF7, + RGB565_Graygrey = 0x8410, + RGB565_Green = 0x07E0, + RGB565_Green_blue = 0x1336, + RGB565_Green_blue_crayola = 0x2C38, + RGB565_Green_crayola = 0x1D4F, + RGB565_Green_cyan = 0x04CC, + RGB565_Green_earth = 0xDEF2, + RGB565_Green_htmlcss_color = 0x0400, + RGB565_Green_lizard = 0xA786, + RGB565_Green_munsell = 0x054E, + RGB565_Green_ncs = 0x04ED, + RGB565_Green_pantone = 0x0568, + RGB565_Green_pigment = 0x052A, + RGB565_Green_ryb = 0x6566, + RGB565_Green_sheen = 0x6D74, + RGB565_Green_web = 0x0400, + RGB565_Green_x11_color_wheel = 0x07E0, + RGB565_Green_yellow = 0xAFE6, + RGB565_Green_yellow_crayola = 0xEF32, + RGB565_Greenish_yellow = 0xEF4C, + RGB565_Grullo = 0xACD0, + RGB565_Gunmetal = 0x29A7, + RGB565_Han_blue = 0x4379, + RGB565_Han_purple = 0x50DE, + RGB565_Hansa_yellow = 0xE6AD, + RGB565_Harlequin = 0x47E0, + RGB565_Harvest_gold = 0xDC80, + RGB565_Heat_wave = 0xFBC0, + RGB565_Heliotrope = 0xDB9F, + RGB565_Heliotrope_gray = 0xACD5, + RGB565_Hollywood_cerise = 0xF014, + RGB565_Honeydew = 0xEFFD, + RGB565_Honolulu_blue = 0x03B6, + RGB565_Hookers_green = 0x4BCD, + RGB565_Hot_magenta = 0xF8F9, + RGB565_Hot_pink = 0xFB56, + RGB565_Hunter_green = 0x32E7, + RGB565_Hunyadi_yellow = 0xE548, + RGB565_Ice_blue = 0x9FFF, + RGB565_Iceberg = 0x753A, + RGB565_Icterine = 0xFFAB, + RGB565_Illuminating_emerald = 0x348E, + RGB565_Imperial_red = 0xE947, + RGB565_Inchworm = 0xB74B, + RGB565_Independence = 0x4A8D, + RGB565_India_green = 0x1441, + RGB565_Indian_red = 0xCAEB, + RGB565_Indian_yellow = 0xE54B, + RGB565_Indigo = 0x4810, + RGB565_Indigo_dye = 0x020D, + RGB565_International_klein_blue = 0x1051, + RGB565_International_orange = 0xFA80, + RGB565_International_orange_aerospace = 0xFA80, + RGB565_International_orange_engineering = 0xB8A1, + RGB565_International_orange_golden_gate_bridge = 0xB9A5, + RGB565_Iris = 0x5A99, + RGB565_Irresistible = 0xB22D, + RGB565_Isabelline = 0xF77D, + RGB565_Islamic_green = 0x0480, + RGB565_Italian_sky_blue = 0xB7FF, + RGB565_Ivory = 0xFFFD, + RGB565_Jade = 0x054D, + RGB565_Japanese_carmine = 0x9946, + RGB565_Japanese_violet = 0x598A, + RGB565_Jasmine = 0xF6EF, + RGB565_Jasper = 0xCAA8, + RGB565_Jazzberry_jam = 0xA06B, + RGB565_Jet = 0x31A6, + RGB565_Jonquil = 0xF643, + RGB565_Jordy_blue = 0x8DDD, + RGB565_June_bud = 0xBECB, + RGB565_Jungle_green = 0x2D50, + RGB565_Kelly_green = 0x4DC3, + RGB565_Keppel = 0x3D73, + RGB565_Key_lime = 0xE791, + RGB565_Khaki = 0xC572, + RGB565_Khaki_web = 0xC572, + RGB565_Khaki_x11_light_khaki = 0xEF31, + RGB565_Kobe = 0x8963, + RGB565_Kobi = 0xE4F8, + RGB565_Kobicha = 0x6A24, + RGB565_Kombu_green = 0x3206, + RGB565_Ksu_purple = 0x5151, + RGB565_Languid_lavender = 0xD65B, + RGB565_Lapis_lazuli = 0x2B13, + RGB565_Laser_lemon = 0xFFEC, + RGB565_Laurel_green = 0xADD3, + RGB565_Lava = 0xC884, + RGB565_Lavender = 0xB3FB, + RGB565_Lavender_blue = 0xCE5F, + RGB565_Lavender_blush = 0xFF7E, + RGB565_Lavender_floral = 0xB3FB, + RGB565_Lavender_gray = 0xC619, + RGB565_Lavender_pink = 0xFD7A, + RGB565_Lavender_web = 0xE73E, + RGB565_Lawn_green = 0x7FC0, + RGB565_Lemon = 0xFFA0, + RGB565_Lemon_chiffon = 0xFFD9, + RGB565_Lemon_crayola = 0xFFE0, + RGB565_Lemon_curry = 0xCD04, + RGB565_Lemon_glacier = 0xFFE0, + RGB565_Lemon_meringue = 0xF757, + RGB565_Lemon_yellow = 0xFF8A, + RGB565_Lemon_yellow_crayola = 0xFFF3, + RGB565_Liberty = 0x52D4, + RGB565_Licorice = 0x1882, + RGB565_Light_blue = 0xAEBC, + RGB565_Light_coral = 0xEC10, + RGB565_Light_cornflower_blue = 0x965C, + RGB565_Light_cyan = 0xDFFF, + RGB565_Light_deep_pink = 0xFAF9, + RGB565_Light_french_beige = 0xC56F, + RGB565_Light_goldenrod_yellow = 0xF7DA, + RGB565_Light_gray = 0xD69A, + RGB565_Light_green = 0x9772, + RGB565_Light_hot_pink = 0xFD9B, + RGB565_Light_orange = 0xFEB6, + RGB565_Light_periwinkle = 0xC65B, + RGB565_Light_pink = 0xFDB7, + RGB565_Light_red = 0xFBEF, + RGB565_Light_salmon = 0xFD0F, + RGB565_Light_sea_green = 0x2595, + RGB565_Light_sky_blue = 0x867E, + RGB565_Light_slate_gray = 0x7453, + RGB565_Light_steel_blue = 0xAE1B, + RGB565_Light_yellow = 0xFFFB, + RGB565_Lilac = 0xC518, + RGB565_Lilac_luster = 0xACD5, + RGB565_Lime_color_wheel = 0xBFE0, + RGB565_Lime_green = 0x3666, + RGB565_Lime_web_x11_green = 0x07E0, + RGB565_Lincoln_green = 0x1AC1, + RGB565_Linen = 0xF77C, + RGB565_Lion = 0xBCCD, + RGB565_Liseran_purple = 0xDB74, + RGB565_Little_boy_blue = 0x6D1B, + RGB565_Liver = 0x6A69, + RGB565_Liver_chestnut = 0x93AA, + RGB565_Liver_dogs = 0xB365, + RGB565_Liver_organ = 0x6964, + RGB565_Livid = 0x64D9, + RGB565_Lust = 0xE104, + RGB565_Macaroni_and_cheese = 0xFDF1, + RGB565_Madder = 0xA004, + RGB565_Madder_lake = 0xC9A7, + RGB565_Magenta = 0xF81F, + RGB565_Magenta_additive_secondary = 0xF81F, + RGB565_Magenta_crayola = 0xF2B4, + RGB565_Magenta_dye = 0xC90F, + RGB565_Magenta_haze = 0x9A2E, + RGB565_Magenta_pantone = 0xCA0F, + RGB565_Magenta_process = 0xF812, + RGB565_Magenta_subtractive_primary = 0xF812, + RGB565_Magic_mint = 0xAF79, + RGB565_Magnolia = 0xEF3A, + RGB565_Mahogany = 0xBA00, + RGB565_Maize = 0xFF4B, + RGB565_Maize_crayola = 0xEE29, + RGB565_Majorelle_blue = 0x629B, + RGB565_Malachite = 0x0ECA, + RGB565_Manatee = 0x94D5, + RGB565_Mandarin = 0xF3C9, + RGB565_Mango = 0xFDE0, + RGB565_Mango_tango = 0xFC08, + RGB565_Mantis = 0x760C, + RGB565_Mardi_gras = 0x8810, + RGB565_Marengo = 0x4ACC, + RGB565_Marigold = 0xE504, + RGB565_Maroon = 0x8000, + RGB565_Maroon_crayola = 0xC109, + RGB565_Maroon_web = 0x8000, + RGB565_Maroon_x11 = 0xA98C, + RGB565_Mauve = 0xDD7F, + RGB565_Mauve_mallow = 0xDD7F, + RGB565_Mauve_taupe = 0x92ED, + RGB565_Mauvelous = 0xECD5, + RGB565_Maximum_blue = 0x4D59, + RGB565_Maximum_blue_green = 0x35F7, + RGB565_Maximum_blue_purple = 0xAD5C, + RGB565_Maximum_green = 0x5C66, + RGB565_Maximum_green_yellow = 0xD72A, + RGB565_Maximum_purple = 0x71B0, + RGB565_Maximum_red = 0xD104, + RGB565_Maximum_red_purple = 0xA1CF, + RGB565_Maximum_yellow = 0xF7C7, + RGB565_Maximum_yellow_red = 0xEDC9, + RGB565_May_green = 0x4C88, + RGB565_Maya_blue = 0x761F, + RGB565_Medium_aquamarine = 0x66F5, + RGB565_Medium_blue = 0x0019, + RGB565_Medium_candy_apple_red = 0xD825, + RGB565_Medium_carmine = 0xAA06, + RGB565_Medium_champagne = 0xF735, + RGB565_Medium_gray = 0xBDF7, + RGB565_Medium_orchid = 0xBABA, + RGB565_Medium_purple = 0x939B, + RGB565_Medium_sea_green = 0x3D8E, + RGB565_Medium_slate_blue = 0x7B5D, + RGB565_Medium_spring_green = 0x07D3, + RGB565_Medium_turquoise = 0x4E99, + RGB565_Medium_violet_red = 0xC0B0, + RGB565_Mellow_apricot = 0xF5AF, + RGB565_Mellow_yellow = 0xF6EF, + RGB565_Melon = 0xFDD5, + RGB565_Metallic_gold = 0xD567, + RGB565_Metallic_seaweed = 0x0BF1, + RGB565_Metallic_sunburst = 0x9BE7, + RGB565_Mexican_pink = 0xE00F, + RGB565_Middle_blue = 0x7E9C, + RGB565_Middle_blue_green = 0x8ED9, + RGB565_Middle_blue_purple = 0x8B97, + RGB565_Middle_green = 0x4C6B, + RGB565_Middle_green_yellow = 0xADEC, + RGB565_Middle_grey = 0x8C30, + RGB565_Middle_purple = 0xD416, + RGB565_Middle_red = 0xE46E, + RGB565_Middle_red_purple = 0xA2AA, + RGB565_Middle_yellow = 0xFF40, + RGB565_Middle_yellow_red = 0xED8E, + RGB565_Midnight = 0x712E, + RGB565_Midnight_blue = 0x18CE, + RGB565_Midnight_green = 0x026A, + RGB565_Midnight_green_eagle_green = 0x024A, + RGB565_Mikado_yellow = 0xFE01, + RGB565_Mimi_pink = 0xFEDC, + RGB565_Mindaro = 0xE7D1, + RGB565_Ming = 0x3BAF, + RGB565_Minion_yellow = 0xF6EA, + RGB565_Mint = 0x4591, + RGB565_Mint_cream = 0xF7FE, + RGB565_Mint_green = 0x97D2, + RGB565_Misty_moss = 0xBD8E, + RGB565_Misty_rose = 0xFF1B, + RGB565_Mode_beige = 0x9383, + RGB565_Moonstone = 0x3D57, + RGB565_Morning_blue = 0x8D13, + RGB565_Moss_green = 0x8CCB, + RGB565_Mountain_meadow = 0x35D1, + RGB565_Mountbatten_pink = 0x9BD1, + RGB565_Msu_green = 0x1A27, + RGB565_Mulberry = 0xC271, + RGB565_Mulberry_crayola = 0xC293, + RGB565_Mustard = 0xFECB, + RGB565_Myrtle_green = 0x33CE, + RGB565_Mystic = 0xD290, + RGB565_Mystic_maroon = 0xAA2F, + RGB565_Nadeshiko_pink = 0xF578, + RGB565_Naples_yellow = 0xF6CB, + RGB565_Navajo_white = 0xFEF5, + RGB565_Navy_blue = 0x0010, + RGB565_Navy_blue_crayola = 0x1BBA, + RGB565_Ndhu_green = 0x12E6, + RGB565_Neon_blue = 0x4A7F, + RGB565_Neon_carrot = 0xFD08, + RGB565_Neon_fuchsia = 0xFA0C, + RGB565_Neon_green = 0x3FE2, + RGB565_New_york_pink = 0xD40F, + RGB565_Nickel = 0x73AE, + RGB565_Non_photo_blue = 0xA6FD, + RGB565_Northwestern_purple = 0x4950, + RGB565_Nyanza = 0xE7FB, + RGB565_Ocean_blue = 0x5216, + RGB565_Ocean_green = 0x4DF2, + RGB565_Ochre = 0xCBA4, + RGB565_Old_burgundy = 0x4186, + RGB565_Old_gold = 0xCDA7, + RGB565_Old_lace = 0xFFBC, + RGB565_Old_lavender = 0x7B4F, + RGB565_Old_mauve = 0x6989, + RGB565_Old_rose = 0xBC10, + RGB565_Old_silver = 0x8430, + RGB565_Olive = 0x8400, + RGB565_Olive_drab_3 = 0x6C64, + RGB565_Olive_drab_7 = 0x39A4, + RGB565_Olive_green = 0xB58B, + RGB565_Olive_ral = 0x39E7, + RGB565_Olivine = 0x9DCE, + RGB565_Onyx = 0x31C7, + RGB565_Opal = 0xA617, + RGB565_Opera_mauve = 0xB434, + RGB565_Orange = 0xFBE0, + RGB565_Orange_color_wheel = 0xFC00, + RGB565_Orange_crayola = 0xFBA7, + RGB565_Orange_gs = 0xE300, + RGB565_Orange_pantone = 0xFAC0, + RGB565_Orange_peel = 0xFCE0, + RGB565_Orange_red = 0xFB44, + RGB565_Orange_red_crayola = 0xFAA9, + RGB565_Orange_soda = 0xF2C7, + RGB565_Orange_web = 0xFD20, + RGB565_Orange_web_color = 0xFD20, + RGB565_Orange_yellow = 0xF5E4, + RGB565_Orange_yellow_crayola = 0xF6AD, + RGB565_Orchid = 0xDB9A, + RGB565_Orchid_crayola = 0xDCFA, + RGB565_Orchid_pink = 0xEDF9, + RGB565_Ou_crimson_red = 0x80A3, + RGB565_Outer_space = 0x4249, + RGB565_Outer_space_crayola = 0x29C7, + RGB565_Outrageous_orange = 0xFB69, + RGB565_Oxblood = 0x4800, + RGB565_Oxford_blue = 0x0109, + RGB565_Pacific_blue = 0x1D58, + RGB565_Pakistan_green = 0x0320, + RGB565_Palatinate = 0x712D, + RGB565_Palatinate_purple = 0x694C, + RGB565_Pale_aqua = 0xBE9C, + RGB565_Pale_azure = 0x869E, + RGB565_Pale_cerulean = 0x9E1B, + RGB565_Pale_dogwood = 0xEE78, + RGB565_Pale_green = 0x97D2, + RGB565_Pale_pink = 0xF659, + RGB565_Pale_purple = 0xF73E, + RGB565_Pale_purple_pantone = 0xF73E, + RGB565_Pale_silver = 0xC5F7, + RGB565_Pale_spring_bud = 0xEF57, + RGB565_Pansy_purple = 0x78C9, + RGB565_Paolo_veronese_green = 0x04CF, + RGB565_Papaya_whip = 0xFF7A, + RGB565_Paradise_pink = 0xE1EC, + RGB565_Parchment = 0xEF5A, + RGB565_Paris_green = 0x562F, + RGB565_Pastel_pink = 0xDD34, + RGB565_Patriarch = 0x8010, + RGB565_Paynes_grey = 0x534F, + RGB565_Peach = 0xFF36, + RGB565_Peach_crayola = 0xFE54, + RGB565_Peach_puff = 0xFED6, + RGB565_Pear = 0xCF06, + RGB565_Pearly_purple = 0xB354, + RGB565_Periwinkle = 0xCE5F, + RGB565_Periwinkle_crayola = 0xC67C, + RGB565_Permanent_geranium_lake = 0xD965, + RGB565_Persian_blue = 0x19D7, + RGB565_Persian_green = 0x0532, + RGB565_Persian_indigo = 0x308F, + RGB565_Persian_orange = 0xD48B, + RGB565_Persian_pink = 0xF3F7, + RGB565_Persian_plum = 0x70E3, + RGB565_Persian_red = 0xC9A6, + RGB565_Persian_rose = 0xF954, + RGB565_Persimmon = 0xEAC0, + RGB565_Peru = 0xCC28, + RGB565_Pewter_blue = 0x8D56, + RGB565_Phlox = 0xD81F, + RGB565_Phthalo_blue = 0x0091, + RGB565_Phthalo_green = 0x11A4, + RGB565_Picotee_blue = 0x3150, + RGB565_Picton_blue = 0x459C, + RGB565_Pictorial_carmine = 0xC069, + RGB565_Piggy_pink = 0xFEFC, + RGB565_Pine_green = 0x03CD, + RGB565_Pine_tree = 0x2984, + RGB565_Pink = 0xFDF9, + RGB565_Pink_flamingo = 0xFBBF, + RGB565_Pink_gs = 0xF5F7, + RGB565_Pink_lace = 0xFEFE, + RGB565_Pink_lavender = 0xDD99, + RGB565_Pink_pantone = 0xD252, + RGB565_Pink_sherbet = 0xF474, + RGB565_Pistachio = 0x962E, + RGB565_Platinum = 0xE71B, + RGB565_Plum = 0x8A30, + RGB565_Plum_crayola = 0x818F, + RGB565_Plum_web = 0xDD1B, + RGB565_Plump_purple = 0x5A36, + RGB565_Polished_pine = 0x5D32, + RGB565_Polynesian_blue = 0x2272, + RGB565_Pomp_and_power = 0x8311, + RGB565_Popstar = 0xBA8C, + RGB565_Portland_orange = 0xFAC7, + RGB565_Powder_blue = 0xAEFC, + RGB565_Princeton_orange = 0xEBE5, + RGB565_Process_yellow = 0xFF60, + RGB565_Prune = 0x70E3, + RGB565_Prussian_blue = 0x018A, + RGB565_Psychedelic_purple = 0xD81F, + RGB565_Puce = 0xCC53, + RGB565_Pullman_brown_ups_brown = 0x6203, + RGB565_Pumpkin = 0xFBA3, + RGB565_Purple = 0x8010, + RGB565_Purple_htmlcss_color = 0x8010, + RGB565_Purple_mountain_majesty = 0x93D6, + RGB565_Purple_munsell = 0x9818, + RGB565_Purple_navy = 0x4A90, + RGB565_Purple_pizzazz = 0xFA7B, + RGB565_Purple_plum = 0x9A96, + RGB565_Purple_web = 0x8010, + RGB565_Purple_x11 = 0x991D, + RGB565_Purple_x11_color = 0x991D, + RGB565_Purpureus = 0x9A75, + RGB565_Queen_blue = 0x4352, + RGB565_Queen_pink = 0xE65A, + RGB565_Quick_silver = 0xA534, + RGB565_Quinacridone_magenta = 0x988A, + RGB565_Radical_red = 0xF9AB, + RGB565_Raisin_black = 0x2104, + RGB565_Rajah = 0xFD4C, + RGB565_Raspberry = 0xE06B, + RGB565_Raspberry_glace = 0x92ED, + RGB565_Raspberry_rose = 0xB22D, + RGB565_Raw_sienna = 0xD44B, + RGB565_Raw_umber = 0x8328, + RGB565_Razzle_dazzle_rose = 0xF9B9, + RGB565_Razzmatazz = 0xE12D, + RGB565_Razzmic_berry = 0x8A70, + RGB565_Rebecca_purple = 0x61B3, + RGB565_Red = 0xF800, + RGB565_Red_brown = 0xA145, + RGB565_Red_cmyk_pigment_red = 0xE8E4, + RGB565_Red_crayola = 0xE909, + RGB565_Red_munsell = 0xE807, + RGB565_Red_ncs = 0xC006, + RGB565_Red_orange = 0xFAA9, + RGB565_Red_orange_color_wheel = 0xFA20, + RGB565_Red_orange_crayola = 0xFB44, + RGB565_Red_pantone = 0xE947, + RGB565_Red_pigment = 0xE8E4, + RGB565_Red_purple = 0xE00F, + RGB565_Red_rgb = 0xF800, + RGB565_Red_ryb = 0xF942, + RGB565_Red_salsa = 0xF9C9, + RGB565_Red_violet = 0xC0B0, + RGB565_Red_violet_color_wheel = 0x9168, + RGB565_Red_violet_crayola = 0xBA31, + RGB565_Redwood = 0xA2CA, + RGB565_Resolution_blue = 0x0130, + RGB565_Rhythm = 0x73B2, + RGB565_Rich_black = 0x0208, + RGB565_Rich_black_fogra29 = 0x0062, + RGB565_Rich_black_fogra39 = 0x0000, + RGB565_Rifle_green = 0x4267, + RGB565_Robin_egg_blue = 0x0659, + RGB565_Rocket_metallic = 0x8BF1, + RGB565_Rojo = 0xE005, + RGB565_Rojo_spanish_red = 0xA880, + RGB565_Roman_silver = 0x8452, + RGB565_Rose = 0xF80F, + RGB565_Rose_bonbon = 0xF213, + RGB565_Rose_dust = 0x9AED, + RGB565_Rose_ebony = 0x6A49, + RGB565_Rose_madder = 0xE127, + RGB565_Rose_pink = 0xFB39, + RGB565_Rose_pompadour = 0xEBD3, + RGB565_Rose_quartz = 0xACD5, + RGB565_Rose_red = 0xC0EA, + RGB565_Rose_taupe = 0x92EB, + RGB565_Rose_vale = 0xAA6A, + RGB565_Rosewood = 0x6001, + RGB565_Rosso_corsa = 0xD000, + RGB565_Rosy_brown = 0xBC71, + RGB565_Royal_blue_dark = 0x012C, + RGB565_Royal_blue_light = 0x435B, + RGB565_Royal_blue_traditional = 0x012C, + RGB565_Royal_blue_web_color = 0x435B, + RGB565_Royal_purple = 0x7A95, + RGB565_Royal_yellow = 0xF6CB, + RGB565_Ruber = 0xCA2E, + RGB565_Rubine_red = 0xC80A, + RGB565_Ruby = 0xD88C, + RGB565_Ruby_red = 0x9884, + RGB565_Ruddy_blue = 0x755B, + RGB565_Rufous = 0xA0E1, + RGB565_Russet = 0x8223, + RGB565_Russian_green = 0x6C8D, + RGB565_Russian_violet = 0x30C9, + RGB565_Rust = 0xB202, + RGB565_Rusty_red = 0xD968, + RGB565_Sacramento_state_green = 0x01C5, + RGB565_Saddle_brown = 0x8A22, + RGB565_Safety_orange = 0xFBC0, + RGB565_Safety_orange_blaze_orange = 0xFB20, + RGB565_Safety_yellow = 0xEE80, + RGB565_Saffron = 0xF606, + RGB565_Sage = 0xBDB1, + RGB565_Salmon = 0xF40E, + RGB565_Salmon_pink = 0xFC94, + RGB565_Sand = 0xC590, + RGB565_Sand_dune = 0x9383, + RGB565_Sandy_brown = 0xF52C, + RGB565_Sap_green = 0x53E5, + RGB565_Sapphire = 0x092D, + RGB565_Sapphire_blue = 0x0334, + RGB565_Sapphire_crayola = 0x0334, + RGB565_Satin_sheen_gold = 0xCD06, + RGB565_Savoy_blue = 0x4B19, + RGB565_Scarlet = 0xF920, + RGB565_Schauss_pink = 0xFC95, + RGB565_School_bus_yellow = 0xFEA0, + RGB565_Screamin_green = 0x67EC, + RGB565_Sea_green = 0x344B, + RGB565_Sea_green_crayola = 0x07F9, + RGB565_Seal_brown = 0x5921, + RGB565_Seashell = 0xFFBD, + RGB565_Selective_yellow = 0xFDC0, + RGB565_Sepia = 0x7202, + RGB565_Sgbus_green = 0x56E6, + RGB565_Shadow = 0x8BCB, + RGB565_Shadow_blue = 0x7454, + RGB565_Shamrock_green = 0x04EC, + RGB565_Sheen_green = 0x8E80, + RGB565_Shimmering_blush = 0xD432, + RGB565_Shiny_shamrock = 0x652F, + RGB565_Shocking_pink = 0xF897, + RGB565_Shocking_pink_crayola = 0xFB7F, + RGB565_Shocking_pink_crayola_formerly_known_as_ultra_pink = 0xFB7F, + RGB565_Sienna = 0x8963, + RGB565_Silver = 0xBDF7, + RGB565_Silver_chalice = 0xAD55, + RGB565_Silver_crayola = 0xC5F7, + RGB565_Silver_lake_blue = 0x5C57, + RGB565_Silver_metallic = 0xAD55, + RGB565_Silver_pink = 0xC575, + RGB565_Silver_sand = 0xBE18, + RGB565_Sinopia = 0xCA01, + RGB565_Sizzling_red = 0xF9CA, + RGB565_Sizzling_sunrise = 0xFEC0, + RGB565_Skobeloff = 0x03CE, + RGB565_Sky_blue = 0x867D, + RGB565_Sky_blue_crayola = 0x86DD, + RGB565_Sky_magenta = 0xCB95, + RGB565_Slate_blue = 0x6AD9, + RGB565_Slate_gray = 0x7412, + RGB565_Slimy_green = 0x2CA3, + RGB565_Smitten = 0xC210, + RGB565_Smokey_topaz = 0x8142, + RGB565_Smoky_black = 0x1061, + RGB565_Snow = 0xFFDE, + RGB565_Solid_pink = 0x89C8, + RGB565_Sonic_silver = 0x73AE, + RGB565_Space_cadet = 0x214A, + RGB565_Spanish_bistre = 0x83A6, + RGB565_Spanish_blue = 0x0397, + RGB565_Spanish_carmine = 0xC809, + RGB565_Spanish_gray = 0x94D2, + RGB565_Spanish_green = 0x048A, + RGB565_Spanish_orange = 0xE300, + RGB565_Spanish_pink = 0xF5F7, + RGB565_Spanish_red = 0xE005, + RGB565_Spanish_sky_blue = 0x07FF, + RGB565_Spanish_violet = 0x4950, + RGB565_Spanish_viridian = 0x03EB, + RGB565_Spring_bud = 0xA7C0, + RGB565_Spring_frost = 0x87E5, + RGB565_Spring_green = 0x07EF, + RGB565_Spring_green_crayola = 0xEF57, + RGB565_St_patricks_blue = 0x214F, + RGB565_Star_command_blue = 0x03D6, + RGB565_Steel_blue = 0x4C16, + RGB565_Steel_pink = 0xC9B9, + RGB565_Steel_teal = 0x6451, + RGB565_Stil_de_grain_yellow = 0xF6CB, + RGB565_Stone_gray = 0x9470, + RGB565_Straw = 0xE6CD, + RGB565_Strawberry = 0xF28A, + RGB565_Strawberry_blonde = 0xFC8C, + RGB565_Sugar_plum = 0x926E, + RGB565_Sunglow = 0xFE46, + RGB565_Sunray = 0xE54B, + RGB565_Sunset = 0xF6B4, + RGB565_Super_pink = 0xCB55, + RGB565_Sweet_brown = 0xA1C6, + RGB565_Syracuse_orange = 0xD220, + RGB565_Tan = 0xD591, + RGB565_Tan_crayola = 0xD4CD, + RGB565_Tang_blue = 0x02D9, + RGB565_Tangerine = 0xEC20, + RGB565_Tango_pink = 0xE38F, + RGB565_Tart_orange = 0xFA69, + RGB565_Taupe = 0x49E6, + RGB565_Taupe_gray = 0x8C31, + RGB565_Tea_green = 0xCF77, + RGB565_Tea_rose = 0xF40F, + RGB565_Tea_rose_red = 0xF618, + RGB565_Teal = 0x0410, + RGB565_Teal_blue = 0x3BB1, + RGB565_Telemagenta = 0xC9AE, + RGB565_Tenne = 0xCAA0, + RGB565_Terra_cotta = 0xDB8B, + RGB565_Thistle = 0xD5FA, + RGB565_Thulian_pink = 0xDB74, + RGB565_Tickle_me_pink = 0xFC55, + RGB565_Tiffany_blue = 0x86B9, + RGB565_Tigers_eye = 0xB343, + RGB565_Timberwolf = 0xDEBA, + RGB565_Titanium_yellow = 0xEF20, + RGB565_Tomato = 0xFB09, + RGB565_Tropical_rainforest = 0x03AB, + RGB565_True_blue = 0x2B58, + RGB565_Trypan_blue = 0x1836, + RGB565_Tufts_blue = 0x447B, + RGB565_Tumbleweed = 0xDD51, + RGB565_Turkey_red = 0xA880, + RGB565_Turquoise = 0x46F9, + RGB565_Turquoise_blue = 0x07FD, + RGB565_Turquoise_green = 0x9EB6, + RGB565_Turtle_green = 0x8CCB, + RGB565_Tuscan = 0xF6B4, + RGB565_Tuscan_brown = 0x6A67, + RGB565_Tuscan_red = 0x7A49, + RGB565_Tuscan_tan = 0xA3CB, + RGB565_Tuscany = 0xBCD3, + RGB565_Twilight_lavender = 0x8A4D, + RGB565_Tyrian_purple = 0x6007, + RGB565_Ua_blue = 0x01B5, + RGB565_Ua_red = 0xD009, + RGB565_Ultra_pink = 0xFB7F, + RGB565_Ultra_red = 0xFB70, + RGB565_Ultra_violet = 0x62B2, + RGB565_Ultramarine = 0x401F, + RGB565_Ultramarine_blue = 0x433E, + RGB565_Umber = 0x6289, + RGB565_Unbleached_silk = 0xFEF9, + RGB565_United_nations_blue = 0x4C9B, + RGB565_University_of_pennsylvania_blue = 0x010B, + RGB565_University_of_pennsylvania_red = 0x9800, + RGB565_Unmellow_yellow = 0xFFEC, + RGB565_Up_forest_green = 0x0224, + RGB565_Up_maroon = 0x7882, + RGB565_Upsdell_red = 0xA905, + RGB565_Uranian_blue = 0xAEDE, + RGB565_Usafa_blue = 0x0292, + RGB565_Ut_orange = 0xFC00, + RGB565_Van_dyke_brown = 0x6205, + RGB565_Vanilla = 0xF735, + RGB565_Vanilla_ice = 0xF475, + RGB565_Vegas_gold = 0xC58B, + RGB565_Venetian_red = 0xC043, + RGB565_Verdigris = 0x4595, + RGB565_Vermilion = 0xE206, + RGB565_Veronica = 0x991D, + RGB565_Violet = 0x781F, + RGB565_Violet_blue = 0x3256, + RGB565_Violet_blue_crayola = 0x7378, + RGB565_Violet_color_wheel = 0x781F, + RGB565_Violet_crayola = 0x91EF, + RGB565_Violet_gs = 0x4950, + RGB565_Violet_jtc = 0x598A, + RGB565_Violet_red = 0xF2B2, + RGB565_Violet_ryb = 0x8015, + RGB565_Violet_web = 0xEC1D, + RGB565_Violet_web_color = 0xEC1D, + RGB565_Viridian = 0x440D, + RGB565_Viridian_green = 0x04B2, + RGB565_Vista_blue = 0x7CFA, + RGB565_Vivid_burgundy = 0x98E6, + RGB565_Vivid_sky_blue = 0x065F, + RGB565_Vivid_tangerine = 0xFD11, + RGB565_Vivid_violet = 0x981F, + RGB565_Volt = 0xCFE0, + RGB565_Walnut_brown = 0x5A89, + RGB565_Warm_black = 0x0208, + RGB565_Wenge = 0x62AA, + RGB565_Wheat = 0xF6F6, + RGB565_White = 0xFFFF, + RGB565_White_smoke = 0xF7BE, + RGB565_Wild_blue_yonder = 0xA579, + RGB565_Wild_orchid = 0xD394, + RGB565_Wild_strawberry = 0xFA34, + RGB565_Wild_watermelon = 0xFB70, + RGB565_Windsor_tan = 0xA2A0, + RGB565_Wine = 0x7187, + RGB565_Wine_dregs = 0x6989, + RGB565_Winter_sky = 0xF80F, + RGB565_Wintergreen_dream = 0x544F, + RGB565_Wisteria = 0xC51B, + RGB565_Wood_brown = 0xBCCD, + RGB565_Xanadu = 0x742F, + RGB565_Xanthic = 0xEF61, + RGB565_Xanthous = 0xED86, + RGB565_Yale_blue = 0x01AD, + RGB565_Yale_blue_site_blue = 0x01AD, + RGB565_Yellow = 0xFFE0, + RGB565_Yellow_crayola = 0xFF30, + RGB565_Yellow_green = 0x9E66, + RGB565_Yellow_green_color_wheel = 0x3583, + RGB565_Yellow_green_crayola = 0xC710, + RGB565_Yellow_munsell = 0xEE40, + RGB565_Yellow_ncs = 0xFE80, + RGB565_Yellow_orange = 0xFD68, + RGB565_Yellow_orange_color_wheel = 0xFCA1, + RGB565_Yellow_pantone = 0xFEE0, + RGB565_Yellow_process = 0xFF60, + RGB565_Yellow_rgb_x11_yellow = 0xFFE0, + RGB565_Yellow_ryb = 0xFFE6, + RGB565_Yellow_sunshine = 0xFFA0, + RGB565_Yinmn_blue = 0x3292, + RGB565_Zaffre = 0x00B4, + RGB565_Zomp = 0x3D31, +} RGB_565_Colors; +} // namespace colors +} // namespace lilka \ No newline at end of file diff --git a/sdk/lib/lilka/src/lilka/display.h b/sdk/lib/lilka/src/lilka/display.h index 9bc6ffa6..42f1ac99 100644 --- a/sdk/lib/lilka/src/lilka/display.h +++ b/sdk/lib/lilka/src/lilka/display.h @@ -2,7 +2,7 @@ #define LILKA_DISPLAY_H #include "config.h" - +#include "colors565.h" #include #include @@ -125,7 +125,7 @@ class Display : public Arduino_ST7789 { /// Наприклад: /// @code /// lilka::display.setCursor(0, 32); - /// lilka::display.setTextColor(lilka::display.color565(0, 0, 0)); // Білий текст + /// lilka::display.setTextColor(lilka::colors::RGB565_Black); // Білий текст /// lilka::display.print("Привіт,j "); /// lilka::display.print(String("Лілка!\n")); /// lilka::display.print(42); @@ -279,9 +279,9 @@ class Display : public Arduino_ST7789 { /// lilka::Canvas canvas; // Створити новий Canvas зі стандартним розміром (розмір дисплею) /// int y = 100; /// while (1) { -/// canvas.fillScreen(lilka::display.color565(0, 0, 0)); // Заповнити буфер чорним кольором +/// canvas.fillScreen(lilka::colors::RGB565_Black); // Заповнити буфер чорним кольором /// canvas.setCursor(32, y); -/// canvas.setTextColor(lilka::display.color565(0, 0, 0)); // Білий текст +/// canvas.setTextColor(lilka::colors::RGB565_Black); // Білий текст /// canvas.print("Привіт, Лілка!"); /// lilka::display.renderCanvas(&canvas); // Відобразити буфер на екрані - жодного мерехтіння! /// y++; diff --git a/sdk/lib/lilka/src/lilka/inputdialog.cpp b/sdk/lib/lilka/src/lilka/inputdialog.cpp index 7ca0e99b..53dd6b12 100644 --- a/sdk/lib/lilka/src/lilka/inputdialog.cpp +++ b/sdk/lib/lilka/src/lilka/inputdialog.cpp @@ -125,8 +125,8 @@ void InputDialog::draw(Arduino_GFX* canvas) { int16_t kbHeight = canvas->height() / 2; int16_t kbWidth = canvas->width(); - canvas->fillRect(0, 0, canvas->width(), canvas->height(), canvas->color565(0, 0, 0)); - canvas->setTextColor(canvas->color565(255, 255, 255)); + canvas->fillRect(0, 0, canvas->width(), canvas->height(), lilka::colors::RGB565_Black); + canvas->setTextColor(lilka::colors::RGB565_White); canvas->setFont(FONT_10x20); canvas->setTextBound(4, 4, canvas->width() - 8, canvas->height() - 8); @@ -183,7 +183,7 @@ void InputDialog::draw(Arduino_GFX* canvas) { x * buttonWidth + (buttonWidth / 2) - iconWidth / 2, kbTop + y * buttonHeight + (buttonHeight / 2) - iconHeight / 2, const_cast(icon), - canvas->color565(0, 0, 0), + lilka::colors::RGB565_Black, iconWidth, iconHeight ); diff --git a/sdk/lib/lilka/src/lilka/menu.cpp b/sdk/lib/lilka/src/lilka/menu.cpp index e64b56f0..6065cf89 100644 --- a/sdk/lib/lilka/src/lilka/menu.cpp +++ b/sdk/lib/lilka/src/lilka/menu.cpp @@ -82,7 +82,7 @@ void Menu::update() { void Menu::draw(Arduino_GFX* canvas) { // uint8_t desiredCursorY = cursor * 24 + 96 - 20; - canvas->fillScreen(canvas->color565(0, 0, 0)); + canvas->fillScreen(lilka::colors::RGB565_Black); int8_t angleShift = sin(millis() / 1000.0) * 16; // Draw triangle in top-left canvas->fillTriangle(0, 0, 48 - angleShift, 0, 0, 48 + angleShift, canvas->color565(0, 0, 255)); @@ -98,7 +98,7 @@ void Menu::draw(Arduino_GFX* canvas) { ); canvas->setCursor(32, 40); canvas->setTextBound(0, 0, canvas->width(), canvas->height()); - canvas->setTextColor(canvas->color565(255, 255, 255)); + canvas->setTextColor(lilka::colors::RGB565_White); canvas->setFont(FONT_6x13); canvas->setTextSize(2); canvas->println(title); @@ -111,7 +111,7 @@ void Menu::draw(Arduino_GFX* canvas) { uint16_t menu_size = items.size(); for (int i = scroll; i < MIN(scroll + MENU_HEIGHT, menu_size); i++) { // canvas->fillRect(0, 96 + i * 24 - 20, LILKA_DISPLAY_WIDTH, 24, i == cursor ? canvas->color565(255, 64, 0) : - // canvas->color565(0, 0, 0)); + // lilka::colors::RGB565_Black); int16_t screenI = i - scroll; const menu_icon_t* icon = items[i].icon; canvas->setTextBound(0, 80 + screenI * 24 - 20, canvas->width(), 24); @@ -130,14 +130,14 @@ void Menu::draw(Arduino_GFX* canvas) { memcpy(iconImage->pixels, *icon, sizeof(menu_icon_t)); // Transform t = Transform().rotate(millis() * 30); Transform t = Transform().rotate(sin((millis() - lastCursorMove) * PI / 1000) * 30); - iconCanvas->fillScreen(canvas->color565(0, 0, 0)); + iconCanvas->fillScreen(lilka::colors::RGB565_Black); iconCanvas->drawImageTransformed(iconImage, 12, 12, t); canvas->draw16bitRGBBitmapWithTranColor( - 0, 80 + screenI * 24 - 20, iconCanvas->getFramebuffer(), canvas->color565(0, 0, 0), 24, 24 + 0, 80 + screenI * 24 - 20, iconCanvas->getFramebuffer(), lilka::colors::RGB565_Black, 24, 24 ); } else { canvas->draw16bitRGBBitmapWithTranColor( - 0, 80 + screenI * 24 - 20, const_cast(*icon), canvas->color565(0, 0, 0), 24, 24 + 0, 80 + screenI * 24 - 20, const_cast(*icon), lilka::colors::RGB565_Black, 24, 24 ); } } @@ -145,7 +145,7 @@ void Menu::draw(Arduino_GFX* canvas) { if (items[i].color && cursor != i) { canvas->setTextColor(items[i].color); } else { - canvas->setTextColor(canvas->color565(255, 255, 255)); + canvas->setTextColor(lilka::colors::RGB565_White); } // gfx->print(i == cursor ? "> " : " "); canvas->println(items[i].title); @@ -170,7 +170,7 @@ void Menu::draw(Arduino_GFX* canvas) { canvas->fillRect(canvas->width() - 8, top, 8, height, canvas->color565(96, 96, 96)); int barHeight = height * MENU_HEIGHT / menu_size; int barTop = top + scroll * height / menu_size; - canvas->fillRect(canvas->width() - 8, barTop, 8, barHeight, canvas->color565(255, 255, 255)); + canvas->fillRect(canvas->width() - 8, barTop, 8, barHeight, lilka::colors::RGB565_White); } } diff --git a/sdk/lib/lilka/src/lilka/progressdialog.cpp b/sdk/lib/lilka/src/lilka/progressdialog.cpp index 7a933769..9a5aaf4e 100644 --- a/sdk/lib/lilka/src/lilka/progressdialog.cpp +++ b/sdk/lib/lilka/src/lilka/progressdialog.cpp @@ -34,7 +34,7 @@ void ProgressDialog::draw(Arduino_GFX* canvas) { int width = right - left; int xMargin = 4; - canvas->setTextColor(canvas->color565(255, 255, 255)); + canvas->setTextColor(lilka::colors::RGB565_White); canvas->fillRect(left, top, width, mid - top, canvas->color565(32, 32, 128)); canvas->setFont(FONT_6x13); @@ -56,7 +56,7 @@ void ProgressDialog::draw(Arduino_GFX* canvas) { sprintf(buf, "%d%%", progress); canvas->getTextBounds(buf, 0, 0, &x, &y, &w, &h); - // canvas->fillRect(x, y, w, h, canvas->color565(0, 0, 0)); + // canvas->fillRect(x, y, w, h, lilka::colors::RGB565_Black); // canvas->println(buf); int barMargin = 8; From 0ee41562cca0921f401238e9fadce6c717fa49dd Mon Sep 17 00:00:00 2001 From: Orphey <15167344+frostmorn@users.noreply.github.com> Date: Wed, 27 Mar 2024 13:22:58 +0000 Subject: [PATCH 2/3] remove rgb565_ prefix, typedef for doxygen --- firmware/doom/src/main.cpp | 4 +- firmware/keira/src/apps/demos/ball.cpp | 2 +- firmware/keira/src/apps/demos/disk.cpp | 2 +- firmware/keira/src/apps/demos/letris.cpp | 20 +- firmware/keira/src/apps/demos/scan_i2c.cpp | 2 +- firmware/keira/src/apps/demos/transform.cpp | 2 +- firmware/keira/src/apps/launcher.cpp | 22 +- firmware/keira/src/apps/lua/luarunner.cpp | 4 +- firmware/keira/src/apps/nes/driver.cpp | 4 +- firmware/keira/src/apps/statusbar.cpp | 17 +- firmware/keira/src/apps/wifi_config.cpp | 3 +- sdk/lib/lilka/src/lilka/alert.cpp | 2 +- sdk/lib/lilka/src/lilka/colors565.h | 2166 +++++++++---------- sdk/lib/lilka/src/lilka/display.h | 10 +- sdk/lib/lilka/src/lilka/inputdialog.cpp | 6 +- sdk/lib/lilka/src/lilka/menu.cpp | 16 +- sdk/lib/lilka/src/lilka/progressdialog.cpp | 4 +- 17 files changed, 1142 insertions(+), 1144 deletions(-) diff --git a/firmware/doom/src/main.cpp b/firmware/doom/src/main.cpp index e1e62a3c..31f213ca 100644 --- a/firmware/doom/src/main.cpp +++ b/firmware/doom/src/main.cpp @@ -216,7 +216,7 @@ void drawTask(void* arg) { lilka::display.endWrite(); lilka::display.setTextBound(0, 0, LILKA_DISPLAY_WIDTH, LILKA_DISPLAY_HEIGHT); lilka::display.setCursor(32, 16); - lilka::display.setTextColor(lilka::display.color565(255, 255, 255), lilka::colors::RGB565_Black); + lilka::display.setTextColor(lilka::colors::White, lilka::colors::Black); lilka::display.setFont(FONT_6x12); lilka::display.print(" FPS: "); lilka::display.print(1000 / delta); @@ -285,7 +285,7 @@ extern "C" void DG_printf(const char* format, ...) { lilka::display.setFont(u8g2_font_6x12_t_cyrillic); if (hadNewLine) { hadNewLine = false; - lilka::display.fillRect(0, bottom, 240, 280 - bottom, lilka::colors::RGB565_Black); + lilka::display.fillRect(0, bottom, 240, 280 - bottom, lilka::colors::Black); lilka::display.setCursor(0, bottom + 10); } lilka::display.setTextBound(0, bottom, 240, 280 - bottom); diff --git a/firmware/keira/src/apps/demos/ball.cpp b/firmware/keira/src/apps/demos/ball.cpp index b860da94..07152b16 100644 --- a/firmware/keira/src/apps/demos/ball.cpp +++ b/firmware/keira/src/apps/demos/ball.cpp @@ -40,7 +40,7 @@ void BallApp::run() { xVelo = 500; } - canvas->fillScreen(lilka::colors::RGB565_Black); + canvas->fillScreen(lilka::colors::Black); canvas->fillCircle(x, y, radius, canvas->color565(255, 200, 0)); // Calculate FPS canvas->setCursor(16, 32); diff --git a/firmware/keira/src/apps/demos/disk.cpp b/firmware/keira/src/apps/demos/disk.cpp index fe679924..680acb9c 100644 --- a/firmware/keira/src/apps/demos/disk.cpp +++ b/firmware/keira/src/apps/demos/disk.cpp @@ -34,7 +34,7 @@ void DiskApp::run() { return; } - canvas->fillScreen(lilka::colors::RGB565_Black); + canvas->fillScreen(lilka::colors::Black); canvas->drawCircle(x, y, radius, 0xFFFF); canvas->setCursor(16, 32); canvas->println("FPS: " + String(1000 / (millis() - prevRenderTime))); diff --git a/firmware/keira/src/apps/demos/letris.cpp b/firmware/keira/src/apps/demos/letris.cpp index 01ce3fa6..3bba0d33 100644 --- a/firmware/keira/src/apps/demos/letris.cpp +++ b/firmware/keira/src/apps/demos/letris.cpp @@ -16,13 +16,13 @@ const bool shapesData[7][4][4] = { }; const uint16_t colors[7] = { - lilka::colors::RGB565_Red, - lilka::colors::RGB565_Green, - lilka::colors::RGB565_Blue, - lilka::colors::RGB565_Yellow, - lilka::colors::RGB565_Fuchsia, - lilka::colors::RGB565_Aqua, - lilka::colors::RGB565_Light_gray, + lilka::colors::Red, + lilka::colors::Green, + lilka::colors::Blue, + lilka::colors::Yellow, + lilka::colors::Fuchsia, + lilka::colors::Aqua, + lilka::colors::Light_gray, }; const uint8_t colorCount = sizeof(colors) / sizeof(colors[0]); @@ -71,7 +71,7 @@ class Shape { (this->y + yy) * BLOCK_SIZE + 2, BLOCK_SIZE - 4, BLOCK_SIZE - 4, - lilka::colors::RGB565_Black + lilka::colors::Black ); } else if (drawEmptyBlocks) { canvas->fillRect( @@ -79,7 +79,7 @@ class Shape { (this->y + yy) * BLOCK_SIZE, BLOCK_SIZE, BLOCK_SIZE, - lilka::colors::RGB565_Black + lilka::colors::Black ); } } @@ -196,7 +196,7 @@ void LetrisApp::run() { int16_t xMargin = (canvas->width() - letris_splash_width) / 2; while (!lilka::controller.getState().a.justPressed) { float time = millis() / 1000.0; - canvas->fillScreen(lilka::colors::RGB565_Black); + canvas->fillScreen(lilka::colors::Black); float yShifts[letris_splash_width]; for (uint16_t x = 0; x < letris_splash_width; x++) { yShifts[x] = cos(time + ((float)x) / 32.0) * 8; diff --git a/firmware/keira/src/apps/demos/scan_i2c.cpp b/firmware/keira/src/apps/demos/scan_i2c.cpp index 792347a5..b7ff9f95 100644 --- a/firmware/keira/src/apps/demos/scan_i2c.cpp +++ b/firmware/keira/src/apps/demos/scan_i2c.cpp @@ -13,7 +13,7 @@ void ScanI2CApp::run() { buffer.fillScreen(0); buffer.setFont(FONT_9x15); - buffer.fillScreen(lilka::colors::RGB565_Black); + buffer.fillScreen(lilka::colors::Black); buffer.setTextBound(4, 0, canvas->width() - 8, canvas->height()); buffer.setCursor(4, 20); buffer.println("I2C init: SDA=" + String(LILKA_P3) + ", SCL=" + String(LILKA_P4)); diff --git a/firmware/keira/src/apps/demos/transform.cpp b/firmware/keira/src/apps/demos/transform.cpp index 9783bdcd..d612a52c 100644 --- a/firmware/keira/src/apps/demos/transform.cpp +++ b/firmware/keira/src/apps/demos/transform.cpp @@ -6,7 +6,7 @@ TransformApp::TransformApp() : App("Transform") { } void TransformApp::run() { - lilka::Image* face = lilka::resources.loadImage("/sd/face.bmp", lilka::colors::RGB565_Black, 32, 32); + lilka::Image* face = lilka::resources.loadImage("/sd/face.bmp", lilka::colors::Black, 32, 32); if (!face) { lilka::Alert alert("Помилка", "Не вдалось завантажити face.bmp з SD-карти."); diff --git a/firmware/keira/src/apps/launcher.cpp b/firmware/keira/src/apps/launcher.cpp index 04e93cb2..20f5cad5 100644 --- a/firmware/keira/src/apps/launcher.cpp +++ b/firmware/keira/src/apps/launcher.cpp @@ -40,11 +40,11 @@ LauncherApp::LauncherApp() : App("Menu") { void LauncherApp::run() { lilka::Menu menu("Головне меню"); - menu.addItem("Додатки", &demos, lilka::colors::RGB565_Pink); - menu.addItem("Браузер SD-карти", &sdcard, lilka::colors::RGB565_Arylide_yellow); - menu.addItem("Браузер SPIFFS", &memory, lilka::colors::RGB565_Dark_sea_green); - menu.addItem("Розробка", &dev, lilka::colors::RGB565_Jasmine); - menu.addItem("Налаштування", &settings, lilka::colors::RGB565_Orchid); + menu.addItem("Додатки", &demos, lilka::colors::Pink); + menu.addItem("Браузер SD-карти", &sdcard, lilka::colors::Arylide_yellow); + menu.addItem("Браузер SPIFFS", &memory, lilka::colors::Dark_sea_green); + menu.addItem("Розробка", &dev, lilka::colors::Jasmine); + menu.addItem("Налаштування", &settings, lilka::colors::Orchid); while (1) { while (!menu.isFinished()) { @@ -120,15 +120,15 @@ const uint16_t get_file_color(const String& filename) { String lowerCasedFileName = filename; lowerCasedFileName.toLowerCase(); if (lowerCasedFileName.endsWith(".rom") || lowerCasedFileName.endsWith(".nes")) { - return lilka::colors::RGB565_Candy_pink; + return lilka::colors::Candy_pink; } else if (lowerCasedFileName.endsWith(".bin")) { - return lilka::colors::RGB565_Mint_green; + return lilka::colors::Mint_green; } else if (lowerCasedFileName.endsWith(".lua")) { - return lilka::colors::RGB565_Maya_blue; + return lilka::colors::Maya_blue; } else if (lowerCasedFileName.endsWith(".js")) { - return lilka::colors::RGB565_Butterscotch; + return lilka::colors::Butterscotch; } else { - return lilka::colors::RGB565_Light_gray; + return lilka::colors::Light_gray; } } @@ -159,7 +159,7 @@ void LauncherApp::sdBrowserMenu(String path) { String filename = entries[i].name; const menu_icon_t* icon = entries[i].type == lilka::EntryType::ENT_DIRECTORY ? &folder : get_file_icon(filename); - uint16_t color = entries[i].type == lilka::EntryType::ENT_DIRECTORY ? lilka::colors::RGB565_Arylide_yellow + uint16_t color = entries[i].type == lilka::EntryType::ENT_DIRECTORY ? lilka::colors::Arylide_yellow : get_file_color(filename); menu.addItem(filename, icon, color); } diff --git a/firmware/keira/src/apps/lua/luarunner.cpp b/firmware/keira/src/apps/lua/luarunner.cpp index bc4909f6..044ccf61 100644 --- a/firmware/keira/src/apps/lua/luarunner.cpp +++ b/firmware/keira/src/apps/lua/luarunner.cpp @@ -347,7 +347,7 @@ void LuaLiveRunnerApp::run() { } canvas->setFont(FONT_10x20); canvas->setCursor(8, 48); - canvas->fillScreen(lilka::colors::RGB565_Black); + canvas->fillScreen(lilka::colors::Black); canvas->setTextBound(8, 0, canvas->width() - 16, canvas->height()); canvas->print("Очікування коду\nз UART...\n\n"); canvas->print("Натисніть [A]\n"); @@ -454,7 +454,7 @@ void LuaReplApp::run() { canvas->setFont(FONT_10x20); canvas->setCursor(8, 48); - canvas->fillScreen(lilka::colors::RGB565_Black); + canvas->fillScreen(lilka::colors::Black); canvas->setTextBound(8, 0, canvas->width() - 16, canvas->height()); canvas->print("Lua REPL\n\n"); canvas->print("Під'єднайтесь до\nЛілки через серійний\nтермінал та починайте\nвводити команди!"); diff --git a/firmware/keira/src/apps/nes/driver.cpp b/firmware/keira/src/apps/nes/driver.cpp index e7a702c5..ee338a0b 100644 --- a/firmware/keira/src/apps/nes/driver.cpp +++ b/firmware/keira/src/apps/nes/driver.cpp @@ -95,10 +95,10 @@ void Driver::customBlit(bitmap_t* bmp, int numDirties, rect_t* dirtyRects) { // Serial.println("Draw 1 took " + String(micros() - last_render) + "us"); if (last_frame_duration > 0) { - canvas->fillRect(80, canvas->height() - 20, 80, 20, lilka::colors::RGB565_Black); + canvas->fillRect(80, canvas->height() - 20, 80, 20, lilka::colors::Black); canvas->setCursor(80, canvas->height() - 4); canvas->setTextSize(1); - canvas->setTextColor(lilka::colors::RGB565_Graygrey); + canvas->setTextColor(lilka::colors::Graygrey); canvas->print("FPS: "); canvas->print(1000000 / last_frame_duration); } diff --git a/firmware/keira/src/apps/statusbar.cpp b/firmware/keira/src/apps/statusbar.cpp index 5341e9f0..7d01b118 100644 --- a/firmware/keira/src/apps/statusbar.cpp +++ b/firmware/keira/src/apps/statusbar.cpp @@ -21,10 +21,10 @@ const uint16_t* icons[] = {wifi_offline, wifi_0, wifi_1, wifi_2, wifi_3}; void StatusBarApp::run() { lilka::Canvas iconCanvas(240, 24); while (1) { - canvas->fillScreen(lilka::colors::RGB565_Black); + canvas->fillScreen(lilka::colors::Black); ClockService* clockService = ServiceManager::getInstance()->getService("clock"); - canvas->setTextColor(lilka::colors::RGB565_White, lilka::colors::RGB565_Black); + canvas->setTextColor(lilka::colors::White, lilka::colors::Black); canvas->setFont(FONT_9x15); canvas->setCursor(24, 17); struct tm timeinfo = clockService->getTime(); @@ -47,7 +47,7 @@ int16_t StatusBarApp::drawIcons(lilka::Canvas* iconCanvas) { int16_t xOffset = 0; - iconCanvas->fillScreen(lilka::colors::RGB565_Black); + iconCanvas->fillScreen(lilka::colors::Black); iconCanvas->setFont(FONT_9x15); // Draw RAM usage @@ -57,8 +57,8 @@ int16_t StatusBarApp::drawIcons(lilka::Canvas* iconCanvas) { int16_t barWidth = 24 - padding * 2; int16_t barHeight = barWidth; int16_t barWidthUsed = barWidth * (totalRAM - freeRAM) / totalRAM; - iconCanvas->fillRect(xOffset + padding, padding, barWidthUsed, barHeight, lilka::colors::RGB565_Red); - iconCanvas->draw16bitRGBBitmapWithTranColor(xOffset, 0, ram, lilka::colors::RGB565_Black, 24, 24); + iconCanvas->fillRect(xOffset + padding, padding, barWidthUsed, barHeight, lilka::colors::Red); + iconCanvas->draw16bitRGBBitmapWithTranColor(xOffset, 0, ram, lilka::colors::Black, 24, 24); xOffset += 4 + 24; // Draw WiFi signal strength @@ -78,7 +78,7 @@ int16_t StatusBarApp::drawIcons(lilka::Canvas* iconCanvas) { // Draw battery int level = lilka::battery.readLevel(); if (level == -1) { - iconCanvas->draw16bitRGBBitmapWithTranColor(xOffset, 0, battery_absent, lilka::colors::RGB565_Fuchsia, 16, 24); + iconCanvas->draw16bitRGBBitmapWithTranColor(xOffset, 0, battery_absent, lilka::colors::Fuchsia, 16, 24); xOffset += 4 + 16; } else { int16_t x1 = 4, y1 = 6; @@ -86,10 +86,9 @@ int16_t StatusBarApp::drawIcons(lilka::Canvas* iconCanvas) { int filledHeight = fullHeight * level / 100; if (filledHeight < 1) filledHeight = 1; int emptyHeight = fullHeight - filledHeight; - int16_t color = level > 50 ? lilka::colors::RGB565_Green - : (level > 20 ? lilka::colors::RGB565_Yellow : lilka::colors::RGB565_Red); + int16_t color = level > 50 ? lilka::colors::Green : (level > 20 ? lilka::colors::Yellow : lilka::colors::Red); iconCanvas->draw16bitRGBBitmapWithTranColor( - xOffset, 0, level > 10 ? battery : battery_danger, lilka::colors::RGB565_Fuchsia, 16, 24 + xOffset, 0, level > 10 ? battery : battery_danger, lilka::colors::Fuchsia, 16, 24 ); iconCanvas->fillRect(xOffset + x1, y1 + emptyHeight, width, filledHeight, color); xOffset += 4 + 16; diff --git a/firmware/keira/src/apps/wifi_config.cpp b/firmware/keira/src/apps/wifi_config.cpp index b259d2d8..28bc2ef7 100644 --- a/firmware/keira/src/apps/wifi_config.cpp +++ b/firmware/keira/src/apps/wifi_config.cpp @@ -83,8 +83,7 @@ void WiFiConfigApp::run() { menu.addItem( networks[i], icons[signalStrength], - networkService->getPassword(networks[i]).length() ? lilka::colors::RGB565_Green - : lilka::colors::RGB565_White + networkService->getPassword(networks[i]).length() ? lilka::colors::Green : lilka::colors::White ); } menu.addItem("<< Назад"); diff --git a/sdk/lib/lilka/src/lilka/alert.cpp b/sdk/lib/lilka/src/lilka/alert.cpp index 9a24874d..2e61d0a7 100644 --- a/sdk/lib/lilka/src/lilka/alert.cpp +++ b/sdk/lib/lilka/src/lilka/alert.cpp @@ -41,7 +41,7 @@ void Alert::draw(Arduino_GFX* canvas) { int width = right - left; int xMargin = 4; - canvas->setTextColor(lilka::colors::RGB565_White); + canvas->setTextColor(lilka::colors::White); canvas->fillRect(left, top, width, mid - top, canvas->color565(32, 32, 128)); canvas->setFont(FONT_6x13); diff --git a/sdk/lib/lilka/src/lilka/colors565.h b/sdk/lib/lilka/src/lilka/colors565.h index 6acd6e43..3b0d9217 100644 --- a/sdk/lib/lilka/src/lilka/colors565.h +++ b/sdk/lib/lilka/src/lilka/colors565.h @@ -1,1088 +1,1088 @@ #pragma once namespace lilka { namespace colors { -enum { - RGB565_Absolute_zero = 0x0257, - RGB565_Acid_green = 0xADE3, - RGB565_Aero = 0x7DDC, - RGB565_Aero_blue = 0xBF3A, - RGB565_African_violet = 0xB437, - RGB565_Air_force_blue = 0x5C54, - RGB565_Air_superiority_blue = 0x7517, - RGB565_Alabaster = 0xEF5B, - RGB565_Alice_blue = 0xEFBF, - RGB565_Alloy_orange = 0xC302, - RGB565_Almond = 0xEEF9, - RGB565_Amaranth = 0xE16A, - RGB565_Amaranth_mp = 0x996D, - RGB565_Amaranth_pink = 0xECF7, - RGB565_Amaranth_purple = 0xA94A, - RGB565_Amaranth_red = 0xD105, - RGB565_Amazon = 0x3BCB, - RGB565_Amber = 0xFDE0, - RGB565_Amber_saeece = 0xFBE0, - RGB565_Amethyst = 0x9B39, - RGB565_Android_green = 0xA627, - RGB565_Antique_brass = 0xCCAE, - RGB565_Antique_bronze = 0x62E4, - RGB565_Antique_fuchsia = 0x92F0, - RGB565_Antique_ruby = 0x80E5, - RGB565_Antique_white = 0xF75A, - RGB565_Ao_english = 0x0400, - RGB565_Apple_green = 0x8DA0, - RGB565_Apricot = 0xFE76, - RGB565_Aqua = 0x07FF, - RGB565_Aquamarine = 0x7FFA, - RGB565_Arctic_lime = 0xCFE2, - RGB565_Argentinian_blue = 0x6D9D, - RGB565_Army_green = 0x4AA4, - RGB565_Artichoke = 0x8CAF, - RGB565_Artichoke_green_pantone = 0x4B68, - RGB565_Arylide_yellow = 0xE6AD, - RGB565_Ash_gray = 0xB5F6, - RGB565_Asparagus = 0x854D, - RGB565_Atomic_tangerine = 0xFCCC, - RGB565_Auburn = 0xA145, - RGB565_Aureolin = 0xFF60, - RGB565_Avocado = 0x5400, - RGB565_Azure = 0x041F, - RGB565_Azure_web = 0xEFFF, - RGB565_Azure_x11web_color = 0xEFFF, - RGB565_Baby_blue = 0x8E7D, - RGB565_Baby_blue_eyes = 0xA65D, - RGB565_Baby_pink = 0xF618, - RGB565_Baby_powder = 0xFFFE, - RGB565_Baker_miller_pink = 0xFC95, - RGB565_Banana_mania = 0xF736, - RGB565_Barbie_pink = 0xD8D0, - RGB565_Barn_red = 0x7840, - RGB565_Battleship_gray = 0x8430, - RGB565_Battleship_grey = 0x8430, - RGB565_Bdazzled_blue = 0x32D2, - RGB565_Bean = 0x3860, - RGB565_Beau_blue = 0xBE9C, - RGB565_Beaver = 0x9C0E, - RGB565_Beige = 0xF7BB, - RGB565_Berkeley_blue = 0x018C, - RGB565_Big_dip_oruby = 0x9928, - RGB565_Bisque = 0xFF18, - RGB565_Bistre = 0x3964, - RGB565_Bistre_brown = 0x9383, - RGB565_Bitter_lemon = 0xCEE2, - RGB565_Bitter_lime = 0xBFE0, - RGB565_Bittersweet = 0xFB6B, - RGB565_Bittersweet_shimmer = 0xBA8A, - RGB565_Black = 0x0000, - RGB565_Black_bean = 0x3860, - RGB565_Black_chocolate = 0x18C2, - RGB565_Black_coffee = 0x3986, - RGB565_Black_coral = 0x530D, - RGB565_Black_olive = 0x39E7, - RGB565_Black_shadows = 0xBD76, - RGB565_Blanched_almond = 0xFF59, - RGB565_Blast_off_bronze = 0xA38C, - RGB565_Bleu_de_france = 0x347C, - RGB565_Blizzard_blue = 0xAF3D, - RGB565_Blond = 0xF777, - RGB565_Blood_red = 0x6000, - RGB565_Blue = 0x001F, - RGB565_Blue_bell = 0xA519, - RGB565_Blue_cmyk_pigment_blue = 0x31B3, - RGB565_Blue_computer_web_color = 0x001F, - RGB565_Blue_crayola = 0x23BF, - RGB565_Blue_gray = 0x64D9, - RGB565_Blue_green = 0x14D7, - RGB565_Blue_green_color_wheel = 0x0A68, - RGB565_Blue_jeans = 0x5D7D, - RGB565_Blue_munsell = 0x0495, - RGB565_Blue_ncs = 0x0437, - RGB565_Blue_pantone = 0x00D4, - RGB565_Blue_pigment = 0x31B3, - RGB565_Blue_ryb = 0x025F, - RGB565_Blue_sapphire = 0x1310, - RGB565_Blue_violet = 0x897B, - RGB565_Blue_violet_color_wheel = 0x48CF, - RGB565_Blue_violet_crayola = 0x7337, - RGB565_Blue_yonder = 0x5394, - RGB565_Bluetiful = 0x3B5C, - RGB565_Blush = 0xDAF0, - RGB565_Bole = 0x7A27, - RGB565_Bone = 0xE6D8, - RGB565_Bottle_green = 0x0349, - RGB565_Brandeis_blue = 0x039F, - RGB565_Brandy = 0x8208, - RGB565_Brick_red = 0xCA0A, - RGB565_Bright_green = 0x67E0, - RGB565_Bright_lilac = 0xD49D, - RGB565_Bright_maroon = 0xC109, - RGB565_Bright_navy_blue = 0x1BBA, - RGB565_Bright_yellow_crayola = 0xFD44, - RGB565_Brilliant_rose = 0xFAB4, - RGB565_Brink_pink = 0xFB0F, - RGB565_British_racing_green = 0x0204, - RGB565_Bronze = 0xCBE6, - RGB565_Brown = 0x9260, - RGB565_Brown_sugar = 0xAB69, - RGB565_Brunswick_green = 0x1A68, - RGB565_Bubblegum_pink = 0xF412, - RGB565_Bud_green = 0x7DAC, - RGB565_Buff = 0xDD0D, - RGB565_Burgundy = 0x8004, - RGB565_Burlywood = 0xDDB0, - RGB565_Burnished_brown = 0xA3CE, - RGB565_Burnt_orange = 0xBAA0, - RGB565_Burnt_sienna = 0xE3AA, - RGB565_Burnt_umber = 0x89A4, - RGB565_Butterscotch = 0xDCA8, - RGB565_Byzantine = 0xB9B4, - RGB565_Byzantium = 0x714C, - RGB565_Cadet = 0x534E, - RGB565_Cadet_blue = 0x64F3, - RGB565_Cadet_blue_crayola = 0xAD98, - RGB565_Cadet_gray = 0x9515, - RGB565_Cadet_grey = 0x9515, - RGB565_Cadmium_green = 0x0347, - RGB565_Cadmium_orange = 0xEC25, - RGB565_Cadmium_red = 0xE004, - RGB565_Cadmium_yellow = 0xFFA0, - RGB565_Cafe_au_lait = 0xA3CB, - RGB565_Cafe_noir = 0x49A4, - RGB565_Cambridge_blue = 0xA615, - RGB565_Camel = 0xBCCD, - RGB565_Cameo_pink = 0xEDD9, - RGB565_Canary = 0xFFF3, - RGB565_Canary_yellow = 0xFFF3, - RGB565_Candy_apple_red = 0xF840, - RGB565_Candy_pink = 0xE38F, - RGB565_Cantaloupe_melon = 0xFDD6, - RGB565_Capri = 0x05FF, - RGB565_Caput_mortuum = 0x5944, - RGB565_Cardinal = 0xC0E7, - RGB565_Caribbean_current = 0x036D, - RGB565_Caribbean_green = 0x0653, - RGB565_Carmine = 0x9003, - RGB565_Carmine_mp = 0xD008, - RGB565_Carnation_pink = 0xFD38, - RGB565_Carnelian = 0xB0E3, - RGB565_Carolina_blue = 0x551A, - RGB565_Carrot_orange = 0xEC84, - RGB565_Castleton_green = 0x02A8, - RGB565_Catawba = 0x71A8, - RGB565_Cedar_chest = 0xC2C9, - RGB565_Celadon = 0xAF15, - RGB565_Celadon_blue = 0x03D4, - RGB565_Celadon_green = 0x342F, - RGB565_Celeste = 0xB7FF, - RGB565_Celestial_blue = 0x4CB9, - RGB565_Celtic_blue = 0x2359, - RGB565_Cerise = 0xD98C, - RGB565_Cerulean = 0x03D4, - RGB565_Cerulean_blue = 0x2A97, - RGB565_Cerulean_crayola = 0x255A, - RGB565_Cerulean_frost = 0x6CD8, - RGB565_Cg_blue = 0x03D4, - RGB565_Cg_red = 0xD9E6, - RGB565_Champagne = 0xF739, - RGB565_Champagne_pink = 0xEEF9, - RGB565_Charcoal = 0x3A2A, - RGB565_Charleston_green = 0x2165, - RGB565_Charm_pink = 0xE475, - RGB565_Chartreuse_traditional = 0xDFE0, - RGB565_Chartreuse_web = 0x7FE0, - RGB565_Chefchaouen_blue = 0x4C7C, - RGB565_Cherry_blossom_pink = 0xFDB8, - RGB565_Chestnut = 0x9226, - RGB565_Chilean_pink = 0xE617, - RGB565_Chili_red = 0xD9E5, - RGB565_China_pink = 0xDB74, - RGB565_China_rose = 0xA28D, - RGB565_Chinese_red = 0xA9C4, - RGB565_Chinese_violet = 0x8311, - RGB565_Chinese_yellow = 0xFD80, - RGB565_Chocolate = 0x7A00, - RGB565_Chocolate_cosmos = 0x5883, - RGB565_Chocolate_traditional = 0x7A00, - RGB565_Chocolate_web = 0xD344, - RGB565_Chrome_yellow = 0xFD20, - RGB565_Cinereous = 0x940F, - RGB565_Cinnabar = 0xE266, - RGB565_Cinnamon_satin = 0xCB0F, - RGB565_Citrine = 0xE661, - RGB565_Citron = 0x9D44, - RGB565_Claret = 0x78C6, - RGB565_Cobalt_blue = 0x0255, - RGB565_Cocoa_brown = 0xD344, - RGB565_Coffee = 0x6A67, - RGB565_Columbia_blue = 0xB6DD, - RGB565_Congo_pink = 0xF40F, - RGB565_Cool_gray = 0x9497, - RGB565_Cool_grey = 0x8C95, - RGB565_Copper = 0xB386, - RGB565_Copper_crayola = 0xDC4D, - RGB565_Copper_penny = 0xAB6D, - RGB565_Copper_red = 0xCB6A, - RGB565_Copper_rose = 0x9B2C, - RGB565_Coquelicot = 0xF9C0, - RGB565_Coral = 0xFBEA, - RGB565_Coral_pink = 0xF40F, - RGB565_Cordovan = 0x8A08, - RGB565_Corn = 0xFF4B, - RGB565_Cornell_red = 0xB0E3, - RGB565_Cornflower_blue = 0x64BD, - RGB565_Cornsilk = 0xFFBB, - RGB565_Cosmic_cobalt = 0x3171, - RGB565_Cosmic_latte = 0xFFBC, - RGB565_Cotton_candy = 0xFDDA, - RGB565_Coyote_brown = 0x8307, - RGB565_Cream = 0xFFF9, - RGB565_Crimson = 0xD8A7, - RGB565_Crimson_ua = 0x98E6, - RGB565_Crystal = 0xA6BB, - RGB565_Cultured = 0xF7BE, - RGB565_Cyan = 0x07FF, - RGB565_Cyan_additive_secondary = 0x07FF, - RGB565_Cyan_process = 0x05BD, - RGB565_Cyan_subtractive_primary = 0x05BD, - RGB565_Cyber_grape = 0x5A0F, - RGB565_Cyber_yellow = 0xFE80, - RGB565_Cyclamen = 0xF374, - RGB565_Dark_blue = 0x0011, - RGB565_Dark_blue_gray = 0x6333, - RGB565_Dark_brown = 0x5A06, - RGB565_Dark_byzantium = 0x59CA, - RGB565_Dark_cornflower_blue = 0x2A11, - RGB565_Dark_cyan = 0x0451, - RGB565_Dark_electric_blue = 0x534F, - RGB565_Dark_goldenrod = 0xB421, - RGB565_Dark_green = 0x0184, - RGB565_Dark_green_x11 = 0x0320, - RGB565_Dark_jungle_green = 0x1924, - RGB565_Dark_khaki = 0xBDAD, - RGB565_Dark_lava = 0x49E6, - RGB565_Dark_liver = 0x526A, - RGB565_Dark_liver_horses = 0x51E7, - RGB565_Dark_magenta = 0x8811, - RGB565_Dark_moss_green = 0x4AE4, - RGB565_Dark_olive_green = 0x5346, - RGB565_Dark_orange = 0xFC60, - RGB565_Dark_orchid = 0x9999, - RGB565_Dark_pastel_green = 0x05E7, - RGB565_Dark_purple = 0x30C6, - RGB565_Dark_red = 0x8800, - RGB565_Dark_salmon = 0xE4AF, - RGB565_Dark_sea_green = 0x8DD1, - RGB565_Dark_sienna = 0x38A2, - RGB565_Dark_sky_blue = 0x8DFA, - RGB565_Dark_slate_blue = 0x49F1, - RGB565_Dark_slate_gray = 0x328A, - RGB565_Dark_spring_green = 0x1B88, - RGB565_Dark_turquoise = 0x0679, - RGB565_Dark_violet = 0x901A, - RGB565_Dartmouth_green = 0x0387, - RGB565_Davys_gray = 0x52AA, - RGB565_Davys_grey = 0x52AA, - RGB565_Deep_cerise = 0xD990, - RGB565_Deep_champagne = 0xF6B4, - RGB565_Deep_chestnut = 0xB269, - RGB565_Deep_jungle_green = 0x0269, - RGB565_Deep_pink = 0xF8B2, - RGB565_Deep_saffron = 0xFCC6, - RGB565_Deep_sky_blue = 0x05FF, - RGB565_Deep_space_sparkle = 0x4B2D, - RGB565_Deep_taupe = 0x7AEC, - RGB565_Delft_blue = 0x218B, - RGB565_Denim = 0x1B17, - RGB565_Denim_blue = 0x2236, - RGB565_Desert = 0xBCCD, - RGB565_Desert_sand = 0xEE55, - RGB565_Dim_gray = 0x6B4D, - RGB565_Dodger_blue = 0x249F, - RGB565_Dogwood_rose = 0xD0CD, - RGB565_Drab = 0x9383, - RGB565_Duck_blue = 0x03B2, - RGB565_Duke_blue = 0x0013, - RGB565_Dutch_white = 0xEEF7, - RGB565_Earth_yellow = 0xDD4C, - RGB565_Ebony = 0x52EA, - RGB565_Ecru = 0xC590, - RGB565_Eerie_black = 0x18E3, - RGB565_Eggplant = 0x620A, - RGB565_Eggshell = 0xEF5A, - RGB565_Egyptian_blue = 0x11B4, - RGB565_Eigengrau = 0x18A4, - RGB565_Electric_blue = 0x7FDF, - RGB565_Electric_green = 0x07E0, - RGB565_Electric_indigo = 0x681F, - RGB565_Electric_lime = 0xCFE0, - RGB565_Electric_purple = 0xB81F, - RGB565_Electric_violet = 0x881F, - RGB565_Emerald = 0x562F, - RGB565_Eminence = 0x6990, - RGB565_English_green = 0x1A68, - RGB565_English_lavender = 0xB412, - RGB565_English_red = 0xAA6A, - RGB565_English_vermillion = 0xCA49, - RGB565_English_violet = 0x51EB, - RGB565_Erin = 0x07E8, - RGB565_Eton_blue = 0x9634, - RGB565_Fairy_tale = 0xEE19, - RGB565_Fallow = 0xBCCD, - RGB565_Falu_red = 0x80C3, - RGB565_Fandango = 0xB1B1, - RGB565_Fandango_pink = 0xDA90, - RGB565_Fashion_fuchsia = 0xF014, - RGB565_Fawn = 0xE54E, - RGB565_Feldgrau = 0x4AEA, - RGB565_Fern = 0x75CF, - RGB565_Fern_green = 0x53C8, - RGB565_Field_drab = 0x6AA4, - RGB565_Fiery_rose = 0xFAAE, - RGB565_Fire_brick = 0xB104, - RGB565_Fire_engine_red = 0xC905, - RGB565_Fire_opal = 0xE2E9, - RGB565_Firebrick = 0xB104, - RGB565_Flame = 0xDAC4, - RGB565_Flax = 0xEED0, - RGB565_Flirt = 0xA00D, - RGB565_Floral_white = 0xFFDD, - RGB565_Fluorescent_blue = 0x1F9D, - RGB565_Forest_green = 0x2444, - RGB565_Forest_green_crayola = 0x652E, - RGB565_Forest_green_traditional = 0x0224, - RGB565_Forest_green_web = 0x2444, - RGB565_French_beige = 0xA3CB, - RGB565_French_bistre = 0x8369, - RGB565_French_blue = 0x0397, - RGB565_French_fuchsia = 0xFA12, - RGB565_French_lilac = 0x8311, - RGB565_French_lime = 0x9FE7, - RGB565_French_mauve = 0xD39A, - RGB565_French_pink = 0xFB73, - RGB565_French_raspberry = 0xC169, - RGB565_French_rose = 0xF251, - RGB565_French_sky_blue = 0x75BF, - RGB565_French_violet = 0x8839, - RGB565_Frostbite = 0xE1B4, - RGB565_Fuchsia = 0xF81F, - RGB565_Fuchsia_crayola = 0xBAB7, - RGB565_Fuchsia_purple = 0xC9CF, - RGB565_Fuchsia_rose = 0xC22E, - RGB565_Fulvous = 0xE420, - RGB565_Fuzzy_wuzzy = 0x8204, - RGB565_Gainsboro = 0xDEDB, - RGB565_Gamboge = 0xE4C2, - RGB565_Garnet = 0x71A6, - RGB565_Generic_viridian = 0x03EC, - RGB565_Ghost_white = 0xF7BF, - RGB565_Giants_orange = 0xFAC4, - RGB565_Glaucous = 0x6416, - RGB565_Glossy_grape = 0xAC96, - RGB565_Go_green = 0x054C, - RGB565_Gold = 0xA3E0, - RGB565_Gold_crayola = 0xE5F1, - RGB565_Gold_fusion = 0x83A9, - RGB565_Gold_golden = 0xFEA0, - RGB565_Gold_metallic = 0xD567, - RGB565_Gold_web_golden = 0xFEA0, - RGB565_Golden_brown = 0x9B23, - RGB565_Golden_poppy = 0xFE00, - RGB565_Golden_yellow = 0xFEE0, - RGB565_Goldenrod = 0xDD24, - RGB565_Granite_gray = 0x6B2D, - RGB565_Granny_smith_apple = 0xA713, - RGB565_Grape = 0x6974, - RGB565_Gray_green = 0x5B8D, - RGB565_Gray_web = 0x8410, - RGB565_Gray_x11_gray = 0xBDF7, - RGB565_Graygrey = 0x8410, - RGB565_Green = 0x07E0, - RGB565_Green_blue = 0x1336, - RGB565_Green_blue_crayola = 0x2C38, - RGB565_Green_crayola = 0x1D4F, - RGB565_Green_cyan = 0x04CC, - RGB565_Green_earth = 0xDEF2, - RGB565_Green_htmlcss_color = 0x0400, - RGB565_Green_lizard = 0xA786, - RGB565_Green_munsell = 0x054E, - RGB565_Green_ncs = 0x04ED, - RGB565_Green_pantone = 0x0568, - RGB565_Green_pigment = 0x052A, - RGB565_Green_ryb = 0x6566, - RGB565_Green_sheen = 0x6D74, - RGB565_Green_web = 0x0400, - RGB565_Green_x11_color_wheel = 0x07E0, - RGB565_Green_yellow = 0xAFE6, - RGB565_Green_yellow_crayola = 0xEF32, - RGB565_Greenish_yellow = 0xEF4C, - RGB565_Grullo = 0xACD0, - RGB565_Gunmetal = 0x29A7, - RGB565_Han_blue = 0x4379, - RGB565_Han_purple = 0x50DE, - RGB565_Hansa_yellow = 0xE6AD, - RGB565_Harlequin = 0x47E0, - RGB565_Harvest_gold = 0xDC80, - RGB565_Heat_wave = 0xFBC0, - RGB565_Heliotrope = 0xDB9F, - RGB565_Heliotrope_gray = 0xACD5, - RGB565_Hollywood_cerise = 0xF014, - RGB565_Honeydew = 0xEFFD, - RGB565_Honolulu_blue = 0x03B6, - RGB565_Hookers_green = 0x4BCD, - RGB565_Hot_magenta = 0xF8F9, - RGB565_Hot_pink = 0xFB56, - RGB565_Hunter_green = 0x32E7, - RGB565_Hunyadi_yellow = 0xE548, - RGB565_Ice_blue = 0x9FFF, - RGB565_Iceberg = 0x753A, - RGB565_Icterine = 0xFFAB, - RGB565_Illuminating_emerald = 0x348E, - RGB565_Imperial_red = 0xE947, - RGB565_Inchworm = 0xB74B, - RGB565_Independence = 0x4A8D, - RGB565_India_green = 0x1441, - RGB565_Indian_red = 0xCAEB, - RGB565_Indian_yellow = 0xE54B, - RGB565_Indigo = 0x4810, - RGB565_Indigo_dye = 0x020D, - RGB565_International_klein_blue = 0x1051, - RGB565_International_orange = 0xFA80, - RGB565_International_orange_aerospace = 0xFA80, - RGB565_International_orange_engineering = 0xB8A1, - RGB565_International_orange_golden_gate_bridge = 0xB9A5, - RGB565_Iris = 0x5A99, - RGB565_Irresistible = 0xB22D, - RGB565_Isabelline = 0xF77D, - RGB565_Islamic_green = 0x0480, - RGB565_Italian_sky_blue = 0xB7FF, - RGB565_Ivory = 0xFFFD, - RGB565_Jade = 0x054D, - RGB565_Japanese_carmine = 0x9946, - RGB565_Japanese_violet = 0x598A, - RGB565_Jasmine = 0xF6EF, - RGB565_Jasper = 0xCAA8, - RGB565_Jazzberry_jam = 0xA06B, - RGB565_Jet = 0x31A6, - RGB565_Jonquil = 0xF643, - RGB565_Jordy_blue = 0x8DDD, - RGB565_June_bud = 0xBECB, - RGB565_Jungle_green = 0x2D50, - RGB565_Kelly_green = 0x4DC3, - RGB565_Keppel = 0x3D73, - RGB565_Key_lime = 0xE791, - RGB565_Khaki = 0xC572, - RGB565_Khaki_web = 0xC572, - RGB565_Khaki_x11_light_khaki = 0xEF31, - RGB565_Kobe = 0x8963, - RGB565_Kobi = 0xE4F8, - RGB565_Kobicha = 0x6A24, - RGB565_Kombu_green = 0x3206, - RGB565_Ksu_purple = 0x5151, - RGB565_Languid_lavender = 0xD65B, - RGB565_Lapis_lazuli = 0x2B13, - RGB565_Laser_lemon = 0xFFEC, - RGB565_Laurel_green = 0xADD3, - RGB565_Lava = 0xC884, - RGB565_Lavender = 0xB3FB, - RGB565_Lavender_blue = 0xCE5F, - RGB565_Lavender_blush = 0xFF7E, - RGB565_Lavender_floral = 0xB3FB, - RGB565_Lavender_gray = 0xC619, - RGB565_Lavender_pink = 0xFD7A, - RGB565_Lavender_web = 0xE73E, - RGB565_Lawn_green = 0x7FC0, - RGB565_Lemon = 0xFFA0, - RGB565_Lemon_chiffon = 0xFFD9, - RGB565_Lemon_crayola = 0xFFE0, - RGB565_Lemon_curry = 0xCD04, - RGB565_Lemon_glacier = 0xFFE0, - RGB565_Lemon_meringue = 0xF757, - RGB565_Lemon_yellow = 0xFF8A, - RGB565_Lemon_yellow_crayola = 0xFFF3, - RGB565_Liberty = 0x52D4, - RGB565_Licorice = 0x1882, - RGB565_Light_blue = 0xAEBC, - RGB565_Light_coral = 0xEC10, - RGB565_Light_cornflower_blue = 0x965C, - RGB565_Light_cyan = 0xDFFF, - RGB565_Light_deep_pink = 0xFAF9, - RGB565_Light_french_beige = 0xC56F, - RGB565_Light_goldenrod_yellow = 0xF7DA, - RGB565_Light_gray = 0xD69A, - RGB565_Light_green = 0x9772, - RGB565_Light_hot_pink = 0xFD9B, - RGB565_Light_orange = 0xFEB6, - RGB565_Light_periwinkle = 0xC65B, - RGB565_Light_pink = 0xFDB7, - RGB565_Light_red = 0xFBEF, - RGB565_Light_salmon = 0xFD0F, - RGB565_Light_sea_green = 0x2595, - RGB565_Light_sky_blue = 0x867E, - RGB565_Light_slate_gray = 0x7453, - RGB565_Light_steel_blue = 0xAE1B, - RGB565_Light_yellow = 0xFFFB, - RGB565_Lilac = 0xC518, - RGB565_Lilac_luster = 0xACD5, - RGB565_Lime_color_wheel = 0xBFE0, - RGB565_Lime_green = 0x3666, - RGB565_Lime_web_x11_green = 0x07E0, - RGB565_Lincoln_green = 0x1AC1, - RGB565_Linen = 0xF77C, - RGB565_Lion = 0xBCCD, - RGB565_Liseran_purple = 0xDB74, - RGB565_Little_boy_blue = 0x6D1B, - RGB565_Liver = 0x6A69, - RGB565_Liver_chestnut = 0x93AA, - RGB565_Liver_dogs = 0xB365, - RGB565_Liver_organ = 0x6964, - RGB565_Livid = 0x64D9, - RGB565_Lust = 0xE104, - RGB565_Macaroni_and_cheese = 0xFDF1, - RGB565_Madder = 0xA004, - RGB565_Madder_lake = 0xC9A7, - RGB565_Magenta = 0xF81F, - RGB565_Magenta_additive_secondary = 0xF81F, - RGB565_Magenta_crayola = 0xF2B4, - RGB565_Magenta_dye = 0xC90F, - RGB565_Magenta_haze = 0x9A2E, - RGB565_Magenta_pantone = 0xCA0F, - RGB565_Magenta_process = 0xF812, - RGB565_Magenta_subtractive_primary = 0xF812, - RGB565_Magic_mint = 0xAF79, - RGB565_Magnolia = 0xEF3A, - RGB565_Mahogany = 0xBA00, - RGB565_Maize = 0xFF4B, - RGB565_Maize_crayola = 0xEE29, - RGB565_Majorelle_blue = 0x629B, - RGB565_Malachite = 0x0ECA, - RGB565_Manatee = 0x94D5, - RGB565_Mandarin = 0xF3C9, - RGB565_Mango = 0xFDE0, - RGB565_Mango_tango = 0xFC08, - RGB565_Mantis = 0x760C, - RGB565_Mardi_gras = 0x8810, - RGB565_Marengo = 0x4ACC, - RGB565_Marigold = 0xE504, - RGB565_Maroon = 0x8000, - RGB565_Maroon_crayola = 0xC109, - RGB565_Maroon_web = 0x8000, - RGB565_Maroon_x11 = 0xA98C, - RGB565_Mauve = 0xDD7F, - RGB565_Mauve_mallow = 0xDD7F, - RGB565_Mauve_taupe = 0x92ED, - RGB565_Mauvelous = 0xECD5, - RGB565_Maximum_blue = 0x4D59, - RGB565_Maximum_blue_green = 0x35F7, - RGB565_Maximum_blue_purple = 0xAD5C, - RGB565_Maximum_green = 0x5C66, - RGB565_Maximum_green_yellow = 0xD72A, - RGB565_Maximum_purple = 0x71B0, - RGB565_Maximum_red = 0xD104, - RGB565_Maximum_red_purple = 0xA1CF, - RGB565_Maximum_yellow = 0xF7C7, - RGB565_Maximum_yellow_red = 0xEDC9, - RGB565_May_green = 0x4C88, - RGB565_Maya_blue = 0x761F, - RGB565_Medium_aquamarine = 0x66F5, - RGB565_Medium_blue = 0x0019, - RGB565_Medium_candy_apple_red = 0xD825, - RGB565_Medium_carmine = 0xAA06, - RGB565_Medium_champagne = 0xF735, - RGB565_Medium_gray = 0xBDF7, - RGB565_Medium_orchid = 0xBABA, - RGB565_Medium_purple = 0x939B, - RGB565_Medium_sea_green = 0x3D8E, - RGB565_Medium_slate_blue = 0x7B5D, - RGB565_Medium_spring_green = 0x07D3, - RGB565_Medium_turquoise = 0x4E99, - RGB565_Medium_violet_red = 0xC0B0, - RGB565_Mellow_apricot = 0xF5AF, - RGB565_Mellow_yellow = 0xF6EF, - RGB565_Melon = 0xFDD5, - RGB565_Metallic_gold = 0xD567, - RGB565_Metallic_seaweed = 0x0BF1, - RGB565_Metallic_sunburst = 0x9BE7, - RGB565_Mexican_pink = 0xE00F, - RGB565_Middle_blue = 0x7E9C, - RGB565_Middle_blue_green = 0x8ED9, - RGB565_Middle_blue_purple = 0x8B97, - RGB565_Middle_green = 0x4C6B, - RGB565_Middle_green_yellow = 0xADEC, - RGB565_Middle_grey = 0x8C30, - RGB565_Middle_purple = 0xD416, - RGB565_Middle_red = 0xE46E, - RGB565_Middle_red_purple = 0xA2AA, - RGB565_Middle_yellow = 0xFF40, - RGB565_Middle_yellow_red = 0xED8E, - RGB565_Midnight = 0x712E, - RGB565_Midnight_blue = 0x18CE, - RGB565_Midnight_green = 0x026A, - RGB565_Midnight_green_eagle_green = 0x024A, - RGB565_Mikado_yellow = 0xFE01, - RGB565_Mimi_pink = 0xFEDC, - RGB565_Mindaro = 0xE7D1, - RGB565_Ming = 0x3BAF, - RGB565_Minion_yellow = 0xF6EA, - RGB565_Mint = 0x4591, - RGB565_Mint_cream = 0xF7FE, - RGB565_Mint_green = 0x97D2, - RGB565_Misty_moss = 0xBD8E, - RGB565_Misty_rose = 0xFF1B, - RGB565_Mode_beige = 0x9383, - RGB565_Moonstone = 0x3D57, - RGB565_Morning_blue = 0x8D13, - RGB565_Moss_green = 0x8CCB, - RGB565_Mountain_meadow = 0x35D1, - RGB565_Mountbatten_pink = 0x9BD1, - RGB565_Msu_green = 0x1A27, - RGB565_Mulberry = 0xC271, - RGB565_Mulberry_crayola = 0xC293, - RGB565_Mustard = 0xFECB, - RGB565_Myrtle_green = 0x33CE, - RGB565_Mystic = 0xD290, - RGB565_Mystic_maroon = 0xAA2F, - RGB565_Nadeshiko_pink = 0xF578, - RGB565_Naples_yellow = 0xF6CB, - RGB565_Navajo_white = 0xFEF5, - RGB565_Navy_blue = 0x0010, - RGB565_Navy_blue_crayola = 0x1BBA, - RGB565_Ndhu_green = 0x12E6, - RGB565_Neon_blue = 0x4A7F, - RGB565_Neon_carrot = 0xFD08, - RGB565_Neon_fuchsia = 0xFA0C, - RGB565_Neon_green = 0x3FE2, - RGB565_New_york_pink = 0xD40F, - RGB565_Nickel = 0x73AE, - RGB565_Non_photo_blue = 0xA6FD, - RGB565_Northwestern_purple = 0x4950, - RGB565_Nyanza = 0xE7FB, - RGB565_Ocean_blue = 0x5216, - RGB565_Ocean_green = 0x4DF2, - RGB565_Ochre = 0xCBA4, - RGB565_Old_burgundy = 0x4186, - RGB565_Old_gold = 0xCDA7, - RGB565_Old_lace = 0xFFBC, - RGB565_Old_lavender = 0x7B4F, - RGB565_Old_mauve = 0x6989, - RGB565_Old_rose = 0xBC10, - RGB565_Old_silver = 0x8430, - RGB565_Olive = 0x8400, - RGB565_Olive_drab_3 = 0x6C64, - RGB565_Olive_drab_7 = 0x39A4, - RGB565_Olive_green = 0xB58B, - RGB565_Olive_ral = 0x39E7, - RGB565_Olivine = 0x9DCE, - RGB565_Onyx = 0x31C7, - RGB565_Opal = 0xA617, - RGB565_Opera_mauve = 0xB434, - RGB565_Orange = 0xFBE0, - RGB565_Orange_color_wheel = 0xFC00, - RGB565_Orange_crayola = 0xFBA7, - RGB565_Orange_gs = 0xE300, - RGB565_Orange_pantone = 0xFAC0, - RGB565_Orange_peel = 0xFCE0, - RGB565_Orange_red = 0xFB44, - RGB565_Orange_red_crayola = 0xFAA9, - RGB565_Orange_soda = 0xF2C7, - RGB565_Orange_web = 0xFD20, - RGB565_Orange_web_color = 0xFD20, - RGB565_Orange_yellow = 0xF5E4, - RGB565_Orange_yellow_crayola = 0xF6AD, - RGB565_Orchid = 0xDB9A, - RGB565_Orchid_crayola = 0xDCFA, - RGB565_Orchid_pink = 0xEDF9, - RGB565_Ou_crimson_red = 0x80A3, - RGB565_Outer_space = 0x4249, - RGB565_Outer_space_crayola = 0x29C7, - RGB565_Outrageous_orange = 0xFB69, - RGB565_Oxblood = 0x4800, - RGB565_Oxford_blue = 0x0109, - RGB565_Pacific_blue = 0x1D58, - RGB565_Pakistan_green = 0x0320, - RGB565_Palatinate = 0x712D, - RGB565_Palatinate_purple = 0x694C, - RGB565_Pale_aqua = 0xBE9C, - RGB565_Pale_azure = 0x869E, - RGB565_Pale_cerulean = 0x9E1B, - RGB565_Pale_dogwood = 0xEE78, - RGB565_Pale_green = 0x97D2, - RGB565_Pale_pink = 0xF659, - RGB565_Pale_purple = 0xF73E, - RGB565_Pale_purple_pantone = 0xF73E, - RGB565_Pale_silver = 0xC5F7, - RGB565_Pale_spring_bud = 0xEF57, - RGB565_Pansy_purple = 0x78C9, - RGB565_Paolo_veronese_green = 0x04CF, - RGB565_Papaya_whip = 0xFF7A, - RGB565_Paradise_pink = 0xE1EC, - RGB565_Parchment = 0xEF5A, - RGB565_Paris_green = 0x562F, - RGB565_Pastel_pink = 0xDD34, - RGB565_Patriarch = 0x8010, - RGB565_Paynes_grey = 0x534F, - RGB565_Peach = 0xFF36, - RGB565_Peach_crayola = 0xFE54, - RGB565_Peach_puff = 0xFED6, - RGB565_Pear = 0xCF06, - RGB565_Pearly_purple = 0xB354, - RGB565_Periwinkle = 0xCE5F, - RGB565_Periwinkle_crayola = 0xC67C, - RGB565_Permanent_geranium_lake = 0xD965, - RGB565_Persian_blue = 0x19D7, - RGB565_Persian_green = 0x0532, - RGB565_Persian_indigo = 0x308F, - RGB565_Persian_orange = 0xD48B, - RGB565_Persian_pink = 0xF3F7, - RGB565_Persian_plum = 0x70E3, - RGB565_Persian_red = 0xC9A6, - RGB565_Persian_rose = 0xF954, - RGB565_Persimmon = 0xEAC0, - RGB565_Peru = 0xCC28, - RGB565_Pewter_blue = 0x8D56, - RGB565_Phlox = 0xD81F, - RGB565_Phthalo_blue = 0x0091, - RGB565_Phthalo_green = 0x11A4, - RGB565_Picotee_blue = 0x3150, - RGB565_Picton_blue = 0x459C, - RGB565_Pictorial_carmine = 0xC069, - RGB565_Piggy_pink = 0xFEFC, - RGB565_Pine_green = 0x03CD, - RGB565_Pine_tree = 0x2984, - RGB565_Pink = 0xFDF9, - RGB565_Pink_flamingo = 0xFBBF, - RGB565_Pink_gs = 0xF5F7, - RGB565_Pink_lace = 0xFEFE, - RGB565_Pink_lavender = 0xDD99, - RGB565_Pink_pantone = 0xD252, - RGB565_Pink_sherbet = 0xF474, - RGB565_Pistachio = 0x962E, - RGB565_Platinum = 0xE71B, - RGB565_Plum = 0x8A30, - RGB565_Plum_crayola = 0x818F, - RGB565_Plum_web = 0xDD1B, - RGB565_Plump_purple = 0x5A36, - RGB565_Polished_pine = 0x5D32, - RGB565_Polynesian_blue = 0x2272, - RGB565_Pomp_and_power = 0x8311, - RGB565_Popstar = 0xBA8C, - RGB565_Portland_orange = 0xFAC7, - RGB565_Powder_blue = 0xAEFC, - RGB565_Princeton_orange = 0xEBE5, - RGB565_Process_yellow = 0xFF60, - RGB565_Prune = 0x70E3, - RGB565_Prussian_blue = 0x018A, - RGB565_Psychedelic_purple = 0xD81F, - RGB565_Puce = 0xCC53, - RGB565_Pullman_brown_ups_brown = 0x6203, - RGB565_Pumpkin = 0xFBA3, - RGB565_Purple = 0x8010, - RGB565_Purple_htmlcss_color = 0x8010, - RGB565_Purple_mountain_majesty = 0x93D6, - RGB565_Purple_munsell = 0x9818, - RGB565_Purple_navy = 0x4A90, - RGB565_Purple_pizzazz = 0xFA7B, - RGB565_Purple_plum = 0x9A96, - RGB565_Purple_web = 0x8010, - RGB565_Purple_x11 = 0x991D, - RGB565_Purple_x11_color = 0x991D, - RGB565_Purpureus = 0x9A75, - RGB565_Queen_blue = 0x4352, - RGB565_Queen_pink = 0xE65A, - RGB565_Quick_silver = 0xA534, - RGB565_Quinacridone_magenta = 0x988A, - RGB565_Radical_red = 0xF9AB, - RGB565_Raisin_black = 0x2104, - RGB565_Rajah = 0xFD4C, - RGB565_Raspberry = 0xE06B, - RGB565_Raspberry_glace = 0x92ED, - RGB565_Raspberry_rose = 0xB22D, - RGB565_Raw_sienna = 0xD44B, - RGB565_Raw_umber = 0x8328, - RGB565_Razzle_dazzle_rose = 0xF9B9, - RGB565_Razzmatazz = 0xE12D, - RGB565_Razzmic_berry = 0x8A70, - RGB565_Rebecca_purple = 0x61B3, - RGB565_Red = 0xF800, - RGB565_Red_brown = 0xA145, - RGB565_Red_cmyk_pigment_red = 0xE8E4, - RGB565_Red_crayola = 0xE909, - RGB565_Red_munsell = 0xE807, - RGB565_Red_ncs = 0xC006, - RGB565_Red_orange = 0xFAA9, - RGB565_Red_orange_color_wheel = 0xFA20, - RGB565_Red_orange_crayola = 0xFB44, - RGB565_Red_pantone = 0xE947, - RGB565_Red_pigment = 0xE8E4, - RGB565_Red_purple = 0xE00F, - RGB565_Red_rgb = 0xF800, - RGB565_Red_ryb = 0xF942, - RGB565_Red_salsa = 0xF9C9, - RGB565_Red_violet = 0xC0B0, - RGB565_Red_violet_color_wheel = 0x9168, - RGB565_Red_violet_crayola = 0xBA31, - RGB565_Redwood = 0xA2CA, - RGB565_Resolution_blue = 0x0130, - RGB565_Rhythm = 0x73B2, - RGB565_Rich_black = 0x0208, - RGB565_Rich_black_fogra29 = 0x0062, - RGB565_Rich_black_fogra39 = 0x0000, - RGB565_Rifle_green = 0x4267, - RGB565_Robin_egg_blue = 0x0659, - RGB565_Rocket_metallic = 0x8BF1, - RGB565_Rojo = 0xE005, - RGB565_Rojo_spanish_red = 0xA880, - RGB565_Roman_silver = 0x8452, - RGB565_Rose = 0xF80F, - RGB565_Rose_bonbon = 0xF213, - RGB565_Rose_dust = 0x9AED, - RGB565_Rose_ebony = 0x6A49, - RGB565_Rose_madder = 0xE127, - RGB565_Rose_pink = 0xFB39, - RGB565_Rose_pompadour = 0xEBD3, - RGB565_Rose_quartz = 0xACD5, - RGB565_Rose_red = 0xC0EA, - RGB565_Rose_taupe = 0x92EB, - RGB565_Rose_vale = 0xAA6A, - RGB565_Rosewood = 0x6001, - RGB565_Rosso_corsa = 0xD000, - RGB565_Rosy_brown = 0xBC71, - RGB565_Royal_blue_dark = 0x012C, - RGB565_Royal_blue_light = 0x435B, - RGB565_Royal_blue_traditional = 0x012C, - RGB565_Royal_blue_web_color = 0x435B, - RGB565_Royal_purple = 0x7A95, - RGB565_Royal_yellow = 0xF6CB, - RGB565_Ruber = 0xCA2E, - RGB565_Rubine_red = 0xC80A, - RGB565_Ruby = 0xD88C, - RGB565_Ruby_red = 0x9884, - RGB565_Ruddy_blue = 0x755B, - RGB565_Rufous = 0xA0E1, - RGB565_Russet = 0x8223, - RGB565_Russian_green = 0x6C8D, - RGB565_Russian_violet = 0x30C9, - RGB565_Rust = 0xB202, - RGB565_Rusty_red = 0xD968, - RGB565_Sacramento_state_green = 0x01C5, - RGB565_Saddle_brown = 0x8A22, - RGB565_Safety_orange = 0xFBC0, - RGB565_Safety_orange_blaze_orange = 0xFB20, - RGB565_Safety_yellow = 0xEE80, - RGB565_Saffron = 0xF606, - RGB565_Sage = 0xBDB1, - RGB565_Salmon = 0xF40E, - RGB565_Salmon_pink = 0xFC94, - RGB565_Sand = 0xC590, - RGB565_Sand_dune = 0x9383, - RGB565_Sandy_brown = 0xF52C, - RGB565_Sap_green = 0x53E5, - RGB565_Sapphire = 0x092D, - RGB565_Sapphire_blue = 0x0334, - RGB565_Sapphire_crayola = 0x0334, - RGB565_Satin_sheen_gold = 0xCD06, - RGB565_Savoy_blue = 0x4B19, - RGB565_Scarlet = 0xF920, - RGB565_Schauss_pink = 0xFC95, - RGB565_School_bus_yellow = 0xFEA0, - RGB565_Screamin_green = 0x67EC, - RGB565_Sea_green = 0x344B, - RGB565_Sea_green_crayola = 0x07F9, - RGB565_Seal_brown = 0x5921, - RGB565_Seashell = 0xFFBD, - RGB565_Selective_yellow = 0xFDC0, - RGB565_Sepia = 0x7202, - RGB565_Sgbus_green = 0x56E6, - RGB565_Shadow = 0x8BCB, - RGB565_Shadow_blue = 0x7454, - RGB565_Shamrock_green = 0x04EC, - RGB565_Sheen_green = 0x8E80, - RGB565_Shimmering_blush = 0xD432, - RGB565_Shiny_shamrock = 0x652F, - RGB565_Shocking_pink = 0xF897, - RGB565_Shocking_pink_crayola = 0xFB7F, - RGB565_Shocking_pink_crayola_formerly_known_as_ultra_pink = 0xFB7F, - RGB565_Sienna = 0x8963, - RGB565_Silver = 0xBDF7, - RGB565_Silver_chalice = 0xAD55, - RGB565_Silver_crayola = 0xC5F7, - RGB565_Silver_lake_blue = 0x5C57, - RGB565_Silver_metallic = 0xAD55, - RGB565_Silver_pink = 0xC575, - RGB565_Silver_sand = 0xBE18, - RGB565_Sinopia = 0xCA01, - RGB565_Sizzling_red = 0xF9CA, - RGB565_Sizzling_sunrise = 0xFEC0, - RGB565_Skobeloff = 0x03CE, - RGB565_Sky_blue = 0x867D, - RGB565_Sky_blue_crayola = 0x86DD, - RGB565_Sky_magenta = 0xCB95, - RGB565_Slate_blue = 0x6AD9, - RGB565_Slate_gray = 0x7412, - RGB565_Slimy_green = 0x2CA3, - RGB565_Smitten = 0xC210, - RGB565_Smokey_topaz = 0x8142, - RGB565_Smoky_black = 0x1061, - RGB565_Snow = 0xFFDE, - RGB565_Solid_pink = 0x89C8, - RGB565_Sonic_silver = 0x73AE, - RGB565_Space_cadet = 0x214A, - RGB565_Spanish_bistre = 0x83A6, - RGB565_Spanish_blue = 0x0397, - RGB565_Spanish_carmine = 0xC809, - RGB565_Spanish_gray = 0x94D2, - RGB565_Spanish_green = 0x048A, - RGB565_Spanish_orange = 0xE300, - RGB565_Spanish_pink = 0xF5F7, - RGB565_Spanish_red = 0xE005, - RGB565_Spanish_sky_blue = 0x07FF, - RGB565_Spanish_violet = 0x4950, - RGB565_Spanish_viridian = 0x03EB, - RGB565_Spring_bud = 0xA7C0, - RGB565_Spring_frost = 0x87E5, - RGB565_Spring_green = 0x07EF, - RGB565_Spring_green_crayola = 0xEF57, - RGB565_St_patricks_blue = 0x214F, - RGB565_Star_command_blue = 0x03D6, - RGB565_Steel_blue = 0x4C16, - RGB565_Steel_pink = 0xC9B9, - RGB565_Steel_teal = 0x6451, - RGB565_Stil_de_grain_yellow = 0xF6CB, - RGB565_Stone_gray = 0x9470, - RGB565_Straw = 0xE6CD, - RGB565_Strawberry = 0xF28A, - RGB565_Strawberry_blonde = 0xFC8C, - RGB565_Sugar_plum = 0x926E, - RGB565_Sunglow = 0xFE46, - RGB565_Sunray = 0xE54B, - RGB565_Sunset = 0xF6B4, - RGB565_Super_pink = 0xCB55, - RGB565_Sweet_brown = 0xA1C6, - RGB565_Syracuse_orange = 0xD220, - RGB565_Tan = 0xD591, - RGB565_Tan_crayola = 0xD4CD, - RGB565_Tang_blue = 0x02D9, - RGB565_Tangerine = 0xEC20, - RGB565_Tango_pink = 0xE38F, - RGB565_Tart_orange = 0xFA69, - RGB565_Taupe = 0x49E6, - RGB565_Taupe_gray = 0x8C31, - RGB565_Tea_green = 0xCF77, - RGB565_Tea_rose = 0xF40F, - RGB565_Tea_rose_red = 0xF618, - RGB565_Teal = 0x0410, - RGB565_Teal_blue = 0x3BB1, - RGB565_Telemagenta = 0xC9AE, - RGB565_Tenne = 0xCAA0, - RGB565_Terra_cotta = 0xDB8B, - RGB565_Thistle = 0xD5FA, - RGB565_Thulian_pink = 0xDB74, - RGB565_Tickle_me_pink = 0xFC55, - RGB565_Tiffany_blue = 0x86B9, - RGB565_Tigers_eye = 0xB343, - RGB565_Timberwolf = 0xDEBA, - RGB565_Titanium_yellow = 0xEF20, - RGB565_Tomato = 0xFB09, - RGB565_Tropical_rainforest = 0x03AB, - RGB565_True_blue = 0x2B58, - RGB565_Trypan_blue = 0x1836, - RGB565_Tufts_blue = 0x447B, - RGB565_Tumbleweed = 0xDD51, - RGB565_Turkey_red = 0xA880, - RGB565_Turquoise = 0x46F9, - RGB565_Turquoise_blue = 0x07FD, - RGB565_Turquoise_green = 0x9EB6, - RGB565_Turtle_green = 0x8CCB, - RGB565_Tuscan = 0xF6B4, - RGB565_Tuscan_brown = 0x6A67, - RGB565_Tuscan_red = 0x7A49, - RGB565_Tuscan_tan = 0xA3CB, - RGB565_Tuscany = 0xBCD3, - RGB565_Twilight_lavender = 0x8A4D, - RGB565_Tyrian_purple = 0x6007, - RGB565_Ua_blue = 0x01B5, - RGB565_Ua_red = 0xD009, - RGB565_Ultra_pink = 0xFB7F, - RGB565_Ultra_red = 0xFB70, - RGB565_Ultra_violet = 0x62B2, - RGB565_Ultramarine = 0x401F, - RGB565_Ultramarine_blue = 0x433E, - RGB565_Umber = 0x6289, - RGB565_Unbleached_silk = 0xFEF9, - RGB565_United_nations_blue = 0x4C9B, - RGB565_University_of_pennsylvania_blue = 0x010B, - RGB565_University_of_pennsylvania_red = 0x9800, - RGB565_Unmellow_yellow = 0xFFEC, - RGB565_Up_forest_green = 0x0224, - RGB565_Up_maroon = 0x7882, - RGB565_Upsdell_red = 0xA905, - RGB565_Uranian_blue = 0xAEDE, - RGB565_Usafa_blue = 0x0292, - RGB565_Ut_orange = 0xFC00, - RGB565_Van_dyke_brown = 0x6205, - RGB565_Vanilla = 0xF735, - RGB565_Vanilla_ice = 0xF475, - RGB565_Vegas_gold = 0xC58B, - RGB565_Venetian_red = 0xC043, - RGB565_Verdigris = 0x4595, - RGB565_Vermilion = 0xE206, - RGB565_Veronica = 0x991D, - RGB565_Violet = 0x781F, - RGB565_Violet_blue = 0x3256, - RGB565_Violet_blue_crayola = 0x7378, - RGB565_Violet_color_wheel = 0x781F, - RGB565_Violet_crayola = 0x91EF, - RGB565_Violet_gs = 0x4950, - RGB565_Violet_jtc = 0x598A, - RGB565_Violet_red = 0xF2B2, - RGB565_Violet_ryb = 0x8015, - RGB565_Violet_web = 0xEC1D, - RGB565_Violet_web_color = 0xEC1D, - RGB565_Viridian = 0x440D, - RGB565_Viridian_green = 0x04B2, - RGB565_Vista_blue = 0x7CFA, - RGB565_Vivid_burgundy = 0x98E6, - RGB565_Vivid_sky_blue = 0x065F, - RGB565_Vivid_tangerine = 0xFD11, - RGB565_Vivid_violet = 0x981F, - RGB565_Volt = 0xCFE0, - RGB565_Walnut_brown = 0x5A89, - RGB565_Warm_black = 0x0208, - RGB565_Wenge = 0x62AA, - RGB565_Wheat = 0xF6F6, - RGB565_White = 0xFFFF, - RGB565_White_smoke = 0xF7BE, - RGB565_Wild_blue_yonder = 0xA579, - RGB565_Wild_orchid = 0xD394, - RGB565_Wild_strawberry = 0xFA34, - RGB565_Wild_watermelon = 0xFB70, - RGB565_Windsor_tan = 0xA2A0, - RGB565_Wine = 0x7187, - RGB565_Wine_dregs = 0x6989, - RGB565_Winter_sky = 0xF80F, - RGB565_Wintergreen_dream = 0x544F, - RGB565_Wisteria = 0xC51B, - RGB565_Wood_brown = 0xBCCD, - RGB565_Xanadu = 0x742F, - RGB565_Xanthic = 0xEF61, - RGB565_Xanthous = 0xED86, - RGB565_Yale_blue = 0x01AD, - RGB565_Yale_blue_site_blue = 0x01AD, - RGB565_Yellow = 0xFFE0, - RGB565_Yellow_crayola = 0xFF30, - RGB565_Yellow_green = 0x9E66, - RGB565_Yellow_green_color_wheel = 0x3583, - RGB565_Yellow_green_crayola = 0xC710, - RGB565_Yellow_munsell = 0xEE40, - RGB565_Yellow_ncs = 0xFE80, - RGB565_Yellow_orange = 0xFD68, - RGB565_Yellow_orange_color_wheel = 0xFCA1, - RGB565_Yellow_pantone = 0xFEE0, - RGB565_Yellow_process = 0xFF60, - RGB565_Yellow_rgb_x11_yellow = 0xFFE0, - RGB565_Yellow_ryb = 0xFFE6, - RGB565_Yellow_sunshine = 0xFFA0, - RGB565_Yinmn_blue = 0x3292, - RGB565_Zaffre = 0x00B4, - RGB565_Zomp = 0x3D31, -} RGB_565_Colors; +typedef enum { + Absolute_zero = 0x0257, + Acid_green = 0xADE3, + Aero = 0x7DDC, + Aero_blue = 0xBF3A, + African_violet = 0xB437, + Air_force_blue = 0x5C54, + Air_superiority_blue = 0x7517, + Alabaster = 0xEF5B, + Alice_blue = 0xEFBF, + Alloy_orange = 0xC302, + Almond = 0xEEF9, + Amaranth = 0xE16A, + Amaranth_mp = 0x996D, + Amaranth_pink = 0xECF7, + Amaranth_purple = 0xA94A, + Amaranth_red = 0xD105, + Amazon = 0x3BCB, + Amber = 0xFDE0, + Amber_saeece = 0xFBE0, + Amethyst = 0x9B39, + Android_green = 0xA627, + Antique_brass = 0xCCAE, + Antique_bronze = 0x62E4, + Antique_fuchsia = 0x92F0, + Antique_ruby = 0x80E5, + Antique_white = 0xF75A, + Ao_english = 0x0400, + Apple_green = 0x8DA0, + Apricot = 0xFE76, + Aqua = 0x07FF, + Aquamarine = 0x7FFA, + Arctic_lime = 0xCFE2, + Argentinian_blue = 0x6D9D, + Army_green = 0x4AA4, + Artichoke = 0x8CAF, + Artichoke_green_pantone = 0x4B68, + Arylide_yellow = 0xE6AD, + Ash_gray = 0xB5F6, + Asparagus = 0x854D, + Atomic_tangerine = 0xFCCC, + Auburn = 0xA145, + Aureolin = 0xFF60, + Avocado = 0x5400, + Azure = 0x041F, + Azure_web = 0xEFFF, + Azure_x11web_color = 0xEFFF, + Baby_blue = 0x8E7D, + Baby_blue_eyes = 0xA65D, + Baby_pink = 0xF618, + Baby_powder = 0xFFFE, + Baker_miller_pink = 0xFC95, + Banana_mania = 0xF736, + Barbie_pink = 0xD8D0, + Barn_red = 0x7840, + Battleship_gray = 0x8430, + Battleship_grey = 0x8430, + Bdazzled_blue = 0x32D2, + Bean = 0x3860, + Beau_blue = 0xBE9C, + Beaver = 0x9C0E, + Beige = 0xF7BB, + Berkeley_blue = 0x018C, + Big_dip_oruby = 0x9928, + Bisque = 0xFF18, + Bistre = 0x3964, + Bistre_brown = 0x9383, + Bitter_lemon = 0xCEE2, + Bitter_lime = 0xBFE0, + Bittersweet = 0xFB6B, + Bittersweet_shimmer = 0xBA8A, + Black = 0x0000, + Black_bean = 0x3860, + Black_chocolate = 0x18C2, + Black_coffee = 0x3986, + Black_coral = 0x530D, + Black_olive = 0x39E7, + Black_shadows = 0xBD76, + Blanched_almond = 0xFF59, + Blast_off_bronze = 0xA38C, + Bleu_de_france = 0x347C, + Blizzard_blue = 0xAF3D, + Blond = 0xF777, + Blood_red = 0x6000, + Blue = 0x001F, + Blue_bell = 0xA519, + Blue_cmyk_pigment_blue = 0x31B3, + Blue_computer_web_color = 0x001F, + Blue_crayola = 0x23BF, + Blue_gray = 0x64D9, + Blue_green = 0x14D7, + Blue_green_color_wheel = 0x0A68, + Blue_jeans = 0x5D7D, + Blue_munsell = 0x0495, + Blue_ncs = 0x0437, + Blue_pantone = 0x00D4, + Blue_pigment = 0x31B3, + Blue_ryb = 0x025F, + Blue_sapphire = 0x1310, + Blue_violet = 0x897B, + Blue_violet_color_wheel = 0x48CF, + Blue_violet_crayola = 0x7337, + Blue_yonder = 0x5394, + Bluetiful = 0x3B5C, + Blush = 0xDAF0, + Bole = 0x7A27, + Bone = 0xE6D8, + Bottle_green = 0x0349, + Brandeis_blue = 0x039F, + Brandy = 0x8208, + Brick_red = 0xCA0A, + Bright_green = 0x67E0, + Bright_lilac = 0xD49D, + Bright_maroon = 0xC109, + Bright_navy_blue = 0x1BBA, + Bright_yellow_crayola = 0xFD44, + Brilliant_rose = 0xFAB4, + Brink_pink = 0xFB0F, + British_racing_green = 0x0204, + Bronze = 0xCBE6, + Brown = 0x9260, + Brown_sugar = 0xAB69, + Brunswick_green = 0x1A68, + Bubblegum_pink = 0xF412, + Bud_green = 0x7DAC, + Buff = 0xDD0D, + Burgundy = 0x8004, + Burlywood = 0xDDB0, + Burnished_brown = 0xA3CE, + Burnt_orange = 0xBAA0, + Burnt_sienna = 0xE3AA, + Burnt_umber = 0x89A4, + Butterscotch = 0xDCA8, + Byzantine = 0xB9B4, + Byzantium = 0x714C, + Cadet = 0x534E, + Cadet_blue = 0x64F3, + Cadet_blue_crayola = 0xAD98, + Cadet_gray = 0x9515, + Cadet_grey = 0x9515, + Cadmium_green = 0x0347, + Cadmium_orange = 0xEC25, + Cadmium_red = 0xE004, + Cadmium_yellow = 0xFFA0, + Cafe_au_lait = 0xA3CB, + Cafe_noir = 0x49A4, + Cambridge_blue = 0xA615, + Camel = 0xBCCD, + Cameo_pink = 0xEDD9, + Canary = 0xFFF3, + Canary_yellow = 0xFFF3, + Candy_apple_red = 0xF840, + Candy_pink = 0xE38F, + Cantaloupe_melon = 0xFDD6, + Capri = 0x05FF, + Caput_mortuum = 0x5944, + Cardinal = 0xC0E7, + Caribbean_current = 0x036D, + Caribbean_green = 0x0653, + Carmine = 0x9003, + Carmine_mp = 0xD008, + Carnation_pink = 0xFD38, + Carnelian = 0xB0E3, + Carolina_blue = 0x551A, + Carrot_orange = 0xEC84, + Castleton_green = 0x02A8, + Catawba = 0x71A8, + Cedar_chest = 0xC2C9, + Celadon = 0xAF15, + Celadon_blue = 0x03D4, + Celadon_green = 0x342F, + Celeste = 0xB7FF, + Celestial_blue = 0x4CB9, + Celtic_blue = 0x2359, + Cerise = 0xD98C, + Cerulean = 0x03D4, + Cerulean_blue = 0x2A97, + Cerulean_crayola = 0x255A, + Cerulean_frost = 0x6CD8, + Cg_blue = 0x03D4, + Cg_red = 0xD9E6, + Champagne = 0xF739, + Champagne_pink = 0xEEF9, + Charcoal = 0x3A2A, + Charleston_green = 0x2165, + Charm_pink = 0xE475, + Chartreuse_traditional = 0xDFE0, + Chartreuse_web = 0x7FE0, + Chefchaouen_blue = 0x4C7C, + Cherry_blossom_pink = 0xFDB8, + Chestnut = 0x9226, + Chilean_pink = 0xE617, + Chili_red = 0xD9E5, + China_pink = 0xDB74, + China_rose = 0xA28D, + Chinese_red = 0xA9C4, + Chinese_violet = 0x8311, + Chinese_yellow = 0xFD80, + Chocolate = 0x7A00, + Chocolate_cosmos = 0x5883, + Chocolate_traditional = 0x7A00, + Chocolate_web = 0xD344, + Chrome_yellow = 0xFD20, + Cinereous = 0x940F, + Cinnabar = 0xE266, + Cinnamon_satin = 0xCB0F, + Citrine = 0xE661, + Citron = 0x9D44, + Claret = 0x78C6, + Cobalt_blue = 0x0255, + Cocoa_brown = 0xD344, + Coffee = 0x6A67, + Columbia_blue = 0xB6DD, + Congo_pink = 0xF40F, + Cool_gray = 0x9497, + Cool_grey = 0x8C95, + Copper = 0xB386, + Copper_crayola = 0xDC4D, + Copper_penny = 0xAB6D, + Copper_red = 0xCB6A, + Copper_rose = 0x9B2C, + Coquelicot = 0xF9C0, + Coral = 0xFBEA, + Coral_pink = 0xF40F, + Cordovan = 0x8A08, + Corn = 0xFF4B, + Cornell_red = 0xB0E3, + Cornflower_blue = 0x64BD, + Cornsilk = 0xFFBB, + Cosmic_cobalt = 0x3171, + Cosmic_latte = 0xFFBC, + Cotton_candy = 0xFDDA, + Coyote_brown = 0x8307, + Cream = 0xFFF9, + Crimson = 0xD8A7, + Crimson_ua = 0x98E6, + Crystal = 0xA6BB, + Cultured = 0xF7BE, + Cyan = 0x07FF, + Cyan_additive_secondary = 0x07FF, + Cyan_process = 0x05BD, + Cyan_subtractive_primary = 0x05BD, + Cyber_grape = 0x5A0F, + Cyber_yellow = 0xFE80, + Cyclamen = 0xF374, + Dark_blue = 0x0011, + Dark_blue_gray = 0x6333, + Dark_brown = 0x5A06, + Dark_byzantium = 0x59CA, + Dark_cornflower_blue = 0x2A11, + Dark_cyan = 0x0451, + Dark_electric_blue = 0x534F, + Dark_goldenrod = 0xB421, + Dark_green = 0x0184, + Dark_green_x11 = 0x0320, + Dark_jungle_green = 0x1924, + Dark_khaki = 0xBDAD, + Dark_lava = 0x49E6, + Dark_liver = 0x526A, + Dark_liver_horses = 0x51E7, + Dark_magenta = 0x8811, + Dark_moss_green = 0x4AE4, + Dark_olive_green = 0x5346, + Dark_orange = 0xFC60, + Dark_orchid = 0x9999, + Dark_pastel_green = 0x05E7, + Dark_purple = 0x30C6, + Dark_red = 0x8800, + Dark_salmon = 0xE4AF, + Dark_sea_green = 0x8DD1, + Dark_sienna = 0x38A2, + Dark_sky_blue = 0x8DFA, + Dark_slate_blue = 0x49F1, + Dark_slate_gray = 0x328A, + Dark_spring_green = 0x1B88, + Dark_turquoise = 0x0679, + Dark_violet = 0x901A, + Dartmouth_green = 0x0387, + Davys_gray = 0x52AA, + Davys_grey = 0x52AA, + Deep_cerise = 0xD990, + Deep_champagne = 0xF6B4, + Deep_chestnut = 0xB269, + Deep_jungle_green = 0x0269, + Deep_pink = 0xF8B2, + Deep_saffron = 0xFCC6, + Deep_sky_blue = 0x05FF, + Deep_space_sparkle = 0x4B2D, + Deep_taupe = 0x7AEC, + Delft_blue = 0x218B, + Denim = 0x1B17, + Denim_blue = 0x2236, + Desert = 0xBCCD, + Desert_sand = 0xEE55, + Dim_gray = 0x6B4D, + Dodger_blue = 0x249F, + Dogwood_rose = 0xD0CD, + Drab = 0x9383, + Duck_blue = 0x03B2, + Duke_blue = 0x0013, + Dutch_white = 0xEEF7, + Earth_yellow = 0xDD4C, + Ebony = 0x52EA, + Ecru = 0xC590, + Eerie_black = 0x18E3, + Eggplant = 0x620A, + Eggshell = 0xEF5A, + Egyptian_blue = 0x11B4, + Eigengrau = 0x18A4, + Electric_blue = 0x7FDF, + Electric_green = 0x07E0, + Electric_indigo = 0x681F, + Electric_lime = 0xCFE0, + Electric_purple = 0xB81F, + Electric_violet = 0x881F, + Emerald = 0x562F, + Eminence = 0x6990, + English_green = 0x1A68, + English_lavender = 0xB412, + English_red = 0xAA6A, + English_vermillion = 0xCA49, + English_violet = 0x51EB, + Erin = 0x07E8, + Eton_blue = 0x9634, + Fairy_tale = 0xEE19, + Fallow = 0xBCCD, + Falu_red = 0x80C3, + Fandango = 0xB1B1, + Fandango_pink = 0xDA90, + Fashion_fuchsia = 0xF014, + Fawn = 0xE54E, + Feldgrau = 0x4AEA, + Fern = 0x75CF, + Fern_green = 0x53C8, + Field_drab = 0x6AA4, + Fiery_rose = 0xFAAE, + Fire_brick = 0xB104, + Fire_engine_red = 0xC905, + Fire_opal = 0xE2E9, + Firebrick = 0xB104, + Flame = 0xDAC4, + Flax = 0xEED0, + Flirt = 0xA00D, + Floral_white = 0xFFDD, + Fluorescent_blue = 0x1F9D, + Forest_green = 0x2444, + Forest_green_crayola = 0x652E, + Forest_green_traditional = 0x0224, + Forest_green_web = 0x2444, + French_beige = 0xA3CB, + French_bistre = 0x8369, + French_blue = 0x0397, + French_fuchsia = 0xFA12, + French_lilac = 0x8311, + French_lime = 0x9FE7, + French_mauve = 0xD39A, + French_pink = 0xFB73, + French_raspberry = 0xC169, + French_rose = 0xF251, + French_sky_blue = 0x75BF, + French_violet = 0x8839, + Frostbite = 0xE1B4, + Fuchsia = 0xF81F, + Fuchsia_crayola = 0xBAB7, + Fuchsia_purple = 0xC9CF, + Fuchsia_rose = 0xC22E, + Fulvous = 0xE420, + Fuzzy_wuzzy = 0x8204, + Gainsboro = 0xDEDB, + Gamboge = 0xE4C2, + Garnet = 0x71A6, + Generic_viridian = 0x03EC, + Ghost_white = 0xF7BF, + Giants_orange = 0xFAC4, + Glaucous = 0x6416, + Glossy_grape = 0xAC96, + Go_green = 0x054C, + Gold = 0xA3E0, + Gold_crayola = 0xE5F1, + Gold_fusion = 0x83A9, + Gold_golden = 0xFEA0, + Gold_metallic = 0xD567, + Gold_web_golden = 0xFEA0, + Golden_brown = 0x9B23, + Golden_poppy = 0xFE00, + Golden_yellow = 0xFEE0, + Goldenrod = 0xDD24, + Granite_gray = 0x6B2D, + Granny_smith_apple = 0xA713, + Grape = 0x6974, + Gray_green = 0x5B8D, + Gray_web = 0x8410, + Gray_x11_gray = 0xBDF7, + Graygrey = 0x8410, + Green = 0x07E0, + Green_blue = 0x1336, + Green_blue_crayola = 0x2C38, + Green_crayola = 0x1D4F, + Green_cyan = 0x04CC, + Green_earth = 0xDEF2, + Green_htmlcss_color = 0x0400, + Green_lizard = 0xA786, + Green_munsell = 0x054E, + Green_ncs = 0x04ED, + Green_pantone = 0x0568, + Green_pigment = 0x052A, + Green_ryb = 0x6566, + Green_sheen = 0x6D74, + Green_web = 0x0400, + Green_x11_color_wheel = 0x07E0, + Green_yellow = 0xAFE6, + Green_yellow_crayola = 0xEF32, + Greenish_yellow = 0xEF4C, + Grullo = 0xACD0, + Gunmetal = 0x29A7, + Han_blue = 0x4379, + Han_purple = 0x50DE, + Hansa_yellow = 0xE6AD, + Harlequin = 0x47E0, + Harvest_gold = 0xDC80, + Heat_wave = 0xFBC0, + Heliotrope = 0xDB9F, + Heliotrope_gray = 0xACD5, + Hollywood_cerise = 0xF014, + Honeydew = 0xEFFD, + Honolulu_blue = 0x03B6, + Hookers_green = 0x4BCD, + Hot_magenta = 0xF8F9, + Hot_pink = 0xFB56, + Hunter_green = 0x32E7, + Hunyadi_yellow = 0xE548, + Ice_blue = 0x9FFF, + Iceberg = 0x753A, + Icterine = 0xFFAB, + Illuminating_emerald = 0x348E, + Imperial_red = 0xE947, + Inchworm = 0xB74B, + Independence = 0x4A8D, + India_green = 0x1441, + Indian_red = 0xCAEB, + Indian_yellow = 0xE54B, + Indigo = 0x4810, + Indigo_dye = 0x020D, + International_klein_blue = 0x1051, + International_orange = 0xFA80, + International_orange_aerospace = 0xFA80, + International_orange_engineering = 0xB8A1, + International_orange_golden_gate_bridge = 0xB9A5, + Iris = 0x5A99, + Irresistible = 0xB22D, + Isabelline = 0xF77D, + Islamic_green = 0x0480, + Italian_sky_blue = 0xB7FF, + Ivory = 0xFFFD, + Jade = 0x054D, + Japanese_carmine = 0x9946, + Japanese_violet = 0x598A, + Jasmine = 0xF6EF, + Jasper = 0xCAA8, + Jazzberry_jam = 0xA06B, + Jet = 0x31A6, + Jonquil = 0xF643, + Jordy_blue = 0x8DDD, + June_bud = 0xBECB, + Jungle_green = 0x2D50, + Kelly_green = 0x4DC3, + Keppel = 0x3D73, + Key_lime = 0xE791, + Khaki = 0xC572, + Khaki_web = 0xC572, + Khaki_x11_light_khaki = 0xEF31, + Kobe = 0x8963, + Kobi = 0xE4F8, + Kobicha = 0x6A24, + Kombu_green = 0x3206, + Ksu_purple = 0x5151, + Languid_lavender = 0xD65B, + Lapis_lazuli = 0x2B13, + Laser_lemon = 0xFFEC, + Laurel_green = 0xADD3, + Lava = 0xC884, + Lavender = 0xB3FB, + Lavender_blue = 0xCE5F, + Lavender_blush = 0xFF7E, + Lavender_floral = 0xB3FB, + Lavender_gray = 0xC619, + Lavender_pink = 0xFD7A, + Lavender_web = 0xE73E, + Lawn_green = 0x7FC0, + Lemon = 0xFFA0, + Lemon_chiffon = 0xFFD9, + Lemon_crayola = 0xFFE0, + Lemon_curry = 0xCD04, + Lemon_glacier = 0xFFE0, + Lemon_meringue = 0xF757, + Lemon_yellow = 0xFF8A, + Lemon_yellow_crayola = 0xFFF3, + Liberty = 0x52D4, + Licorice = 0x1882, + Light_blue = 0xAEBC, + Light_coral = 0xEC10, + Light_cornflower_blue = 0x965C, + Light_cyan = 0xDFFF, + Light_deep_pink = 0xFAF9, + Light_french_beige = 0xC56F, + Light_goldenrod_yellow = 0xF7DA, + Light_gray = 0xD69A, + Light_green = 0x9772, + Light_hot_pink = 0xFD9B, + Light_orange = 0xFEB6, + Light_periwinkle = 0xC65B, + Light_pink = 0xFDB7, + Light_red = 0xFBEF, + Light_salmon = 0xFD0F, + Light_sea_green = 0x2595, + Light_sky_blue = 0x867E, + Light_slate_gray = 0x7453, + Light_steel_blue = 0xAE1B, + Light_yellow = 0xFFFB, + Lilac = 0xC518, + Lilac_luster = 0xACD5, + Lime_color_wheel = 0xBFE0, + Lime_green = 0x3666, + Lime_web_x11_green = 0x07E0, + Lincoln_green = 0x1AC1, + Linen = 0xF77C, + Lion = 0xBCCD, + Liseran_purple = 0xDB74, + Little_boy_blue = 0x6D1B, + Liver = 0x6A69, + Liver_chestnut = 0x93AA, + Liver_dogs = 0xB365, + Liver_organ = 0x6964, + Livid = 0x64D9, + Lust = 0xE104, + Macaroni_and_cheese = 0xFDF1, + Madder = 0xA004, + Madder_lake = 0xC9A7, + Magenta = 0xF81F, + Magenta_additive_secondary = 0xF81F, + Magenta_crayola = 0xF2B4, + Magenta_dye = 0xC90F, + Magenta_haze = 0x9A2E, + Magenta_pantone = 0xCA0F, + Magenta_process = 0xF812, + Magenta_subtractive_primary = 0xF812, + Magic_mint = 0xAF79, + Magnolia = 0xEF3A, + Mahogany = 0xBA00, + Maize = 0xFF4B, + Maize_crayola = 0xEE29, + Majorelle_blue = 0x629B, + Malachite = 0x0ECA, + Manatee = 0x94D5, + Mandarin = 0xF3C9, + Mango = 0xFDE0, + Mango_tango = 0xFC08, + Mantis = 0x760C, + Mardi_gras = 0x8810, + Marengo = 0x4ACC, + Marigold = 0xE504, + Maroon = 0x8000, + Maroon_crayola = 0xC109, + Maroon_web = 0x8000, + Maroon_x11 = 0xA98C, + Mauve = 0xDD7F, + Mauve_mallow = 0xDD7F, + Mauve_taupe = 0x92ED, + Mauvelous = 0xECD5, + Maximum_blue = 0x4D59, + Maximum_blue_green = 0x35F7, + Maximum_blue_purple = 0xAD5C, + Maximum_green = 0x5C66, + Maximum_green_yellow = 0xD72A, + Maximum_purple = 0x71B0, + Maximum_red = 0xD104, + Maximum_red_purple = 0xA1CF, + Maximum_yellow = 0xF7C7, + Maximum_yellow_red = 0xEDC9, + May_green = 0x4C88, + Maya_blue = 0x761F, + Medium_aquamarine = 0x66F5, + Medium_blue = 0x0019, + Medium_candy_apple_red = 0xD825, + Medium_carmine = 0xAA06, + Medium_champagne = 0xF735, + Medium_gray = 0xBDF7, + Medium_orchid = 0xBABA, + Medium_purple = 0x939B, + Medium_sea_green = 0x3D8E, + Medium_slate_blue = 0x7B5D, + Medium_spring_green = 0x07D3, + Medium_turquoise = 0x4E99, + Medium_violet_red = 0xC0B0, + Mellow_apricot = 0xF5AF, + Mellow_yellow = 0xF6EF, + Melon = 0xFDD5, + Metallic_gold = 0xD567, + Metallic_seaweed = 0x0BF1, + Metallic_sunburst = 0x9BE7, + Mexican_pink = 0xE00F, + Middle_blue = 0x7E9C, + Middle_blue_green = 0x8ED9, + Middle_blue_purple = 0x8B97, + Middle_green = 0x4C6B, + Middle_green_yellow = 0xADEC, + Middle_grey = 0x8C30, + Middle_purple = 0xD416, + Middle_red = 0xE46E, + Middle_red_purple = 0xA2AA, + Middle_yellow = 0xFF40, + Middle_yellow_red = 0xED8E, + Midnight = 0x712E, + Midnight_blue = 0x18CE, + Midnight_green = 0x026A, + Midnight_green_eagle_green = 0x024A, + Mikado_yellow = 0xFE01, + Mimi_pink = 0xFEDC, + Mindaro = 0xE7D1, + Ming = 0x3BAF, + Minion_yellow = 0xF6EA, + Mint = 0x4591, + Mint_cream = 0xF7FE, + Mint_green = 0x97D2, + Misty_moss = 0xBD8E, + Misty_rose = 0xFF1B, + Mode_beige = 0x9383, + Moonstone = 0x3D57, + Morning_blue = 0x8D13, + Moss_green = 0x8CCB, + Mountain_meadow = 0x35D1, + Mountbatten_pink = 0x9BD1, + Msu_green = 0x1A27, + Mulberry = 0xC271, + Mulberry_crayola = 0xC293, + Mustard = 0xFECB, + Myrtle_green = 0x33CE, + Mystic = 0xD290, + Mystic_maroon = 0xAA2F, + Nadeshiko_pink = 0xF578, + Naples_yellow = 0xF6CB, + Navajo_white = 0xFEF5, + Navy_blue = 0x0010, + Navy_blue_crayola = 0x1BBA, + Ndhu_green = 0x12E6, + Neon_blue = 0x4A7F, + Neon_carrot = 0xFD08, + Neon_fuchsia = 0xFA0C, + Neon_green = 0x3FE2, + New_york_pink = 0xD40F, + Nickel = 0x73AE, + Non_photo_blue = 0xA6FD, + Northwestern_purple = 0x4950, + Nyanza = 0xE7FB, + Ocean_blue = 0x5216, + Ocean_green = 0x4DF2, + Ochre = 0xCBA4, + Old_burgundy = 0x4186, + Old_gold = 0xCDA7, + Old_lace = 0xFFBC, + Old_lavender = 0x7B4F, + Old_mauve = 0x6989, + Old_rose = 0xBC10, + Old_silver = 0x8430, + Olive = 0x8400, + Olive_drab_3 = 0x6C64, + Olive_drab_7 = 0x39A4, + Olive_green = 0xB58B, + Olive_ral = 0x39E7, + Olivine = 0x9DCE, + Onyx = 0x31C7, + Opal = 0xA617, + Opera_mauve = 0xB434, + Orange = 0xFBE0, + Orange_color_wheel = 0xFC00, + Orange_crayola = 0xFBA7, + Orange_gs = 0xE300, + Orange_pantone = 0xFAC0, + Orange_peel = 0xFCE0, + Orange_red = 0xFB44, + Orange_red_crayola = 0xFAA9, + Orange_soda = 0xF2C7, + Orange_web = 0xFD20, + Orange_web_color = 0xFD20, + Orange_yellow = 0xF5E4, + Orange_yellow_crayola = 0xF6AD, + Orchid = 0xDB9A, + Orchid_crayola = 0xDCFA, + Orchid_pink = 0xEDF9, + Ou_crimson_red = 0x80A3, + Outer_space = 0x4249, + Outer_space_crayola = 0x29C7, + Outrageous_orange = 0xFB69, + Oxblood = 0x4800, + Oxford_blue = 0x0109, + Pacific_blue = 0x1D58, + Pakistan_green = 0x0320, + Palatinate = 0x712D, + Palatinate_purple = 0x694C, + Pale_aqua = 0xBE9C, + Pale_azure = 0x869E, + Pale_cerulean = 0x9E1B, + Pale_dogwood = 0xEE78, + Pale_green = 0x97D2, + Pale_pink = 0xF659, + Pale_purple = 0xF73E, + Pale_purple_pantone = 0xF73E, + Pale_silver = 0xC5F7, + Pale_spring_bud = 0xEF57, + Pansy_purple = 0x78C9, + Paolo_veronese_green = 0x04CF, + Papaya_whip = 0xFF7A, + Paradise_pink = 0xE1EC, + Parchment = 0xEF5A, + Paris_green = 0x562F, + Pastel_pink = 0xDD34, + Patriarch = 0x8010, + Paynes_grey = 0x534F, + Peach = 0xFF36, + Peach_crayola = 0xFE54, + Peach_puff = 0xFED6, + Pear = 0xCF06, + Pearly_purple = 0xB354, + Periwinkle = 0xCE5F, + Periwinkle_crayola = 0xC67C, + Permanent_geranium_lake = 0xD965, + Persian_blue = 0x19D7, + Persian_green = 0x0532, + Persian_indigo = 0x308F, + Persian_orange = 0xD48B, + Persian_pink = 0xF3F7, + Persian_plum = 0x70E3, + Persian_red = 0xC9A6, + Persian_rose = 0xF954, + Persimmon = 0xEAC0, + Peru = 0xCC28, + Pewter_blue = 0x8D56, + Phlox = 0xD81F, + Phthalo_blue = 0x0091, + Phthalo_green = 0x11A4, + Picotee_blue = 0x3150, + Picton_blue = 0x459C, + Pictorial_carmine = 0xC069, + Piggy_pink = 0xFEFC, + Pine_green = 0x03CD, + Pine_tree = 0x2984, + Pink = 0xFDF9, + Pink_flamingo = 0xFBBF, + Pink_gs = 0xF5F7, + Pink_lace = 0xFEFE, + Pink_lavender = 0xDD99, + Pink_pantone = 0xD252, + Pink_sherbet = 0xF474, + Pistachio = 0x962E, + Platinum = 0xE71B, + Plum = 0x8A30, + Plum_crayola = 0x818F, + Plum_web = 0xDD1B, + Plump_purple = 0x5A36, + Polished_pine = 0x5D32, + Polynesian_blue = 0x2272, + Pomp_and_power = 0x8311, + Popstar = 0xBA8C, + Portland_orange = 0xFAC7, + Powder_blue = 0xAEFC, + Princeton_orange = 0xEBE5, + Process_yellow = 0xFF60, + Prune = 0x70E3, + Prussian_blue = 0x018A, + Psychedelic_purple = 0xD81F, + Puce = 0xCC53, + Pullman_brown_ups_brown = 0x6203, + Pumpkin = 0xFBA3, + Purple = 0x8010, + Purple_htmlcss_color = 0x8010, + Purple_mountain_majesty = 0x93D6, + Purple_munsell = 0x9818, + Purple_navy = 0x4A90, + Purple_pizzazz = 0xFA7B, + Purple_plum = 0x9A96, + Purple_web = 0x8010, + Purple_x11 = 0x991D, + Purple_x11_color = 0x991D, + Purpureus = 0x9A75, + Queen_blue = 0x4352, + Queen_pink = 0xE65A, + Quick_silver = 0xA534, + Quinacridone_magenta = 0x988A, + Radical_red = 0xF9AB, + Raisin_black = 0x2104, + Rajah = 0xFD4C, + Raspberry = 0xE06B, + Raspberry_glace = 0x92ED, + Raspberry_rose = 0xB22D, + Raw_sienna = 0xD44B, + Raw_umber = 0x8328, + Razzle_dazzle_rose = 0xF9B9, + Razzmatazz = 0xE12D, + Razzmic_berry = 0x8A70, + Rebecca_purple = 0x61B3, + Red = 0xF800, + Red_brown = 0xA145, + Red_cmyk_pigment_red = 0xE8E4, + Red_crayola = 0xE909, + Red_munsell = 0xE807, + Red_ncs = 0xC006, + Red_orange = 0xFAA9, + Red_orange_color_wheel = 0xFA20, + Red_orange_crayola = 0xFB44, + Red_pantone = 0xE947, + Red_pigment = 0xE8E4, + Red_purple = 0xE00F, + Red_rgb = 0xF800, + Red_ryb = 0xF942, + Red_salsa = 0xF9C9, + Red_violet = 0xC0B0, + Red_violet_color_wheel = 0x9168, + Red_violet_crayola = 0xBA31, + Redwood = 0xA2CA, + Resolution_blue = 0x0130, + Rhythm = 0x73B2, + Rich_black = 0x0208, + Rich_black_fogra29 = 0x0062, + Rich_black_fogra39 = 0x0000, + Rifle_green = 0x4267, + Robin_egg_blue = 0x0659, + Rocket_metallic = 0x8BF1, + Rojo = 0xE005, + Rojo_spanish_red = 0xA880, + Roman_silver = 0x8452, + Rose = 0xF80F, + Rose_bonbon = 0xF213, + Rose_dust = 0x9AED, + Rose_ebony = 0x6A49, + Rose_madder = 0xE127, + Rose_pink = 0xFB39, + Rose_pompadour = 0xEBD3, + Rose_quartz = 0xACD5, + Rose_red = 0xC0EA, + Rose_taupe = 0x92EB, + Rose_vale = 0xAA6A, + Rosewood = 0x6001, + Rosso_corsa = 0xD000, + Rosy_brown = 0xBC71, + Royal_blue_dark = 0x012C, + Royal_blue_light = 0x435B, + Royal_blue_traditional = 0x012C, + Royal_blue_web_color = 0x435B, + Royal_purple = 0x7A95, + Royal_yellow = 0xF6CB, + Ruber = 0xCA2E, + Rubine_red = 0xC80A, + Ruby = 0xD88C, + Ruby_red = 0x9884, + Ruddy_blue = 0x755B, + Rufous = 0xA0E1, + Russet = 0x8223, + Russian_green = 0x6C8D, + Russian_violet = 0x30C9, + Rust = 0xB202, + Rusty_red = 0xD968, + Sacramento_state_green = 0x01C5, + Saddle_brown = 0x8A22, + Safety_orange = 0xFBC0, + Safety_orange_blaze_orange = 0xFB20, + Safety_yellow = 0xEE80, + Saffron = 0xF606, + Sage = 0xBDB1, + Salmon = 0xF40E, + Salmon_pink = 0xFC94, + Sand = 0xC590, + Sand_dune = 0x9383, + Sandy_brown = 0xF52C, + Sap_green = 0x53E5, + Sapphire = 0x092D, + Sapphire_blue = 0x0334, + Sapphire_crayola = 0x0334, + Satin_sheen_gold = 0xCD06, + Savoy_blue = 0x4B19, + Scarlet = 0xF920, + Schauss_pink = 0xFC95, + School_bus_yellow = 0xFEA0, + Screamin_green = 0x67EC, + Sea_green = 0x344B, + Sea_green_crayola = 0x07F9, + Seal_brown = 0x5921, + Seashell = 0xFFBD, + Selective_yellow = 0xFDC0, + Sepia = 0x7202, + Sgbus_green = 0x56E6, + Shadow = 0x8BCB, + Shadow_blue = 0x7454, + Shamrock_green = 0x04EC, + Sheen_green = 0x8E80, + Shimmering_blush = 0xD432, + Shiny_shamrock = 0x652F, + Shocking_pink = 0xF897, + Shocking_pink_crayola = 0xFB7F, + Shocking_pink_crayola_formerly_known_as_ultra_pink = 0xFB7F, + Sienna = 0x8963, + Silver = 0xBDF7, + Silver_chalice = 0xAD55, + Silver_crayola = 0xC5F7, + Silver_lake_blue = 0x5C57, + Silver_metallic = 0xAD55, + Silver_pink = 0xC575, + Silver_sand = 0xBE18, + Sinopia = 0xCA01, + Sizzling_red = 0xF9CA, + Sizzling_sunrise = 0xFEC0, + Skobeloff = 0x03CE, + Sky_blue = 0x867D, + Sky_blue_crayola = 0x86DD, + Sky_magenta = 0xCB95, + Slate_blue = 0x6AD9, + Slate_gray = 0x7412, + Slimy_green = 0x2CA3, + Smitten = 0xC210, + Smokey_topaz = 0x8142, + Smoky_black = 0x1061, + Snow = 0xFFDE, + Solid_pink = 0x89C8, + Sonic_silver = 0x73AE, + Space_cadet = 0x214A, + Spanish_bistre = 0x83A6, + Spanish_blue = 0x0397, + Spanish_carmine = 0xC809, + Spanish_gray = 0x94D2, + Spanish_green = 0x048A, + Spanish_orange = 0xE300, + Spanish_pink = 0xF5F7, + Spanish_red = 0xE005, + Spanish_sky_blue = 0x07FF, + Spanish_violet = 0x4950, + Spanish_viridian = 0x03EB, + Spring_bud = 0xA7C0, + Spring_frost = 0x87E5, + Spring_green = 0x07EF, + Spring_green_crayola = 0xEF57, + St_patricks_blue = 0x214F, + Star_command_blue = 0x03D6, + Steel_blue = 0x4C16, + Steel_pink = 0xC9B9, + Steel_teal = 0x6451, + Stil_de_grain_yellow = 0xF6CB, + Stone_gray = 0x9470, + Straw = 0xE6CD, + Strawberry = 0xF28A, + Strawberry_blonde = 0xFC8C, + Sugar_plum = 0x926E, + Sunglow = 0xFE46, + Sunray = 0xE54B, + Sunset = 0xF6B4, + Super_pink = 0xCB55, + Sweet_brown = 0xA1C6, + Syracuse_orange = 0xD220, + Tan = 0xD591, + Tan_crayola = 0xD4CD, + Tang_blue = 0x02D9, + Tangerine = 0xEC20, + Tango_pink = 0xE38F, + Tart_orange = 0xFA69, + Taupe = 0x49E6, + Taupe_gray = 0x8C31, + Tea_green = 0xCF77, + Tea_rose = 0xF40F, + Tea_rose_red = 0xF618, + Teal = 0x0410, + Teal_blue = 0x3BB1, + Telemagenta = 0xC9AE, + Tenne = 0xCAA0, + Terra_cotta = 0xDB8B, + Thistle = 0xD5FA, + Thulian_pink = 0xDB74, + Tickle_me_pink = 0xFC55, + Tiffany_blue = 0x86B9, + Tigers_eye = 0xB343, + Timberwolf = 0xDEBA, + Titanium_yellow = 0xEF20, + Tomato = 0xFB09, + Tropical_rainforest = 0x03AB, + True_blue = 0x2B58, + Trypan_blue = 0x1836, + Tufts_blue = 0x447B, + Tumbleweed = 0xDD51, + Turkey_red = 0xA880, + Turquoise = 0x46F9, + Turquoise_blue = 0x07FD, + Turquoise_green = 0x9EB6, + Turtle_green = 0x8CCB, + Tuscan = 0xF6B4, + Tuscan_brown = 0x6A67, + Tuscan_red = 0x7A49, + Tuscan_tan = 0xA3CB, + Tuscany = 0xBCD3, + Twilight_lavender = 0x8A4D, + Tyrian_purple = 0x6007, + Ua_blue = 0x01B5, + Ua_red = 0xD009, + Ultra_pink = 0xFB7F, + Ultra_red = 0xFB70, + Ultra_violet = 0x62B2, + Ultramarine = 0x401F, + Ultramarine_blue = 0x433E, + Umber = 0x6289, + Unbleached_silk = 0xFEF9, + United_nations_blue = 0x4C9B, + University_of_pennsylvania_blue = 0x010B, + University_of_pennsylvania_red = 0x9800, + Unmellow_yellow = 0xFFEC, + Up_forest_green = 0x0224, + Up_maroon = 0x7882, + Upsdell_red = 0xA905, + Uranian_blue = 0xAEDE, + Usafa_blue = 0x0292, + Ut_orange = 0xFC00, + Van_dyke_brown = 0x6205, + Vanilla = 0xF735, + Vanilla_ice = 0xF475, + Vegas_gold = 0xC58B, + Venetian_red = 0xC043, + Verdigris = 0x4595, + Vermilion = 0xE206, + Veronica = 0x991D, + Violet = 0x781F, + Violet_blue = 0x3256, + Violet_blue_crayola = 0x7378, + Violet_color_wheel = 0x781F, + Violet_crayola = 0x91EF, + Violet_gs = 0x4950, + Violet_jtc = 0x598A, + Violet_red = 0xF2B2, + Violet_ryb = 0x8015, + Violet_web = 0xEC1D, + Violet_web_color = 0xEC1D, + Viridian = 0x440D, + Viridian_green = 0x04B2, + Vista_blue = 0x7CFA, + Vivid_burgundy = 0x98E6, + Vivid_sky_blue = 0x065F, + Vivid_tangerine = 0xFD11, + Vivid_violet = 0x981F, + Volt = 0xCFE0, + Walnut_brown = 0x5A89, + Warm_black = 0x0208, + Wenge = 0x62AA, + Wheat = 0xF6F6, + White = 0xFFFF, + White_smoke = 0xF7BE, + Wild_blue_yonder = 0xA579, + Wild_orchid = 0xD394, + Wild_strawberry = 0xFA34, + Wild_watermelon = 0xFB70, + Windsor_tan = 0xA2A0, + Wine = 0x7187, + Wine_dregs = 0x6989, + Winter_sky = 0xF80F, + Wintergreen_dream = 0x544F, + Wisteria = 0xC51B, + Wood_brown = 0xBCCD, + Xanadu = 0x742F, + Xanthic = 0xEF61, + Xanthous = 0xED86, + Yale_blue = 0x01AD, + Yale_blue_site_blue = 0x01AD, + Yellow = 0xFFE0, + Yellow_crayola = 0xFF30, + Yellow_green = 0x9E66, + Yellow_green_color_wheel = 0x3583, + Yellow_green_crayola = 0xC710, + Yellow_munsell = 0xEE40, + Yellow_ncs = 0xFE80, + Yellow_orange = 0xFD68, + Yellow_orange_color_wheel = 0xFCA1, + Yellow_pantone = 0xFEE0, + Yellow_process = 0xFF60, + Yellow_rgb_x11_yellow = 0xFFE0, + Yellow_ryb = 0xFFE6, + Yellow_sunshine = 0xFFA0, + Yinmn_blue = 0x3292, + Zaffre = 0x00B4, + Zomp = 0x3D31, +} RGB565_Colors; } // namespace colors } // namespace lilka \ No newline at end of file diff --git a/sdk/lib/lilka/src/lilka/display.h b/sdk/lib/lilka/src/lilka/display.h index 42f1ac99..f4383af2 100644 --- a/sdk/lib/lilka/src/lilka/display.h +++ b/sdk/lib/lilka/src/lilka/display.h @@ -125,7 +125,7 @@ class Display : public Arduino_ST7789 { /// Наприклад: /// @code /// lilka::display.setCursor(0, 32); - /// lilka::display.setTextColor(lilka::colors::RGB565_Black); // Білий текст + /// lilka::display.setTextColor(lilka::colors::Black); // Білий текст /// lilka::display.print("Привіт,j "); /// lilka::display.print(String("Лілка!\n")); /// lilka::display.print(42); @@ -230,7 +230,7 @@ class Display : public Arduino_ST7789 { /// Приклад використання: /// @code /// // Завантажити зображення з файлу "image.bmp", використовуючи білий колір як прозорий. - /// lilka::Image *image = lilka::resources.loadImage("image.bmp", lilka::display.color565(255, 255, 255)); + /// lilka::Image *image = lilka::resources.loadImage("image.bmp", lilka::colors::White); /// lilka::display.draw16bitRGBBitmapWithTranColor( /// 0, 0, image->pixels, image->transparentColor, image->width, image->height /// ); @@ -279,9 +279,9 @@ class Display : public Arduino_ST7789 { /// lilka::Canvas canvas; // Створити новий Canvas зі стандартним розміром (розмір дисплею) /// int y = 100; /// while (1) { -/// canvas.fillScreen(lilka::colors::RGB565_Black); // Заповнити буфер чорним кольором +/// canvas.fillScreen(lilka::colors::Black); // Заповнити буфер чорним кольором /// canvas.setCursor(32, y); -/// canvas.setTextColor(lilka::colors::RGB565_Black); // Білий текст +/// canvas.setTextColor(lilka::colors::Black); // Білий текст /// canvas.print("Привіт, Лілка!"); /// lilka::display.renderCanvas(&canvas); // Відобразити буфер на екрані - жодного мерехтіння! /// y++; @@ -343,7 +343,7 @@ class Image { /// } /// lilka::Image *rotatedImage = new lilka::Image(image->width, image->height); /// // Повертаємо на 30 градусів, заповнюючи пікселі, які виходять за межі зображення, білим кольором: - /// image->rotate(30, rotatedImage, lilka::display.color565(255, 255, 255)); + /// image->rotate(30, rotatedImage, lilka::colors::White); /// // Звільнюємо пам'ять /// delete image; /// delete rotatedImage; diff --git a/sdk/lib/lilka/src/lilka/inputdialog.cpp b/sdk/lib/lilka/src/lilka/inputdialog.cpp index 53dd6b12..c613cb56 100644 --- a/sdk/lib/lilka/src/lilka/inputdialog.cpp +++ b/sdk/lib/lilka/src/lilka/inputdialog.cpp @@ -125,8 +125,8 @@ void InputDialog::draw(Arduino_GFX* canvas) { int16_t kbHeight = canvas->height() / 2; int16_t kbWidth = canvas->width(); - canvas->fillRect(0, 0, canvas->width(), canvas->height(), lilka::colors::RGB565_Black); - canvas->setTextColor(lilka::colors::RGB565_White); + canvas->fillRect(0, 0, canvas->width(), canvas->height(), lilka::colors::Black); + canvas->setTextColor(lilka::colors::White); canvas->setFont(FONT_10x20); canvas->setTextBound(4, 4, canvas->width() - 8, canvas->height() - 8); @@ -183,7 +183,7 @@ void InputDialog::draw(Arduino_GFX* canvas) { x * buttonWidth + (buttonWidth / 2) - iconWidth / 2, kbTop + y * buttonHeight + (buttonHeight / 2) - iconHeight / 2, const_cast(icon), - lilka::colors::RGB565_Black, + lilka::colors::Black, iconWidth, iconHeight ); diff --git a/sdk/lib/lilka/src/lilka/menu.cpp b/sdk/lib/lilka/src/lilka/menu.cpp index 6065cf89..6db0407a 100644 --- a/sdk/lib/lilka/src/lilka/menu.cpp +++ b/sdk/lib/lilka/src/lilka/menu.cpp @@ -82,7 +82,7 @@ void Menu::update() { void Menu::draw(Arduino_GFX* canvas) { // uint8_t desiredCursorY = cursor * 24 + 96 - 20; - canvas->fillScreen(lilka::colors::RGB565_Black); + canvas->fillScreen(lilka::colors::Black); int8_t angleShift = sin(millis() / 1000.0) * 16; // Draw triangle in top-left canvas->fillTriangle(0, 0, 48 - angleShift, 0, 0, 48 + angleShift, canvas->color565(0, 0, 255)); @@ -98,7 +98,7 @@ void Menu::draw(Arduino_GFX* canvas) { ); canvas->setCursor(32, 40); canvas->setTextBound(0, 0, canvas->width(), canvas->height()); - canvas->setTextColor(lilka::colors::RGB565_White); + canvas->setTextColor(lilka::colors::White); canvas->setFont(FONT_6x13); canvas->setTextSize(2); canvas->println(title); @@ -111,7 +111,7 @@ void Menu::draw(Arduino_GFX* canvas) { uint16_t menu_size = items.size(); for (int i = scroll; i < MIN(scroll + MENU_HEIGHT, menu_size); i++) { // canvas->fillRect(0, 96 + i * 24 - 20, LILKA_DISPLAY_WIDTH, 24, i == cursor ? canvas->color565(255, 64, 0) : - // lilka::colors::RGB565_Black); + // lilka::colors::Black); int16_t screenI = i - scroll; const menu_icon_t* icon = items[i].icon; canvas->setTextBound(0, 80 + screenI * 24 - 20, canvas->width(), 24); @@ -130,14 +130,14 @@ void Menu::draw(Arduino_GFX* canvas) { memcpy(iconImage->pixels, *icon, sizeof(menu_icon_t)); // Transform t = Transform().rotate(millis() * 30); Transform t = Transform().rotate(sin((millis() - lastCursorMove) * PI / 1000) * 30); - iconCanvas->fillScreen(lilka::colors::RGB565_Black); + iconCanvas->fillScreen(lilka::colors::Black); iconCanvas->drawImageTransformed(iconImage, 12, 12, t); canvas->draw16bitRGBBitmapWithTranColor( - 0, 80 + screenI * 24 - 20, iconCanvas->getFramebuffer(), lilka::colors::RGB565_Black, 24, 24 + 0, 80 + screenI * 24 - 20, iconCanvas->getFramebuffer(), lilka::colors::Black, 24, 24 ); } else { canvas->draw16bitRGBBitmapWithTranColor( - 0, 80 + screenI * 24 - 20, const_cast(*icon), lilka::colors::RGB565_Black, 24, 24 + 0, 80 + screenI * 24 - 20, const_cast(*icon), lilka::colors::Black, 24, 24 ); } } @@ -145,7 +145,7 @@ void Menu::draw(Arduino_GFX* canvas) { if (items[i].color && cursor != i) { canvas->setTextColor(items[i].color); } else { - canvas->setTextColor(lilka::colors::RGB565_White); + canvas->setTextColor(lilka::colors::White); } // gfx->print(i == cursor ? "> " : " "); canvas->println(items[i].title); @@ -170,7 +170,7 @@ void Menu::draw(Arduino_GFX* canvas) { canvas->fillRect(canvas->width() - 8, top, 8, height, canvas->color565(96, 96, 96)); int barHeight = height * MENU_HEIGHT / menu_size; int barTop = top + scroll * height / menu_size; - canvas->fillRect(canvas->width() - 8, barTop, 8, barHeight, lilka::colors::RGB565_White); + canvas->fillRect(canvas->width() - 8, barTop, 8, barHeight, lilka::colors::White); } } diff --git a/sdk/lib/lilka/src/lilka/progressdialog.cpp b/sdk/lib/lilka/src/lilka/progressdialog.cpp index 9a5aaf4e..0465ee8d 100644 --- a/sdk/lib/lilka/src/lilka/progressdialog.cpp +++ b/sdk/lib/lilka/src/lilka/progressdialog.cpp @@ -34,7 +34,7 @@ void ProgressDialog::draw(Arduino_GFX* canvas) { int width = right - left; int xMargin = 4; - canvas->setTextColor(lilka::colors::RGB565_White); + canvas->setTextColor(lilka::colors::White); canvas->fillRect(left, top, width, mid - top, canvas->color565(32, 32, 128)); canvas->setFont(FONT_6x13); @@ -56,7 +56,7 @@ void ProgressDialog::draw(Arduino_GFX* canvas) { sprintf(buf, "%d%%", progress); canvas->getTextBounds(buf, 0, 0, &x, &y, &w, &h); - // canvas->fillRect(x, y, w, h, lilka::colors::RGB565_Black); + // canvas->fillRect(x, y, w, h, lilka::colors::Black); // canvas->println(buf); int barMargin = 8; From 5fff660bd338d0cb3b73610c11d7f2488a3c4e0c Mon Sep 17 00:00:00 2001 From: Orphey <15167344+frostmorn@users.noreply.github.com> Date: Wed, 27 Mar 2024 15:05:06 +0000 Subject: [PATCH 3/3] few more places --- firmware/keira/src/apps/demos/ball.cpp | 2 +- firmware/keira/src/apps/demos/letris.cpp | 4 ++-- firmware/keira/src/apps/demos/transform.cpp | 2 +- firmware/keira/src/apps/demos/user_spi.cpp | 2 +- firmware/keira/src/apps/lua/luarunner.cpp | 2 +- firmware/keira/src/apps/wifi_config.cpp | 4 ++-- sdk/lib/lilka/examples/main.cpp | 8 ++++---- sdk/lib/lilka/src/lilka/alert.cpp | 2 +- sdk/lib/lilka/src/lilka/display.cpp | 4 ++-- sdk/lib/lilka/src/lilka/display.h | 8 ++++---- sdk/lib/lilka/src/lilka/inputdialog.cpp | 2 +- sdk/lib/lilka/src/lilka/menu.cpp | 10 +++++----- sdk/lib/lilka/src/lilka/progressdialog.cpp | 10 +++------- sdk/lib/lilka/src/lilka/resources.h | 2 +- 14 files changed, 29 insertions(+), 33 deletions(-) diff --git a/firmware/keira/src/apps/demos/ball.cpp b/firmware/keira/src/apps/demos/ball.cpp index 07152b16..39a7da4e 100644 --- a/firmware/keira/src/apps/demos/ball.cpp +++ b/firmware/keira/src/apps/demos/ball.cpp @@ -41,7 +41,7 @@ void BallApp::run() { } canvas->fillScreen(lilka::colors::Black); - canvas->fillCircle(x, y, radius, canvas->color565(255, 200, 0)); + canvas->fillCircle(x, y, radius, lilka::colors::Chrome_yellow); // Calculate FPS canvas->setCursor(16, 32); canvas->println("FPS: " + String(1000 / (millis() - prevRenderTime))); diff --git a/firmware/keira/src/apps/demos/letris.cpp b/firmware/keira/src/apps/demos/letris.cpp index 3bba0d33..c9f27f71 100644 --- a/firmware/keira/src/apps/demos/letris.cpp +++ b/firmware/keira/src/apps/demos/letris.cpp @@ -215,10 +215,10 @@ void LetrisApp::run() { } // Очищаємо екран - canvas->fillScreen(canvas->color565(32, 32, 32)); + canvas->fillScreen(lilka::colors::Graygrey); queueDraw(); // Ми робимо це двічі, щоб очистити обидва буфери (основний та задній) - canvas->fillScreen(canvas->color565(32, 32, 32)); + canvas->fillScreen(lilka::colors::Graygrey); queueDraw(); // Головний цикл гри diff --git a/firmware/keira/src/apps/demos/transform.cpp b/firmware/keira/src/apps/demos/transform.cpp index d612a52c..25dcac6d 100644 --- a/firmware/keira/src/apps/demos/transform.cpp +++ b/firmware/keira/src/apps/demos/transform.cpp @@ -26,7 +26,7 @@ void TransformApp::run() { int angle = 0; while (1) { - canvas->fillScreen(canvas->color565(0, 64, 0)); + canvas->fillScreen(lilka::colors::Myrtle_green); // canvas->drawImage(face, x, y); lilka::Transform transform = lilka::Transform().rotate(angle).scale(sin(angle / 24.0), cos(angle / 50.0)); // lilka::Transform transform = lilka::Transform().rotate(30).scale(1.5, 1); diff --git a/firmware/keira/src/apps/demos/user_spi.cpp b/firmware/keira/src/apps/demos/user_spi.cpp index bbfe2aa0..defead5f 100644 --- a/firmware/keira/src/apps/demos/user_spi.cpp +++ b/firmware/keira/src/apps/demos/user_spi.cpp @@ -10,7 +10,7 @@ void UserSPIApp::run() { buffer.fillScreen(0); buffer.setFont(FONT_9x15); - buffer.fillScreen(buffer.color565(0, 0, 0)); + buffer.fillScreen(lilka::colors::Black); buffer.setTextBound(4, 0, canvas->width() - 8, canvas->height()); buffer.setCursor(4, 20); buffer.println("SPI2 begin"); diff --git a/firmware/keira/src/apps/lua/luarunner.cpp b/firmware/keira/src/apps/lua/luarunner.cpp index 044ccf61..b95f7a5d 100644 --- a/firmware/keira/src/apps/lua/luarunner.cpp +++ b/firmware/keira/src/apps/lua/luarunner.cpp @@ -379,7 +379,7 @@ void LuaLiveRunnerApp::run() { // canvas->print(String("Зчитано: ") + code.length() + " Б"); // } if (line.length() == 0) { - canvas->fillScreen(canvas->color565(0, 128, 0)); + canvas->fillScreen(lilka::colors::Green); canvas->print("Запуск..."); queueDraw(); break; diff --git a/firmware/keira/src/apps/wifi_config.cpp b/firmware/keira/src/apps/wifi_config.cpp index 28bc2ef7..15b1ea1e 100644 --- a/firmware/keira/src/apps/wifi_config.cpp +++ b/firmware/keira/src/apps/wifi_config.cpp @@ -21,7 +21,7 @@ void WiFiConfigApp::run() { static_cast(ServiceManager::getInstance()->getService("network")); // TODO: use dynamic_cast and assert networkService != nullptr - buffer.fillScreen(buffer.color565(0, 0, 0)); + buffer.fillScreen(lilka::colors::Black); buffer.setCursor(8, 24); canvas->drawCanvas(&buffer); queueDraw(); @@ -133,7 +133,7 @@ void WiFiConfigApp::run() { } networkService->connect(ssid, password); - buffer.fillScreen(buffer.color565(0, 0, 0)); + buffer.fillScreen(lilka::colors::Black); buffer.setCursor(8, 24); buffer.println("Під'єднуємось..."); canvas->drawCanvas(&buffer); diff --git a/sdk/lib/lilka/examples/main.cpp b/sdk/lib/lilka/examples/main.cpp index 9a967286..1fe0d513 100644 --- a/sdk/lib/lilka/examples/main.cpp +++ b/sdk/lib/lilka/examples/main.cpp @@ -7,9 +7,9 @@ void setup() { void loop() { // Заповнити екран чорним кольором - lilka::display.fillScreen(lilka::display.color565(0, 255, 0)); + lilka::display.fillScreen(lilka::colors::Green); - lilka::Image* image = lilka::resources.loadImage("/sd/hello.bmp", lilka::display.color565(255, 0, 255)); + lilka::Image* image = lilka::resources.loadImage("/sd/hello.bmp", lilka::display.lilka::colors::Fuchsia); lilka::display.drawImage(image, 32, 64); delay(1000); @@ -21,12 +21,12 @@ void loop() { // Розпочати відтворення звуку на частоті 440 Гц lilka::buzzer.play(440); // Заповнити екран червоним кольором - lilka::display.fillScreen(lilka::display.color565(255, 0, 0)); + lilka::display.fillScreen(lilka::colors::Red); } else if (state.a.justReleased) { // Якщо кнопка "A" щойно була відпущена... // Зупинити відтворення звуку lilka::buzzer.stop(); // Заповнити екран зеленим кольором - lilka::display.fillScreen(lilka::display.color565(0, 255, 0)); + lilka::display.fillScreen(lilka::colors::Green); } } } diff --git a/sdk/lib/lilka/src/lilka/alert.cpp b/sdk/lib/lilka/src/lilka/alert.cpp index 2e61d0a7..d8a76010 100644 --- a/sdk/lib/lilka/src/lilka/alert.cpp +++ b/sdk/lib/lilka/src/lilka/alert.cpp @@ -43,7 +43,7 @@ void Alert::draw(Arduino_GFX* canvas) { canvas->setTextColor(lilka::colors::White); - canvas->fillRect(left, top, width, mid - top, canvas->color565(32, 32, 128)); + canvas->fillRect(left, top, width, mid - top, lilka::colors::Midnight_blue); canvas->setFont(FONT_6x13); canvas->setTextSize(2); canvas->setTextBound(left + xMargin, top, width - xMargin * 2, mid - top); diff --git a/sdk/lib/lilka/src/lilka/display.cpp b/sdk/lib/lilka/src/lilka/display.cpp index 8ee48563..aa7fe515 100644 --- a/sdk/lib/lilka/src/lilka/display.cpp +++ b/sdk/lib/lilka/src/lilka/display.cpp @@ -395,12 +395,12 @@ uint16_t RLEDecoder::next() { // Read the next value from the RLE stream if (pos >= length) { // End of stream - return display.color565(255, 255, 0); + return lilka::colors::Yellow; } count = data[pos++]; if (count == 0) { // This is bullshit. The count should never be zero. The user has messed up the data. I don't want to deal with this. /AD - return display.color565(255, 255, 255); + return lilka::colors::Black; } uint8_t lo = data[pos++]; uint8_t hi = data[pos++]; diff --git a/sdk/lib/lilka/src/lilka/display.h b/sdk/lib/lilka/src/lilka/display.h index f4383af2..70633151 100644 --- a/sdk/lib/lilka/src/lilka/display.h +++ b/sdk/lib/lilka/src/lilka/display.h @@ -45,9 +45,9 @@ typedef struct int_vector_t { /// } /// /// void loop() { -/// lilka::display.fillScreen(lilka::display.color565(255, 0, 0)); // Заповнити екран червоним кольором +/// lilka::display.fillScreen(lilka::colors::Red); // Заповнити екран червоним кольором /// lilka::display.setCursor(32, 32); -/// lilka::display.setTextColor(lilka::display.color565(0, 255, 0)); // Зелений текст +/// lilka::display.setTextColor(lilka::colors::Green); // Зелений текст /// lilka::display.print("Привіт, Лілка!"); /// } /// @endcode @@ -125,7 +125,7 @@ class Display : public Arduino_ST7789 { /// Наприклад: /// @code /// lilka::display.setCursor(0, 32); - /// lilka::display.setTextColor(lilka::colors::Black); // Білий текст + /// lilka::display.setTextColor(lilka::colors::Black); // Чорний текст /// lilka::display.print("Привіт,j "); /// lilka::display.print(String("Лілка!\n")); /// lilka::display.print(42); @@ -281,7 +281,7 @@ class Display : public Arduino_ST7789 { /// while (1) { /// canvas.fillScreen(lilka::colors::Black); // Заповнити буфер чорним кольором /// canvas.setCursor(32, y); -/// canvas.setTextColor(lilka::colors::Black); // Білий текст +/// canvas.setTextColor(lilka::colors::Black); // Чорний текст /// canvas.print("Привіт, Лілка!"); /// lilka::display.renderCanvas(&canvas); // Відобразити буфер на екрані - жодного мерехтіння! /// y++; diff --git a/sdk/lib/lilka/src/lilka/inputdialog.cpp b/sdk/lib/lilka/src/lilka/inputdialog.cpp index c613cb56..8719cc8a 100644 --- a/sdk/lib/lilka/src/lilka/inputdialog.cpp +++ b/sdk/lib/lilka/src/lilka/inputdialog.cpp @@ -160,7 +160,7 @@ void InputDialog::draw(Arduino_GFX* canvas) { // Draw rect if key is focused if (y == cy && x == cx) { canvas->fillRect( - x * buttonWidth, kbTop + y * buttonHeight, buttonWidth, buttonHeight, canvas->color565(255, 64, 0) + x * buttonWidth, kbTop + y * buttonHeight, buttonWidth, buttonHeight, lilka::colors::Orange_red ); } uint8_t key = layerKeys[y * LILKA_KB_COLS + x]; diff --git a/sdk/lib/lilka/src/lilka/menu.cpp b/sdk/lib/lilka/src/lilka/menu.cpp index 6db0407a..329da300 100644 --- a/sdk/lib/lilka/src/lilka/menu.cpp +++ b/sdk/lib/lilka/src/lilka/menu.cpp @@ -11,7 +11,7 @@ Menu::Menu(String title) { this->scroll = 0; this->setCursor(0); this->done = false; - this->iconImage = new Image(24, 24, display.color565(0, 0, 0), 12, 12); + this->iconImage = new Image(24, 24, colors::Black, 12, 12); this->iconCanvas = new Canvas(24, 24); this->lastCursorMove = millis(); this->button = Button::COUNT; @@ -85,7 +85,7 @@ void Menu::draw(Arduino_GFX* canvas) { canvas->fillScreen(lilka::colors::Black); int8_t angleShift = sin(millis() / 1000.0) * 16; // Draw triangle in top-left - canvas->fillTriangle(0, 0, 48 - angleShift, 0, 0, 48 + angleShift, canvas->color565(0, 0, 255)); + canvas->fillTriangle(0, 0, 48 - angleShift, 0, 0, 48 + angleShift, lilka::colors::Blue); // Draw triangle in top-right canvas->fillTriangle( canvas->width(), @@ -94,7 +94,7 @@ void Menu::draw(Arduino_GFX* canvas) { 0, canvas->width(), 48 - angleShift, - canvas->color565(255, 255, 0) + lilka::colors::Yellow ); canvas->setCursor(32, 40); canvas->setTextBound(0, 0, canvas->width(), canvas->height()); @@ -106,11 +106,11 @@ void Menu::draw(Arduino_GFX* canvas) { canvas->setTextSize(1); canvas->setFont(FONT_10x20); - canvas->fillRect(0, (cursor * 24 + 80 - 20) - scroll * 24, canvas->width(), 24, canvas->color565(255, 64, 0)); + canvas->fillRect(0, (cursor * 24 + 80 - 20) - scroll * 24, canvas->width(), 24, lilka::colors::Orange_red); uint16_t menu_size = items.size(); for (int i = scroll; i < MIN(scroll + MENU_HEIGHT, menu_size); i++) { - // canvas->fillRect(0, 96 + i * 24 - 20, LILKA_DISPLAY_WIDTH, 24, i == cursor ? canvas->color565(255, 64, 0) : + // canvas->fillRect(0, 96 + i * 24 - 20, LILKA_DISPLAY_WIDTH, 24, i == cursor ? lilka::colors::Orange_red : // lilka::colors::Black); int16_t screenI = i - scroll; const menu_icon_t* icon = items[i].icon; diff --git a/sdk/lib/lilka/src/lilka/progressdialog.cpp b/sdk/lib/lilka/src/lilka/progressdialog.cpp index 0465ee8d..b03fbcb3 100644 --- a/sdk/lib/lilka/src/lilka/progressdialog.cpp +++ b/sdk/lib/lilka/src/lilka/progressdialog.cpp @@ -36,7 +36,7 @@ void ProgressDialog::draw(Arduino_GFX* canvas) { canvas->setTextColor(lilka::colors::White); - canvas->fillRect(left, top, width, mid - top, canvas->color565(32, 32, 128)); + canvas->fillRect(left, top, width, mid - top, lilka::colors::Midnight_blue); canvas->setFont(FONT_6x13); canvas->setTextSize(2); canvas->setTextBound(left + xMargin, top, width - xMargin * 2, mid - top); @@ -65,18 +65,14 @@ void ProgressDialog::draw(Arduino_GFX* canvas) { int center = (left + right) / 2; canvas->fillRect( - left + barMargin, - bottom - barMargin - barHeight, - width - barMargin * 2, - barHeight, - canvas->color565(128, 64, 64) + left + barMargin, bottom - barMargin - barHeight, width - barMargin * 2, barHeight, lilka::colors::Persian_plum ); canvas->fillRect( left + barMargin, bottom - barMargin - barHeight, (width - barMargin * 2) * progress / 100, barHeight, - canvas->color565(255, 128, 0) + lilka::colors::Dark_orange ); canvas->setCursor(center - w / 2, bottom - barMargin - barHeight - barMargin); canvas->setTextBound(0, 0, canvas->width(), canvas->height()); diff --git a/sdk/lib/lilka/src/lilka/resources.h b/sdk/lib/lilka/src/lilka/resources.h index a9377e40..899a7b6b 100644 --- a/sdk/lib/lilka/src/lilka/resources.h +++ b/sdk/lib/lilka/src/lilka/resources.h @@ -22,7 +22,7 @@ class Resources { /// Приклад: /// /// \code - /// lilka::Image *image = lilka::resources.loadImage("image.bmp", lilka::display.color565(255, 255, 0)); // + /// lilka::Image *image = lilka::resources.loadImage("image.bmp", lilka::colors::Yellow); // /// Жовтий колір буде прозорим if (!image) { /// Serial.println("Failed to load image"); /// return;