diff --git a/ApplicationCode/ProjectDataModel/RimLegendConfig.cpp b/ApplicationCode/ProjectDataModel/RimLegendConfig.cpp index 8734ad2707..234a641d34 100644 --- a/ApplicationCode/ProjectDataModel/RimLegendConfig.cpp +++ b/ApplicationCode/ProjectDataModel/RimLegendConfig.cpp @@ -343,30 +343,28 @@ void RimLegendConfig::updateLegend() case CATEGORY: { // Based on http://stackoverflow.com/questions/470690/how-to-automatically-generate-n-distinct-colors - // and Kelly Colors + // and Kelly Colors and sorted by hue legendColors.reserve(20); - legendColors.add(cvf::Color3ub(255, 179, 0)); // vivid_yellow - legendColors.add(cvf::Color3ub(128, 62, 117)); // strong_purple - legendColors.add(cvf::Color3ub(255, 104, 0)); // vivid_orange - legendColors.add(cvf::Color3ub(166, 189, 215)); // very_light_blue - legendColors.add(cvf::Color3ub(193, 0, 32)); // vivid_red - legendColors.add(cvf::Color3ub(206, 162, 98)); // grayish_yellow - legendColors.add(cvf::Color3ub(129, 112, 102)); // medium_gray - - // these aren't good for people with defective color vision - legendColors.add(cvf::Color3ub( 0, 125, 52)); // vivid_green - legendColors.add(cvf::Color3ub(246, 118, 142)); //strong_purplish_pink - legendColors.add(cvf::Color3ub( 0, 83, 138)); //strong_blue - legendColors.add(cvf::Color3ub(255, 122, 92)); //strong_yellowish_pink - legendColors.add(cvf::Color3ub( 83, 55, 122)); //strong_violet - legendColors.add(cvf::Color3ub(255, 142, 0)); //vivid_orange_yellow - legendColors.add(cvf::Color3ub(179, 40, 81)); //strong_purplish_red - legendColors.add(cvf::Color3ub(244, 200, 0)); //vivid_greenish_yellow - legendColors.add(cvf::Color3ub(127, 24, 13)); //strong_reddish_brown - legendColors.add(cvf::Color3ub(147, 170, 0)); //vivid_yellowish_green - legendColors.add(cvf::Color3ub( 89, 51, 21)); //deep_yellowish_brown - legendColors.add(cvf::Color3ub(241, 58, 19)); //vivid_reddish_orange - legendColors.add(cvf::Color3ub( 35, 44, 22)); //dark_olive_green + legendColors.add(cvf::Color3ub(127, 24, 13)); // hwb( 6, 5%, 50%) strong_reddish_brown + legendColors.add(cvf::Color3ub(241, 58, 19)); // hwb( 11, 7%, 5%) vivid_reddish_orange + legendColors.add(cvf::Color3ub(255, 122, 92)); // hwb( 11, 36%, 0%) strong_yellowish_pink + legendColors.add(cvf::Color3ub(129, 112, 102)); // hwb( 22, 40%, 49%) medium_gray + legendColors.add(cvf::Color3ub(255, 104, 0)); // hwb( 24, 0%, 0%) vivid_orange + legendColors.add(cvf::Color3ub( 89, 51, 21)); // hwb( 26, 8%, 65%) deep_yellowish_brown + legendColors.add(cvf::Color3ub(255, 142, 0)); // hwb( 33, 0%, 0%) vivid_orange_yellow + legendColors.add(cvf::Color3ub(206, 162, 98)); // hwb( 36, 38%, 19%) grayish_yellow + legendColors.add(cvf::Color3ub(255, 179, 0)); // hwb( 42, 0%, 0%) vivid_yellow + legendColors.add(cvf::Color3ub(244, 200, 0)); // hwb( 49, 0%, 4%) vivid_greenish_yellow + legendColors.add(cvf::Color3ub(147, 170, 0)); // hwb( 68, 0%, 33%) vivid_yellowish_green + legendColors.add(cvf::Color3ub( 35, 44, 22)); // hwb( 85, 9%, 83%) dark_olive_green + legendColors.add(cvf::Color3ub( 0, 125, 52)); // hwb(145, 0%, 51%) vivid_green + legendColors.add(cvf::Color3ub( 0, 83, 138)); // hwb(204, 0%, 46%) strong_blue + legendColors.add(cvf::Color3ub(166, 189, 215)); // hwb(212, 65%, 16%) very_light_blue + legendColors.add(cvf::Color3ub( 83, 55, 122)); // hwb(265, 22%, 52%) strong_violet + legendColors.add(cvf::Color3ub(179, 40, 81)); // hwb(342, 16%, 30%) strong_purplish_red + legendColors.add(cvf::Color3ub(128, 62, 117)); // hwb(310, 24%, 50%) strong_purple + legendColors.add(cvf::Color3ub(246, 118, 142)); // hwb(349, 46%, 4%) strong_purplish_pink + legendColors.add(cvf::Color3ub(193, 0, 32)); // hwb(350, 0%, 24%) vivid_red } break;