diff options
author | Samuel Fadel <samuel@nihil.ws> | 2023-05-23 11:22:33 +0200 |
---|---|---|
committer | Samuel Fadel <samuel@nihil.ws> | 2023-05-23 11:22:33 +0200 |
commit | 0f34fd437efb936ef29ac91186321aa7251fbfb1 (patch) | |
tree | 271e994828f4bb19c35b2630f2705cb64b8d4552 /continuouscolorscale.cpp | |
parent | bedf6936885694688ddb8bd3452f6bd68ef8d29c (diff) |
Massive changes in initial port away from Qt.
Diffstat (limited to 'continuouscolorscale.cpp')
-rw-r--r-- | continuouscolorscale.cpp | 2056 |
1 files changed, 1028 insertions, 1028 deletions
diff --git a/continuouscolorscale.cpp b/continuouscolorscale.cpp index 3b41b81..c729c6b 100644 --- a/continuouscolorscale.cpp +++ b/continuouscolorscale.cpp @@ -10,18 +10,18 @@ ContinuousColorScale::ContinuousColorScale(std::initializer_list<QColor> colors) QColor ContinuousColorScale::color(float t) const { if (t < m_min || t > m_max) { - return QColor(); + return Color(); } // normalize t t = (t - m_min) / (m_max - m_min); // find which colors in the scale are adjacent to ours - qreal step = 1.0 / m_colors.size(); - int i = (int) (t / step); + float step = 1.0 / m_colors.size(); + int i = static_cast<int>(t / step); if (i >= m_colors.size() - 1) { - return m_colors.last(); + return m_colors.back(); } // normalize t between the two colors @@ -35,521 +35,521 @@ ContinuousColorScale ContinuousColorScale::builtin(BuiltinContinuousColorScale s switch (scale) { case HeatedObjects: return ContinuousColorScale{ - QColor( 0, 0, 0), - QColor( 35, 0, 0), - QColor( 52, 0, 0), - QColor( 60, 0, 0), - QColor( 63, 1, 0), - QColor( 64, 2, 0), - QColor( 68, 5, 0), - QColor( 69, 6, 0), - QColor( 72, 8, 0), - QColor( 74, 10, 0), - QColor( 77, 12, 0), - QColor( 78, 14, 0), - QColor( 81, 16, 0), - QColor( 83, 17, 0), - QColor( 85, 19, 0), - QColor( 86, 20, 0), - QColor( 89, 22, 0), - QColor( 91, 24, 0), - QColor( 92, 25, 0), - QColor( 94, 26, 0), - QColor( 95, 28, 0), - QColor( 98, 30, 0), - QColor(100, 31, 0), - QColor(102, 33, 0), - QColor(103, 34, 0), - QColor(105, 35, 0), - QColor(106, 36, 0), - QColor(108, 38, 0), - QColor(109, 39, 0), - QColor(111, 40, 0), - QColor(112, 42, 0), - QColor(114, 43, 0), - QColor(115, 44, 0), - QColor(117, 45, 0), - QColor(119, 47, 0), - QColor(119, 47, 0), - QColor(120, 48, 0), - QColor(122, 49, 0), - QColor(123, 51, 0), - QColor(125, 52, 0), - QColor(125, 52, 0), - QColor(126, 53, 0), - QColor(128, 54, 0), - QColor(129, 56, 0), - QColor(129, 56, 0), - QColor(131, 57, 0), - QColor(132, 58, 0), - QColor(134, 59, 0), - QColor(134, 59, 0), - QColor(136, 61, 0), - QColor(137, 62, 0), - QColor(137, 62, 0), - QColor(139, 63, 0), - QColor(139, 63, 0), - QColor(140, 65, 0), - QColor(142, 66, 0), - QColor(142, 66, 0), - QColor(143, 67, 0), - QColor(143, 67, 0), - QColor(145, 68, 0), - QColor(145, 68, 0), - QColor(146, 70, 0), - QColor(146, 70, 0), - QColor(148, 71, 0), - QColor(148, 71, 0), - QColor(149, 72, 0), - QColor(149, 72, 0), - QColor(151, 73, 0), - QColor(151, 73, 0), - QColor(153, 75, 0), - QColor(153, 75, 0), - QColor(154, 76, 0), - QColor(154, 76, 0), - QColor(154, 76, 0), - QColor(156, 77, 0), - QColor(156, 77, 0), - QColor(157, 79, 0), - QColor(157, 79, 0), - QColor(159, 80, 0), - QColor(159, 80, 0), - QColor(159, 80, 0), - QColor(160, 81, 0), - QColor(160, 81, 0), - QColor(162, 82, 0), - QColor(162, 82, 0), - QColor(163, 84, 0), - QColor(163, 84, 0), - QColor(165, 85, 0), - QColor(165, 85, 0), - QColor(166, 86, 0), - QColor(166, 86, 0), - QColor(166, 86, 0), - QColor(168, 87, 0), - QColor(168, 87, 0), - QColor(170, 89, 0), - QColor(170, 89, 0), - QColor(171, 90, 0), - QColor(171, 90, 0), - QColor(173, 91, 0), - QColor(173, 91, 0), - QColor(174, 93, 0), - QColor(174, 93, 0), - QColor(176, 94, 0), - QColor(176, 94, 0), - QColor(177, 95, 0), - QColor(177, 95, 0), - QColor(179, 96, 0), - QColor(179, 96, 0), - QColor(180, 98, 0), - QColor(182, 99, 0), - QColor(182, 99, 0), - QColor(183, 100, 0), - QColor(183, 100, 0), - QColor(185, 102, 0), - QColor(185, 102, 0), - QColor(187, 103, 0), - QColor(187, 103, 0), - QColor(188, 104, 0), - QColor(188, 104, 0), - QColor(190, 105, 0), - QColor(191, 107, 0), - QColor(191, 107, 0), - QColor(193, 108, 0), - QColor(193, 108, 0), - QColor(194, 109, 0), - QColor(196, 110, 0), - QColor(196, 110, 0), - QColor(197, 112, 0), - QColor(197, 112, 0), - QColor(199, 113, 0), - QColor(200, 114, 0), - QColor(200, 114, 0), - QColor(202, 116, 0), - QColor(202, 116, 0), - QColor(204, 117, 0), - QColor(205, 118, 0), - QColor(205, 118, 0), - QColor(207, 119, 0), - QColor(208, 121, 0), - QColor(208, 121, 0), - QColor(210, 122, 0), - QColor(211, 123, 0), - QColor(211, 123, 0), - QColor(213, 124, 0), - QColor(214, 126, 0), - QColor(214, 126, 0), - QColor(216, 127, 0), - QColor(217, 128, 0), - QColor(217, 128, 0), - QColor(219, 130, 0), - QColor(221, 131, 0), - QColor(221, 131, 0), - QColor(222, 132, 0), - QColor(224, 133, 0), - QColor(224, 133, 0), - QColor(225, 135, 0), - QColor(227, 136, 0), - QColor(227, 136, 0), - QColor(228, 137, 0), - QColor(230, 138, 0), - QColor(230, 138, 0), - QColor(231, 140, 0), - QColor(233, 141, 0), - QColor(233, 141, 0), - QColor(234, 142, 0), - QColor(236, 144, 0), - QColor(236, 144, 0), - QColor(238, 145, 0), - QColor(239, 146, 0), - QColor(241, 147, 0), - QColor(241, 147, 0), - QColor(242, 149, 0), - QColor(244, 150, 0), - QColor(244, 150, 0), - QColor(245, 151, 0), - QColor(247, 153, 0), - QColor(247, 153, 0), - QColor(248, 154, 0), - QColor(250, 155, 0), - QColor(251, 156, 0), - QColor(251, 156, 0), - QColor(253, 158, 0), - QColor(255, 159, 0), - QColor(255, 159, 0), - QColor(255, 160, 0), - QColor(255, 161, 0), - QColor(255, 163, 0), - QColor(255, 163, 0), - QColor(255, 164, 0), - QColor(255, 165, 0), - QColor(255, 167, 0), - QColor(255, 167, 0), - QColor(255, 168, 0), - QColor(255, 169, 0), - QColor(255, 169, 0), - QColor(255, 170, 0), - QColor(255, 172, 0), - QColor(255, 173, 0), - QColor(255, 173, 0), - QColor(255, 174, 0), - QColor(255, 175, 0), - QColor(255, 177, 0), - QColor(255, 178, 0), - QColor(255, 179, 0), - QColor(255, 181, 0), - QColor(255, 181, 0), - QColor(255, 182, 0), - QColor(255, 183, 0), - QColor(255, 184, 0), - QColor(255, 187, 7), - QColor(255, 188, 10), - QColor(255, 189, 14), - QColor(255, 191, 18), - QColor(255, 192, 21), - QColor(255, 193, 25), - QColor(255, 195, 29), - QColor(255, 197, 36), - QColor(255, 198, 40), - QColor(255, 200, 43), - QColor(255, 202, 51), - QColor(255, 204, 54), - QColor(255, 206, 61), - QColor(255, 207, 65), - QColor(255, 210, 72), - QColor(255, 211, 76), - QColor(255, 214, 83), - QColor(255, 216, 91), - QColor(255, 219, 98), - QColor(255, 221, 105), - QColor(255, 223, 109), - QColor(255, 225, 116), - QColor(255, 228, 123), - QColor(255, 232, 134), - QColor(255, 234, 142), - QColor(255, 237, 149), - QColor(255, 239, 156), - QColor(255, 240, 160), - QColor(255, 243, 167), - QColor(255, 246, 174), - QColor(255, 248, 182), - QColor(255, 249, 185), - QColor(255, 252, 193), - QColor(255, 253, 196), - QColor(255, 255, 204), - QColor(255, 255, 207), - QColor(255, 255, 211), - QColor(255, 255, 218), - QColor(255, 255, 222), - QColor(255, 255, 225), - QColor(255, 255, 229), - QColor(255, 255, 233), - QColor(255, 255, 236), - QColor(255, 255, 240), - QColor(255, 255, 244), - QColor(255, 255, 247), - QColor(255, 255, 255) + Color( 0, 0, 0), + Color( 35, 0, 0), + Color( 52, 0, 0), + Color( 60, 0, 0), + Color( 63, 1, 0), + Color( 64, 2, 0), + Color( 68, 5, 0), + Color( 69, 6, 0), + Color( 72, 8, 0), + Color( 74, 10, 0), + Color( 77, 12, 0), + Color( 78, 14, 0), + Color( 81, 16, 0), + Color( 83, 17, 0), + Color( 85, 19, 0), + Color( 86, 20, 0), + Color( 89, 22, 0), + Color( 91, 24, 0), + Color( 92, 25, 0), + Color( 94, 26, 0), + Color( 95, 28, 0), + Color( 98, 30, 0), + Color(100, 31, 0), + Color(102, 33, 0), + Color(103, 34, 0), + Color(105, 35, 0), + Color(106, 36, 0), + Color(108, 38, 0), + Color(109, 39, 0), + Color(111, 40, 0), + Color(112, 42, 0), + Color(114, 43, 0), + Color(115, 44, 0), + Color(117, 45, 0), + Color(119, 47, 0), + Color(119, 47, 0), + Color(120, 48, 0), + Color(122, 49, 0), + Color(123, 51, 0), + Color(125, 52, 0), + Color(125, 52, 0), + Color(126, 53, 0), + Color(128, 54, 0), + Color(129, 56, 0), + Color(129, 56, 0), + Color(131, 57, 0), + Color(132, 58, 0), + Color(134, 59, 0), + Color(134, 59, 0), + Color(136, 61, 0), + Color(137, 62, 0), + Color(137, 62, 0), + Color(139, 63, 0), + Color(139, 63, 0), + Color(140, 65, 0), + Color(142, 66, 0), + Color(142, 66, 0), + Color(143, 67, 0), + Color(143, 67, 0), + Color(145, 68, 0), + Color(145, 68, 0), + Color(146, 70, 0), + Color(146, 70, 0), + Color(148, 71, 0), + Color(148, 71, 0), + Color(149, 72, 0), + Color(149, 72, 0), + Color(151, 73, 0), + Color(151, 73, 0), + Color(153, 75, 0), + Color(153, 75, 0), + Color(154, 76, 0), + Color(154, 76, 0), + Color(154, 76, 0), + Color(156, 77, 0), + Color(156, 77, 0), + Color(157, 79, 0), + Color(157, 79, 0), + Color(159, 80, 0), + Color(159, 80, 0), + Color(159, 80, 0), + Color(160, 81, 0), + Color(160, 81, 0), + Color(162, 82, 0), + Color(162, 82, 0), + Color(163, 84, 0), + Color(163, 84, 0), + Color(165, 85, 0), + Color(165, 85, 0), + Color(166, 86, 0), + Color(166, 86, 0), + Color(166, 86, 0), + Color(168, 87, 0), + Color(168, 87, 0), + Color(170, 89, 0), + Color(170, 89, 0), + Color(171, 90, 0), + Color(171, 90, 0), + Color(173, 91, 0), + Color(173, 91, 0), + Color(174, 93, 0), + Color(174, 93, 0), + Color(176, 94, 0), + Color(176, 94, 0), + Color(177, 95, 0), + Color(177, 95, 0), + Color(179, 96, 0), + Color(179, 96, 0), + Color(180, 98, 0), + Color(182, 99, 0), + Color(182, 99, 0), + Color(183, 100, 0), + Color(183, 100, 0), + Color(185, 102, 0), + Color(185, 102, 0), + Color(187, 103, 0), + Color(187, 103, 0), + Color(188, 104, 0), + Color(188, 104, 0), + Color(190, 105, 0), + Color(191, 107, 0), + Color(191, 107, 0), + Color(193, 108, 0), + Color(193, 108, 0), + Color(194, 109, 0), + Color(196, 110, 0), + Color(196, 110, 0), + Color(197, 112, 0), + Color(197, 112, 0), + Color(199, 113, 0), + Color(200, 114, 0), + Color(200, 114, 0), + Color(202, 116, 0), + Color(202, 116, 0), + Color(204, 117, 0), + Color(205, 118, 0), + Color(205, 118, 0), + Color(207, 119, 0), + Color(208, 121, 0), + Color(208, 121, 0), + Color(210, 122, 0), + Color(211, 123, 0), + Color(211, 123, 0), + Color(213, 124, 0), + Color(214, 126, 0), + Color(214, 126, 0), + Color(216, 127, 0), + Color(217, 128, 0), + Color(217, 128, 0), + Color(219, 130, 0), + Color(221, 131, 0), + Color(221, 131, 0), + Color(222, 132, 0), + Color(224, 133, 0), + Color(224, 133, 0), + Color(225, 135, 0), + Color(227, 136, 0), + Color(227, 136, 0), + Color(228, 137, 0), + Color(230, 138, 0), + Color(230, 138, 0), + Color(231, 140, 0), + Color(233, 141, 0), + Color(233, 141, 0), + Color(234, 142, 0), + Color(236, 144, 0), + Color(236, 144, 0), + Color(238, 145, 0), + Color(239, 146, 0), + Color(241, 147, 0), + Color(241, 147, 0), + Color(242, 149, 0), + Color(244, 150, 0), + Color(244, 150, 0), + Color(245, 151, 0), + Color(247, 153, 0), + Color(247, 153, 0), + Color(248, 154, 0), + Color(250, 155, 0), + Color(251, 156, 0), + Color(251, 156, 0), + Color(253, 158, 0), + Color(255, 159, 0), + Color(255, 159, 0), + Color(255, 160, 0), + Color(255, 161, 0), + Color(255, 163, 0), + Color(255, 163, 0), + Color(255, 164, 0), + Color(255, 165, 0), + Color(255, 167, 0), + Color(255, 167, 0), + Color(255, 168, 0), + Color(255, 169, 0), + Color(255, 169, 0), + Color(255, 170, 0), + Color(255, 172, 0), + Color(255, 173, 0), + Color(255, 173, 0), + Color(255, 174, 0), + Color(255, 175, 0), + Color(255, 177, 0), + Color(255, 178, 0), + Color(255, 179, 0), + Color(255, 181, 0), + Color(255, 181, 0), + Color(255, 182, 0), + Color(255, 183, 0), + Color(255, 184, 0), + Color(255, 187, 7), + Color(255, 188, 10), + Color(255, 189, 14), + Color(255, 191, 18), + Color(255, 192, 21), + Color(255, 193, 25), + Color(255, 195, 29), + Color(255, 197, 36), + Color(255, 198, 40), + Color(255, 200, 43), + Color(255, 202, 51), + Color(255, 204, 54), + Color(255, 206, 61), + Color(255, 207, 65), + Color(255, 210, 72), + Color(255, 211, 76), + Color(255, 214, 83), + Color(255, 216, 91), + Color(255, 219, 98), + Color(255, 221, 105), + Color(255, 223, 109), + Color(255, 225, 116), + Color(255, 228, 123), + Color(255, 232, 134), + Color(255, 234, 142), + Color(255, 237, 149), + Color(255, 239, 156), + Color(255, 240, 160), + Color(255, 243, 167), + Color(255, 246, 174), + Color(255, 248, 182), + Color(255, 249, 185), + Color(255, 252, 193), + Color(255, 253, 196), + Color(255, 255, 204), + Color(255, 255, 207), + Color(255, 255, 211), + Color(255, 255, 218), + Color(255, 255, 222), + Color(255, 255, 225), + Color(255, 255, 229), + Color(255, 255, 233), + Color(255, 255, 236), + Color(255, 255, 240), + Color(255, 255, 244), + Color(255, 255, 247), + Color(255, 255, 255) }; case Rainbow: return ContinuousColorScale{ - QColor( 0, 0, 0), - QColor( 45, 0, 36), - QColor( 56, 0, 46), - QColor( 60, 0, 49), - QColor( 67, 0, 54), - QColor( 70, 0, 59), - QColor( 71, 0, 61), - QColor( 75, 0, 68), - QColor( 74, 0, 73), - QColor( 74, 0, 77), - QColor( 73, 0, 81), - QColor( 71, 0, 87), - QColor( 69, 1, 90), - QColor( 68, 2, 94), - QColor( 66, 3, 97), - QColor( 63, 6, 102), - QColor( 61, 7, 106), - QColor( 58, 10, 109), - QColor( 56, 12, 113), - QColor( 53, 15, 116), - QColor( 48, 18, 119), - QColor( 47, 20, 121), - QColor( 44, 23, 124), - QColor( 41, 27, 128), - QColor( 40, 28, 129), - QColor( 37, 32, 132), - QColor( 34, 36, 134), - QColor( 29, 43, 137), - QColor( 25, 52, 138), - QColor( 24, 57, 139), - QColor( 24, 62, 141), - QColor( 24, 64, 142), - QColor( 23, 65, 142), - QColor( 23, 69, 143), - QColor( 23, 71, 142), - QColor( 23, 71, 142), - QColor( 23, 73, 142), - QColor( 23, 75, 142), - QColor( 23, 75, 142), - QColor( 23, 78, 142), - QColor( 23, 80, 142), - QColor( 23, 80, 142), - QColor( 23, 82, 141), - QColor( 23, 85, 141), - QColor( 23, 85, 141), - QColor( 23, 87, 140), - QColor( 23, 87, 140), - QColor( 24, 90, 140), - QColor( 24, 90, 140), - QColor( 24, 93, 139), - QColor( 24, 93, 139), - QColor( 24, 93, 139), - QColor( 24, 93, 139), - QColor( 24, 97, 139), - QColor( 24, 97, 139), - QColor( 25, 101, 138), - QColor( 25, 101, 138), - QColor( 25, 104, 137), - QColor( 25, 104, 137), - QColor( 25, 104, 137), - QColor( 26, 108, 137), - QColor( 26, 108, 137), - QColor( 27, 111, 136), - QColor( 27, 111, 136), - QColor( 27, 111, 136), - QColor( 27, 115, 135), - QColor( 27, 115, 135), - QColor( 28, 118, 134), - QColor( 28, 118, 134), - QColor( 29, 122, 133), - QColor( 29, 122, 133), - QColor( 29, 122, 133), - QColor( 29, 122, 133), - QColor( 29, 125, 132), - QColor( 29, 125, 132), - QColor( 30, 128, 131), - QColor( 30, 128, 131), - QColor( 31, 131, 130), - QColor( 31, 131, 130), - QColor( 31, 131, 130), - QColor( 32, 134, 128), - QColor( 32, 134, 128), - QColor( 33, 137, 127), - QColor( 33, 137, 127), - QColor( 33, 137, 127), - QColor( 34, 140, 125), - QColor( 34, 140, 125), - QColor( 35, 142, 123), - QColor( 35, 142, 123), - QColor( 36, 145, 121), - QColor( 36, 145, 121), - QColor( 36, 145, 121), - QColor( 37, 147, 118), - QColor( 37, 147, 118), - QColor( 38, 150, 116), - QColor( 38, 150, 116), - QColor( 40, 152, 113), - QColor( 40, 152, 113), - QColor( 41, 154, 111), - QColor( 41, 154, 111), - QColor( 42, 156, 108), - QColor( 42, 156, 108), - QColor( 43, 158, 106), - QColor( 43, 158, 106), - QColor( 43, 158, 106), - QColor( 45, 160, 104), - QColor( 45, 160, 104), - QColor( 46, 162, 101), - QColor( 46, 162, 101), - QColor( 48, 164, 99), - QColor( 48, 164, 99), - QColor( 50, 166, 97), - QColor( 50, 166, 97), - QColor( 51, 168, 95), - QColor( 53, 170, 93), - QColor( 53, 170, 93), - QColor( 53, 170, 93), - QColor( 55, 172, 91), - QColor( 55, 172, 91), - QColor( 57, 174, 88), - QColor( 57, 174, 88), - QColor( 59, 175, 86), - QColor( 62, 177, 84), - QColor( 64, 178, 82), - QColor( 64, 178, 82), - QColor( 67, 180, 80), - QColor( 67, 180, 80), - QColor( 69, 181, 79), - QColor( 72, 183, 77), - QColor( 72, 183, 77), - QColor( 72, 183, 77), - QColor( 75, 184, 76), - QColor( 77, 186, 74), - QColor( 80, 187, 73), - QColor( 83, 189, 72), - QColor( 87, 190, 72), - QColor( 91, 191, 71), - QColor( 95, 192, 70), - QColor( 99, 193, 70), - QColor(103, 194, 70), - QColor(107, 195, 70), - QColor(111, 196, 70), - QColor(111, 196, 70), - QColor(115, 196, 70), - QColor(119, 197, 70), - QColor(123, 197, 70), - QColor(130, 198, 71), - QColor(133, 199, 71), - QColor(137, 199, 72), - QColor(140, 199, 72), - QColor(143, 199, 73), - QColor(143, 199, 73), - QColor(147, 199, 73), - QColor(150, 199, 74), - QColor(153, 199, 74), - QColor(156, 199, 75), - QColor(160, 200, 76), - QColor(167, 200, 78), - QColor(170, 200, 79), - QColor(173, 200, 79), - QColor(173, 200, 79), - QColor(177, 200, 80), - QColor(180, 200, 81), - QColor(183, 199, 82), - QColor(186, 199, 82), - QColor(190, 199, 83), - QColor(196, 199, 85), - QColor(199, 198, 85), - QColor(199, 198, 85), - QColor(203, 198, 86), - QColor(206, 197, 87), - QColor(212, 197, 89), - QColor(215, 196, 90), - QColor(218, 195, 91), - QColor(224, 194, 94), - QColor(224, 194, 94), - QColor(230, 193, 96), - QColor(233, 192, 98), - QColor(236, 190, 100), - QColor(238, 189, 104), - QColor(240, 188, 106), - QColor(240, 188, 106), - QColor(242, 187, 110), - QColor(244, 185, 114), - QColor(245, 184, 116), - QColor(247, 183, 120), - QColor(248, 182, 123), - QColor(248, 182, 123), - QColor(250, 181, 125), - QColor(251, 180, 128), - QColor(252, 180, 130), - QColor(253, 180, 133), - QColor(253, 180, 133), - QColor(254, 180, 134), - QColor(254, 179, 138), - QColor(255, 179, 142), - QColor(255, 179, 145), - QColor(255, 179, 145), - QColor(255, 179, 152), - QColor(255, 180, 161), - QColor(255, 180, 164), - QColor(255, 180, 167), - QColor(255, 180, 167), - QColor(255, 181, 169), - QColor(255, 181, 170), - QColor(255, 182, 173), - QColor(255, 183, 176), - QColor(255, 183, 176), - QColor(255, 184, 179), - QColor(255, 185, 179), - QColor(255, 185, 182), - QColor(255, 186, 182), - QColor(255, 186, 182), - QColor(255, 187, 185), - QColor(255, 188, 185), - QColor(255, 189, 188), - QColor(255, 189, 188), - QColor(255, 190, 188), - QColor(255, 191, 191), - QColor(255, 192, 191), - QColor(255, 194, 194), - QColor(255, 194, 194), - QColor(255, 197, 197), - QColor(255, 198, 198), - QColor(255, 200, 200), - QColor(255, 201, 201), - QColor(255, 201, 201), - QColor(255, 202, 202), - QColor(255, 203, 203), - QColor(255, 205, 205), - QColor(255, 206, 206), - QColor(255, 206, 206), - QColor(255, 208, 208), - QColor(255, 209, 209), - QColor(255, 211, 211), - QColor(255, 215, 215), - QColor(255, 216, 216), - QColor(255, 216, 216), - QColor(255, 218, 218), - QColor(255, 219, 219), - QColor(255, 221, 221), - QColor(255, 223, 223), - QColor(255, 226, 226), - QColor(255, 228, 228), - QColor(255, 230, 230), - QColor(255, 230, 230), - QColor(255, 232, 232), - QColor(255, 235, 235), - QColor(255, 237, 237), - QColor(255, 240, 240), - QColor(255, 243, 243), - QColor(255, 246, 246), - QColor(255, 249, 249), - QColor(255, 251, 251), - QColor(255, 253, 253), - QColor(255, 255, 255) + Color( 0, 0, 0), + Color( 45, 0, 36), + Color( 56, 0, 46), + Color( 60, 0, 49), + Color( 67, 0, 54), + Color( 70, 0, 59), + Color( 71, 0, 61), + Color( 75, 0, 68), + Color( 74, 0, 73), + Color( 74, 0, 77), + Color( 73, 0, 81), + Color( 71, 0, 87), + Color( 69, 1, 90), + Color( 68, 2, 94), + Color( 66, 3, 97), + Color( 63, 6, 102), + Color( 61, 7, 106), + Color( 58, 10, 109), + Color( 56, 12, 113), + Color( 53, 15, 116), + Color( 48, 18, 119), + Color( 47, 20, 121), + Color( 44, 23, 124), + Color( 41, 27, 128), + Color( 40, 28, 129), + Color( 37, 32, 132), + Color( 34, 36, 134), + Color( 29, 43, 137), + Color( 25, 52, 138), + Color( 24, 57, 139), + Color( 24, 62, 141), + Color( 24, 64, 142), + Color( 23, 65, 142), + Color( 23, 69, 143), + Color( 23, 71, 142), + Color( 23, 71, 142), + Color( 23, 73, 142), + Color( 23, 75, 142), + Color( 23, 75, 142), + Color( 23, 78, 142), + Color( 23, 80, 142), + Color( 23, 80, 142), + Color( 23, 82, 141), + Color( 23, 85, 141), + Color( 23, 85, 141), + Color( 23, 87, 140), + Color( 23, 87, 140), + Color( 24, 90, 140), + Color( 24, 90, 140), + Color( 24, 93, 139), + Color( 24, 93, 139), + Color( 24, 93, 139), + Color( 24, 93, 139), + Color( 24, 97, 139), + Color( 24, 97, 139), + Color( 25, 101, 138), + Color( 25, 101, 138), + Color( 25, 104, 137), + Color( 25, 104, 137), + Color( 25, 104, 137), + Color( 26, 108, 137), + Color( 26, 108, 137), + Color( 27, 111, 136), + Color( 27, 111, 136), + Color( 27, 111, 136), + Color( 27, 115, 135), + Color( 27, 115, 135), + Color( 28, 118, 134), + Color( 28, 118, 134), + Color( 29, 122, 133), + Color( 29, 122, 133), + Color( 29, 122, 133), + Color( 29, 122, 133), + Color( 29, 125, 132), + Color( 29, 125, 132), + Color( 30, 128, 131), + Color( 30, 128, 131), + Color( 31, 131, 130), + Color( 31, 131, 130), + Color( 31, 131, 130), + Color( 32, 134, 128), + Color( 32, 134, 128), + Color( 33, 137, 127), + Color( 33, 137, 127), + Color( 33, 137, 127), + Color( 34, 140, 125), + Color( 34, 140, 125), + Color( 35, 142, 123), + Color( 35, 142, 123), + Color( 36, 145, 121), + Color( 36, 145, 121), + Color( 36, 145, 121), + Color( 37, 147, 118), + Color( 37, 147, 118), + Color( 38, 150, 116), + Color( 38, 150, 116), + Color( 40, 152, 113), + Color( 40, 152, 113), + Color( 41, 154, 111), + Color( 41, 154, 111), + Color( 42, 156, 108), + Color( 42, 156, 108), + Color( 43, 158, 106), + Color( 43, 158, 106), + Color( 43, 158, 106), + Color( 45, 160, 104), + Color( 45, 160, 104), + Color( 46, 162, 101), + Color( 46, 162, 101), + Color( 48, 164, 99), + Color( 48, 164, 99), + Color( 50, 166, 97), + Color( 50, 166, 97), + Color( 51, 168, 95), + Color( 53, 170, 93), + Color( 53, 170, 93), + Color( 53, 170, 93), + Color( 55, 172, 91), + Color( 55, 172, 91), + Color( 57, 174, 88), + Color( 57, 174, 88), + Color( 59, 175, 86), + Color( 62, 177, 84), + Color( 64, 178, 82), + Color( 64, 178, 82), + Color( 67, 180, 80), + Color( 67, 180, 80), + Color( 69, 181, 79), + Color( 72, 183, 77), + Color( 72, 183, 77), + Color( 72, 183, 77), + Color( 75, 184, 76), + Color( 77, 186, 74), + Color( 80, 187, 73), + Color( 83, 189, 72), + Color( 87, 190, 72), + Color( 91, 191, 71), + Color( 95, 192, 70), + Color( 99, 193, 70), + Color(103, 194, 70), + Color(107, 195, 70), + Color(111, 196, 70), + Color(111, 196, 70), + Color(115, 196, 70), + Color(119, 197, 70), + Color(123, 197, 70), + Color(130, 198, 71), + Color(133, 199, 71), + Color(137, 199, 72), + Color(140, 199, 72), + Color(143, 199, 73), + Color(143, 199, 73), + Color(147, 199, 73), + Color(150, 199, 74), + Color(153, 199, 74), + Color(156, 199, 75), + Color(160, 200, 76), + Color(167, 200, 78), + Color(170, 200, 79), + Color(173, 200, 79), + Color(173, 200, 79), + Color(177, 200, 80), + Color(180, 200, 81), + Color(183, 199, 82), + Color(186, 199, 82), + Color(190, 199, 83), + Color(196, 199, 85), + Color(199, 198, 85), + Color(199, 198, 85), + Color(203, 198, 86), + Color(206, 197, 87), + Color(212, 197, 89), + Color(215, 196, 90), + Color(218, 195, 91), + Color(224, 194, 94), + Color(224, 194, 94), + Color(230, 193, 96), + Color(233, 192, 98), + Color(236, 190, 100), + Color(238, 189, 104), + Color(240, 188, 106), + Color(240, 188, 106), + Color(242, 187, 110), + Color(244, 185, 114), + Color(245, 184, 116), + Color(247, 183, 120), + Color(248, 182, 123), + Color(248, 182, 123), + Color(250, 181, 125), + Color(251, 180, 128), + Color(252, 180, 130), + Color(253, 180, 133), + Color(253, 180, 133), + Color(254, 180, 134), + Color(254, 179, 138), + Color(255, 179, 142), + Color(255, 179, 145), + Color(255, 179, 145), + Color(255, 179, 152), + Color(255, 180, 161), + Color(255, 180, 164), + Color(255, 180, 167), + Color(255, 180, 167), + Color(255, 181, 169), + Color(255, 181, 170), + Color(255, 182, 173), + Color(255, 183, 176), + Color(255, 183, 176), + Color(255, 184, 179), + Color(255, 185, 179), + Color(255, 185, 182), + Color(255, 186, 182), + Color(255, 186, 182), + Color(255, 187, 185), + Color(255, 188, 185), + Color(255, 189, 188), + Color(255, 189, 188), + Color(255, 190, 188), + Color(255, 191, 191), + Color(255, 192, 191), + Color(255, 194, 194), + Color(255, 194, 194), + Color(255, 197, 197), + Color(255, 198, 198), + Color(255, 200, 200), + Color(255, 201, 201), + Color(255, 201, 201), + Color(255, 202, 202), + Color(255, 203, 203), + Color(255, 205, 205), + Color(255, 206, 206), + Color(255, 206, 206), + Color(255, 208, 208), + Color(255, 209, 209), + Color(255, 211, 211), + Color(255, 215, 215), + Color(255, 216, 216), + Color(255, 216, 216), + Color(255, 218, 218), + Color(255, 219, 219), + Color(255, 221, 221), + Color(255, 223, 223), + Color(255, 226, 226), + Color(255, 228, 228), + Color(255, 230, 230), + Color(255, 230, 230), + Color(255, 232, 232), + Color(255, 235, 235), + Color(255, 237, 237), + Color(255, 240, 240), + Color(255, 243, 243), + Color(255, 246, 246), + Color(255, 249, 249), + Color(255, 251, 251), + Color(255, 253, 253), + Color(255, 255, 255) }; default: return ContinuousColorScale::builtin(ContinuousColorScale::HeatedObjects); @@ -561,521 +561,521 @@ ContinuousColorScale *ContinuousColorScale::builtin(BuiltinContinuousColorScale switch (scale) { case HeatedObjects: return new ContinuousColorScale{ - QColor( 0, 0, 0), - QColor( 35, 0, 0), - QColor( 52, 0, 0), - QColor( 60, 0, 0), - QColor( 63, 1, 0), - QColor( 64, 2, 0), - QColor( 68, 5, 0), - QColor( 69, 6, 0), - QColor( 72, 8, 0), - QColor( 74, 10, 0), - QColor( 77, 12, 0), - QColor( 78, 14, 0), - QColor( 81, 16, 0), - QColor( 83, 17, 0), - QColor( 85, 19, 0), - QColor( 86, 20, 0), - QColor( 89, 22, 0), - QColor( 91, 24, 0), - QColor( 92, 25, 0), - QColor( 94, 26, 0), - QColor( 95, 28, 0), - QColor( 98, 30, 0), - QColor(100, 31, 0), - QColor(102, 33, 0), - QColor(103, 34, 0), - QColor(105, 35, 0), - QColor(106, 36, 0), - QColor(108, 38, 0), - QColor(109, 39, 0), - QColor(111, 40, 0), - QColor(112, 42, 0), - QColor(114, 43, 0), - QColor(115, 44, 0), - QColor(117, 45, 0), - QColor(119, 47, 0), - QColor(119, 47, 0), - QColor(120, 48, 0), - QColor(122, 49, 0), - QColor(123, 51, 0), - QColor(125, 52, 0), - QColor(125, 52, 0), - QColor(126, 53, 0), - QColor(128, 54, 0), - QColor(129, 56, 0), - QColor(129, 56, 0), - QColor(131, 57, 0), - QColor(132, 58, 0), - QColor(134, 59, 0), - QColor(134, 59, 0), - QColor(136, 61, 0), - QColor(137, 62, 0), - QColor(137, 62, 0), - QColor(139, 63, 0), - QColor(139, 63, 0), - QColor(140, 65, 0), - QColor(142, 66, 0), - QColor(142, 66, 0), - QColor(143, 67, 0), - QColor(143, 67, 0), - QColor(145, 68, 0), - QColor(145, 68, 0), - QColor(146, 70, 0), - QColor(146, 70, 0), - QColor(148, 71, 0), - QColor(148, 71, 0), - QColor(149, 72, 0), - QColor(149, 72, 0), - QColor(151, 73, 0), - QColor(151, 73, 0), - QColor(153, 75, 0), - QColor(153, 75, 0), - QColor(154, 76, 0), - QColor(154, 76, 0), - QColor(154, 76, 0), - QColor(156, 77, 0), - QColor(156, 77, 0), - QColor(157, 79, 0), - QColor(157, 79, 0), - QColor(159, 80, 0), - QColor(159, 80, 0), - QColor(159, 80, 0), - QColor(160, 81, 0), - QColor(160, 81, 0), - QColor(162, 82, 0), - QColor(162, 82, 0), - QColor(163, 84, 0), - QColor(163, 84, 0), - QColor(165, 85, 0), - QColor(165, 85, 0), - QColor(166, 86, 0), - QColor(166, 86, 0), - QColor(166, 86, 0), - QColor(168, 87, 0), - QColor(168, 87, 0), - QColor(170, 89, 0), - QColor(170, 89, 0), - QColor(171, 90, 0), - QColor(171, 90, 0), - QColor(173, 91, 0), - QColor(173, 91, 0), - QColor(174, 93, 0), - QColor(174, 93, 0), - QColor(176, 94, 0), - QColor(176, 94, 0), - QColor(177, 95, 0), - QColor(177, 95, 0), - QColor(179, 96, 0), - QColor(179, 96, 0), - QColor(180, 98, 0), - QColor(182, 99, 0), - QColor(182, 99, 0), - QColor(183, 100, 0), - QColor(183, 100, 0), - QColor(185, 102, 0), - QColor(185, 102, 0), - QColor(187, 103, 0), - QColor(187, 103, 0), - QColor(188, 104, 0), - QColor(188, 104, 0), - QColor(190, 105, 0), - QColor(191, 107, 0), - QColor(191, 107, 0), - QColor(193, 108, 0), - QColor(193, 108, 0), - QColor(194, 109, 0), - QColor(196, 110, 0), - QColor(196, 110, 0), - QColor(197, 112, 0), - QColor(197, 112, 0), - QColor(199, 113, 0), - QColor(200, 114, 0), - QColor(200, 114, 0), - QColor(202, 116, 0), - QColor(202, 116, 0), - QColor(204, 117, 0), - QColor(205, 118, 0), - QColor(205, 118, 0), - QColor(207, 119, 0), - QColor(208, 121, 0), - QColor(208, 121, 0), - QColor(210, 122, 0), - QColor(211, 123, 0), - QColor(211, 123, 0), - QColor(213, 124, 0), - QColor(214, 126, 0), - QColor(214, 126, 0), - QColor(216, 127, 0), - QColor(217, 128, 0), - QColor(217, 128, 0), - QColor(219, 130, 0), - QColor(221, 131, 0), - QColor(221, 131, 0), - QColor(222, 132, 0), - QColor(224, 133, 0), - QColor(224, 133, 0), - QColor(225, 135, 0), - QColor(227, 136, 0), - QColor(227, 136, 0), - QColor(228, 137, 0), - QColor(230, 138, 0), - QColor(230, 138, 0), - QColor(231, 140, 0), - QColor(233, 141, 0), - QColor(233, 141, 0), - QColor(234, 142, 0), - QColor(236, 144, 0), - QColor(236, 144, 0), - QColor(238, 145, 0), - QColor(239, 146, 0), - QColor(241, 147, 0), - QColor(241, 147, 0), - QColor(242, 149, 0), - QColor(244, 150, 0), - QColor(244, 150, 0), - QColor(245, 151, 0), - QColor(247, 153, 0), - QColor(247, 153, 0), - QColor(248, 154, 0), - QColor(250, 155, 0), - QColor(251, 156, 0), - QColor(251, 156, 0), - QColor(253, 158, 0), - QColor(255, 159, 0), - QColor(255, 159, 0), - QColor(255, 160, 0), - QColor(255, 161, 0), - QColor(255, 163, 0), - QColor(255, 163, 0), - QColor(255, 164, 0), - QColor(255, 165, 0), - QColor(255, 167, 0), - QColor(255, 167, 0), - QColor(255, 168, 0), - QColor(255, 169, 0), - QColor(255, 169, 0), - QColor(255, 170, 0), - QColor(255, 172, 0), - QColor(255, 173, 0), - QColor(255, 173, 0), - QColor(255, 174, 0), - QColor(255, 175, 0), - QColor(255, 177, 0), - QColor(255, 178, 0), - QColor(255, 179, 0), - QColor(255, 181, 0), - QColor(255, 181, 0), - QColor(255, 182, 0), - QColor(255, 183, 0), - QColor(255, 184, 0), - QColor(255, 187, 7), - QColor(255, 188, 10), - QColor(255, 189, 14), - QColor(255, 191, 18), - QColor(255, 192, 21), - QColor(255, 193, 25), - QColor(255, 195, 29), - QColor(255, 197, 36), - QColor(255, 198, 40), - QColor(255, 200, 43), - QColor(255, 202, 51), - QColor(255, 204, 54), - QColor(255, 206, 61), - QColor(255, 207, 65), - QColor(255, 210, 72), - QColor(255, 211, 76), - QColor(255, 214, 83), - QColor(255, 216, 91), - QColor(255, 219, 98), - QColor(255, 221, 105), - QColor(255, 223, 109), - QColor(255, 225, 116), - QColor(255, 228, 123), - QColor(255, 232, 134), - QColor(255, 234, 142), - QColor(255, 237, 149), - QColor(255, 239, 156), - QColor(255, 240, 160), - QColor(255, 243, 167), - QColor(255, 246, 174), - QColor(255, 248, 182), - QColor(255, 249, 185), - QColor(255, 252, 193), - QColor(255, 253, 196), - QColor(255, 255, 204), - QColor(255, 255, 207), - QColor(255, 255, 211), - QColor(255, 255, 218), - QColor(255, 255, 222), - QColor(255, 255, 225), - QColor(255, 255, 229), - QColor(255, 255, 233), - QColor(255, 255, 236), - QColor(255, 255, 240), - QColor(255, 255, 244), - QColor(255, 255, 247), - QColor(255, 255, 255) + Color( 0, 0, 0), + Color( 35, 0, 0), + Color( 52, 0, 0), + Color( 60, 0, 0), + Color( 63, 1, 0), + Color( 64, 2, 0), + Color( 68, 5, 0), + Color( 69, 6, 0), + Color( 72, 8, 0), + Color( 74, 10, 0), + Color( 77, 12, 0), + Color( 78, 14, 0), + Color( 81, 16, 0), + Color( 83, 17, 0), + Color( 85, 19, 0), + Color( 86, 20, 0), + Color( 89, 22, 0), + Color( 91, 24, 0), + Color( 92, 25, 0), + Color( 94, 26, 0), + Color( 95, 28, 0), + Color( 98, 30, 0), + Color(100, 31, 0), + Color(102, 33, 0), + Color(103, 34, 0), + Color(105, 35, 0), + Color(106, 36, 0), + Color(108, 38, 0), + Color(109, 39, 0), + Color(111, 40, 0), + Color(112, 42, 0), + Color(114, 43, 0), + Color(115, 44, 0), + Color(117, 45, 0), + Color(119, 47, 0), + Color(119, 47, 0), + Color(120, 48, 0), + Color(122, 49, 0), + Color(123, 51, 0), + Color(125, 52, 0), + Color(125, 52, 0), + Color(126, 53, 0), + Color(128, 54, 0), + Color(129, 56, 0), + Color(129, 56, 0), + Color(131, 57, 0), + Color(132, 58, 0), + Color(134, 59, 0), + Color(134, 59, 0), + Color(136, 61, 0), + Color(137, 62, 0), + Color(137, 62, 0), + Color(139, 63, 0), + Color(139, 63, 0), + Color(140, 65, 0), + Color(142, 66, 0), + Color(142, 66, 0), + Color(143, 67, 0), + Color(143, 67, 0), + Color(145, 68, 0), + Color(145, 68, 0), + Color(146, 70, 0), + Color(146, 70, 0), + Color(148, 71, 0), + Color(148, 71, 0), + Color(149, 72, 0), + Color(149, 72, 0), + Color(151, 73, 0), + Color(151, 73, 0), + Color(153, 75, 0), + Color(153, 75, 0), + Color(154, 76, 0), + Color(154, 76, 0), + Color(154, 76, 0), + Color(156, 77, 0), + Color(156, 77, 0), + Color(157, 79, 0), + Color(157, 79, 0), + Color(159, 80, 0), + Color(159, 80, 0), + Color(159, 80, 0), + Color(160, 81, 0), + Color(160, 81, 0), + Color(162, 82, 0), + Color(162, 82, 0), + Color(163, 84, 0), + Color(163, 84, 0), + Color(165, 85, 0), + Color(165, 85, 0), + Color(166, 86, 0), + Color(166, 86, 0), + Color(166, 86, 0), + Color(168, 87, 0), + Color(168, 87, 0), + Color(170, 89, 0), + Color(170, 89, 0), + Color(171, 90, 0), + Color(171, 90, 0), + Color(173, 91, 0), + Color(173, 91, 0), + Color(174, 93, 0), + Color(174, 93, 0), + Color(176, 94, 0), + Color(176, 94, 0), + Color(177, 95, 0), + Color(177, 95, 0), + Color(179, 96, 0), + Color(179, 96, 0), + Color(180, 98, 0), + Color(182, 99, 0), + Color(182, 99, 0), + Color(183, 100, 0), + Color(183, 100, 0), + Color(185, 102, 0), + Color(185, 102, 0), + Color(187, 103, 0), + Color(187, 103, 0), + Color(188, 104, 0), + Color(188, 104, 0), + Color(190, 105, 0), + Color(191, 107, 0), + Color(191, 107, 0), + Color(193, 108, 0), + Color(193, 108, 0), + Color(194, 109, 0), + Color(196, 110, 0), + Color(196, 110, 0), + Color(197, 112, 0), + Color(197, 112, 0), + Color(199, 113, 0), + Color(200, 114, 0), + Color(200, 114, 0), + Color(202, 116, 0), + Color(202, 116, 0), + Color(204, 117, 0), + Color(205, 118, 0), + Color(205, 118, 0), + Color(207, 119, 0), + Color(208, 121, 0), + Color(208, 121, 0), + Color(210, 122, 0), + Color(211, 123, 0), + Color(211, 123, 0), + Color(213, 124, 0), + Color(214, 126, 0), + Color(214, 126, 0), + Color(216, 127, 0), + Color(217, 128, 0), + Color(217, 128, 0), + Color(219, 130, 0), + Color(221, 131, 0), + Color(221, 131, 0), + Color(222, 132, 0), + Color(224, 133, 0), + Color(224, 133, 0), + Color(225, 135, 0), + Color(227, 136, 0), + Color(227, 136, 0), + Color(228, 137, 0), + Color(230, 138, 0), + Color(230, 138, 0), + Color(231, 140, 0), + Color(233, 141, 0), + Color(233, 141, 0), + Color(234, 142, 0), + Color(236, 144, 0), + Color(236, 144, 0), + Color(238, 145, 0), + Color(239, 146, 0), + Color(241, 147, 0), + Color(241, 147, 0), + Color(242, 149, 0), + Color(244, 150, 0), + Color(244, 150, 0), + Color(245, 151, 0), + Color(247, 153, 0), + Color(247, 153, 0), + Color(248, 154, 0), + Color(250, 155, 0), + Color(251, 156, 0), + Color(251, 156, 0), + Color(253, 158, 0), + Color(255, 159, 0), + Color(255, 159, 0), + Color(255, 160, 0), + Color(255, 161, 0), + Color(255, 163, 0), + Color(255, 163, 0), + Color(255, 164, 0), + Color(255, 165, 0), + Color(255, 167, 0), + Color(255, 167, 0), + Color(255, 168, 0), + Color(255, 169, 0), + Color(255, 169, 0), + Color(255, 170, 0), + Color(255, 172, 0), + Color(255, 173, 0), + Color(255, 173, 0), + Color(255, 174, 0), + Color(255, 175, 0), + Color(255, 177, 0), + Color(255, 178, 0), + Color(255, 179, 0), + Color(255, 181, 0), + Color(255, 181, 0), + Color(255, 182, 0), + Color(255, 183, 0), + Color(255, 184, 0), + Color(255, 187, 7), + Color(255, 188, 10), + Color(255, 189, 14), + Color(255, 191, 18), + Color(255, 192, 21), + Color(255, 193, 25), + Color(255, 195, 29), + Color(255, 197, 36), + Color(255, 198, 40), + Color(255, 200, 43), + Color(255, 202, 51), + Color(255, 204, 54), + Color(255, 206, 61), + Color(255, 207, 65), + Color(255, 210, 72), + Color(255, 211, 76), + Color(255, 214, 83), + Color(255, 216, 91), + Color(255, 219, 98), + Color(255, 221, 105), + Color(255, 223, 109), + Color(255, 225, 116), + Color(255, 228, 123), + Color(255, 232, 134), + Color(255, 234, 142), + Color(255, 237, 149), + Color(255, 239, 156), + Color(255, 240, 160), + Color(255, 243, 167), + Color(255, 246, 174), + Color(255, 248, 182), + Color(255, 249, 185), + Color(255, 252, 193), + Color(255, 253, 196), + Color(255, 255, 204), + Color(255, 255, 207), + Color(255, 255, 211), + Color(255, 255, 218), + Color(255, 255, 222), + Color(255, 255, 225), + Color(255, 255, 229), + Color(255, 255, 233), + Color(255, 255, 236), + Color(255, 255, 240), + Color(255, 255, 244), + Color(255, 255, 247), + Color(255, 255, 255) }; case Rainbow: return new ContinuousColorScale{ - QColor( 0, 0, 0), - QColor( 45, 0, 36), - QColor( 56, 0, 46), - QColor( 60, 0, 49), - QColor( 67, 0, 54), - QColor( 70, 0, 59), - QColor( 71, 0, 61), - QColor( 75, 0, 68), - QColor( 74, 0, 73), - QColor( 74, 0, 77), - QColor( 73, 0, 81), - QColor( 71, 0, 87), - QColor( 69, 1, 90), - QColor( 68, 2, 94), - QColor( 66, 3, 97), - QColor( 63, 6, 102), - QColor( 61, 7, 106), - QColor( 58, 10, 109), - QColor( 56, 12, 113), - QColor( 53, 15, 116), - QColor( 48, 18, 119), - QColor( 47, 20, 121), - QColor( 44, 23, 124), - QColor( 41, 27, 128), - QColor( 40, 28, 129), - QColor( 37, 32, 132), - QColor( 34, 36, 134), - QColor( 29, 43, 137), - QColor( 25, 52, 138), - QColor( 24, 57, 139), - QColor( 24, 62, 141), - QColor( 24, 64, 142), - QColor( 23, 65, 142), - QColor( 23, 69, 143), - QColor( 23, 71, 142), - QColor( 23, 71, 142), - QColor( 23, 73, 142), - QColor( 23, 75, 142), - QColor( 23, 75, 142), - QColor( 23, 78, 142), - QColor( 23, 80, 142), - QColor( 23, 80, 142), - QColor( 23, 82, 141), - QColor( 23, 85, 141), - QColor( 23, 85, 141), - QColor( 23, 87, 140), - QColor( 23, 87, 140), - QColor( 24, 90, 140), - QColor( 24, 90, 140), - QColor( 24, 93, 139), - QColor( 24, 93, 139), - QColor( 24, 93, 139), - QColor( 24, 93, 139), - QColor( 24, 97, 139), - QColor( 24, 97, 139), - QColor( 25, 101, 138), - QColor( 25, 101, 138), - QColor( 25, 104, 137), - QColor( 25, 104, 137), - QColor( 25, 104, 137), - QColor( 26, 108, 137), - QColor( 26, 108, 137), - QColor( 27, 111, 136), - QColor( 27, 111, 136), - QColor( 27, 111, 136), - QColor( 27, 115, 135), - QColor( 27, 115, 135), - QColor( 28, 118, 134), - QColor( 28, 118, 134), - QColor( 29, 122, 133), - QColor( 29, 122, 133), - QColor( 29, 122, 133), - QColor( 29, 122, 133), - QColor( 29, 125, 132), - QColor( 29, 125, 132), - QColor( 30, 128, 131), - QColor( 30, 128, 131), - QColor( 31, 131, 130), - QColor( 31, 131, 130), - QColor( 31, 131, 130), - QColor( 32, 134, 128), - QColor( 32, 134, 128), - QColor( 33, 137, 127), - QColor( 33, 137, 127), - QColor( 33, 137, 127), - QColor( 34, 140, 125), - QColor( 34, 140, 125), - QColor( 35, 142, 123), - QColor( 35, 142, 123), - QColor( 36, 145, 121), - QColor( 36, 145, 121), - QColor( 36, 145, 121), - QColor( 37, 147, 118), - QColor( 37, 147, 118), - QColor( 38, 150, 116), - QColor( 38, 150, 116), - QColor( 40, 152, 113), - QColor( 40, 152, 113), - QColor( 41, 154, 111), - QColor( 41, 154, 111), - QColor( 42, 156, 108), - QColor( 42, 156, 108), - QColor( 43, 158, 106), - QColor( 43, 158, 106), - QColor( 43, 158, 106), - QColor( 45, 160, 104), - QColor( 45, 160, 104), - QColor( 46, 162, 101), - QColor( 46, 162, 101), - QColor( 48, 164, 99), - QColor( 48, 164, 99), - QColor( 50, 166, 97), - QColor( 50, 166, 97), - QColor( 51, 168, 95), - QColor( 53, 170, 93), - QColor( 53, 170, 93), - QColor( 53, 170, 93), - QColor( 55, 172, 91), - QColor( 55, 172, 91), - QColor( 57, 174, 88), - QColor( 57, 174, 88), - QColor( 59, 175, 86), - QColor( 62, 177, 84), - QColor( 64, 178, 82), - QColor( 64, 178, 82), - QColor( 67, 180, 80), - QColor( 67, 180, 80), - QColor( 69, 181, 79), - QColor( 72, 183, 77), - QColor( 72, 183, 77), - QColor( 72, 183, 77), - QColor( 75, 184, 76), - QColor( 77, 186, 74), - QColor( 80, 187, 73), - QColor( 83, 189, 72), - QColor( 87, 190, 72), - QColor( 91, 191, 71), - QColor( 95, 192, 70), - QColor( 99, 193, 70), - QColor(103, 194, 70), - QColor(107, 195, 70), - QColor(111, 196, 70), - QColor(111, 196, 70), - QColor(115, 196, 70), - QColor(119, 197, 70), - QColor(123, 197, 70), - QColor(130, 198, 71), - QColor(133, 199, 71), - QColor(137, 199, 72), - QColor(140, 199, 72), - QColor(143, 199, 73), - QColor(143, 199, 73), - QColor(147, 199, 73), - QColor(150, 199, 74), - QColor(153, 199, 74), - QColor(156, 199, 75), - QColor(160, 200, 76), - QColor(167, 200, 78), - QColor(170, 200, 79), - QColor(173, 200, 79), - QColor(173, 200, 79), - QColor(177, 200, 80), - QColor(180, 200, 81), - QColor(183, 199, 82), - QColor(186, 199, 82), - QColor(190, 199, 83), - QColor(196, 199, 85), - QColor(199, 198, 85), - QColor(199, 198, 85), - QColor(203, 198, 86), - QColor(206, 197, 87), - QColor(212, 197, 89), - QColor(215, 196, 90), - QColor(218, 195, 91), - QColor(224, 194, 94), - QColor(224, 194, 94), - QColor(230, 193, 96), - QColor(233, 192, 98), - QColor(236, 190, 100), - QColor(238, 189, 104), - QColor(240, 188, 106), - QColor(240, 188, 106), - QColor(242, 187, 110), - QColor(244, 185, 114), - QColor(245, 184, 116), - QColor(247, 183, 120), - QColor(248, 182, 123), - QColor(248, 182, 123), - QColor(250, 181, 125), - QColor(251, 180, 128), - QColor(252, 180, 130), - QColor(253, 180, 133), - QColor(253, 180, 133), - QColor(254, 180, 134), - QColor(254, 179, 138), - QColor(255, 179, 142), - QColor(255, 179, 145), - QColor(255, 179, 145), - QColor(255, 179, 152), - QColor(255, 180, 161), - QColor(255, 180, 164), - QColor(255, 180, 167), - QColor(255, 180, 167), - QColor(255, 181, 169), - QColor(255, 181, 170), - QColor(255, 182, 173), - QColor(255, 183, 176), - QColor(255, 183, 176), - QColor(255, 184, 179), - QColor(255, 185, 179), - QColor(255, 185, 182), - QColor(255, 186, 182), - QColor(255, 186, 182), - QColor(255, 187, 185), - QColor(255, 188, 185), - QColor(255, 189, 188), - QColor(255, 189, 188), - QColor(255, 190, 188), - QColor(255, 191, 191), - QColor(255, 192, 191), - QColor(255, 194, 194), - QColor(255, 194, 194), - QColor(255, 197, 197), - QColor(255, 198, 198), - QColor(255, 200, 200), - QColor(255, 201, 201), - QColor(255, 201, 201), - QColor(255, 202, 202), - QColor(255, 203, 203), - QColor(255, 205, 205), - QColor(255, 206, 206), - QColor(255, 206, 206), - QColor(255, 208, 208), - QColor(255, 209, 209), - QColor(255, 211, 211), - QColor(255, 215, 215), - QColor(255, 216, 216), - QColor(255, 216, 216), - QColor(255, 218, 218), - QColor(255, 219, 219), - QColor(255, 221, 221), - QColor(255, 223, 223), - QColor(255, 226, 226), - QColor(255, 228, 228), - QColor(255, 230, 230), - QColor(255, 230, 230), - QColor(255, 232, 232), - QColor(255, 235, 235), - QColor(255, 237, 237), - QColor(255, 240, 240), - QColor(255, 243, 243), - QColor(255, 246, 246), - QColor(255, 249, 249), - QColor(255, 251, 251), - QColor(255, 253, 253), - QColor(255, 255, 255) + Color( 0, 0, 0), + Color( 45, 0, 36), + Color( 56, 0, 46), + Color( 60, 0, 49), + Color( 67, 0, 54), + Color( 70, 0, 59), + Color( 71, 0, 61), + Color( 75, 0, 68), + Color( 74, 0, 73), + Color( 74, 0, 77), + Color( 73, 0, 81), + Color( 71, 0, 87), + Color( 69, 1, 90), + Color( 68, 2, 94), + Color( 66, 3, 97), + Color( 63, 6, 102), + Color( 61, 7, 106), + Color( 58, 10, 109), + Color( 56, 12, 113), + Color( 53, 15, 116), + Color( 48, 18, 119), + Color( 47, 20, 121), + Color( 44, 23, 124), + Color( 41, 27, 128), + Color( 40, 28, 129), + Color( 37, 32, 132), + Color( 34, 36, 134), + Color( 29, 43, 137), + Color( 25, 52, 138), + Color( 24, 57, 139), + Color( 24, 62, 141), + Color( 24, 64, 142), + Color( 23, 65, 142), + Color( 23, 69, 143), + Color( 23, 71, 142), + Color( 23, 71, 142), + Color( 23, 73, 142), + Color( 23, 75, 142), + Color( 23, 75, 142), + Color( 23, 78, 142), + Color( 23, 80, 142), + Color( 23, 80, 142), + Color( 23, 82, 141), + Color( 23, 85, 141), + Color( 23, 85, 141), + Color( 23, 87, 140), + Color( 23, 87, 140), + Color( 24, 90, 140), + Color( 24, 90, 140), + Color( 24, 93, 139), + Color( 24, 93, 139), + Color( 24, 93, 139), + Color( 24, 93, 139), + Color( 24, 97, 139), + Color( 24, 97, 139), + Color( 25, 101, 138), + Color( 25, 101, 138), + Color( 25, 104, 137), + Color( 25, 104, 137), + Color( 25, 104, 137), + Color( 26, 108, 137), + Color( 26, 108, 137), + Color( 27, 111, 136), + Color( 27, 111, 136), + Color( 27, 111, 136), + Color( 27, 115, 135), + Color( 27, 115, 135), + Color( 28, 118, 134), + Color( 28, 118, 134), + Color( 29, 122, 133), + Color( 29, 122, 133), + Color( 29, 122, 133), + Color( 29, 122, 133), + Color( 29, 125, 132), + Color( 29, 125, 132), + Color( 30, 128, 131), + Color( 30, 128, 131), + Color( 31, 131, 130), + Color( 31, 131, 130), + Color( 31, 131, 130), + Color( 32, 134, 128), + Color( 32, 134, 128), + Color( 33, 137, 127), + Color( 33, 137, 127), + Color( 33, 137, 127), + Color( 34, 140, 125), + Color( 34, 140, 125), + Color( 35, 142, 123), + Color( 35, 142, 123), + Color( 36, 145, 121), + Color( 36, 145, 121), + Color( 36, 145, 121), + Color( 37, 147, 118), + Color( 37, 147, 118), + Color( 38, 150, 116), + Color( 38, 150, 116), + Color( 40, 152, 113), + Color( 40, 152, 113), + Color( 41, 154, 111), + Color( 41, 154, 111), + Color( 42, 156, 108), + Color( 42, 156, 108), + Color( 43, 158, 106), + Color( 43, 158, 106), + Color( 43, 158, 106), + Color( 45, 160, 104), + Color( 45, 160, 104), + Color( 46, 162, 101), + Color( 46, 162, 101), + Color( 48, 164, 99), + Color( 48, 164, 99), + Color( 50, 166, 97), + Color( 50, 166, 97), + Color( 51, 168, 95), + Color( 53, 170, 93), + Color( 53, 170, 93), + Color( 53, 170, 93), + Color( 55, 172, 91), + Color( 55, 172, 91), + Color( 57, 174, 88), + Color( 57, 174, 88), + Color( 59, 175, 86), + Color( 62, 177, 84), + Color( 64, 178, 82), + Color( 64, 178, 82), + Color( 67, 180, 80), + Color( 67, 180, 80), + Color( 69, 181, 79), + Color( 72, 183, 77), + Color( 72, 183, 77), + Color( 72, 183, 77), + Color( 75, 184, 76), + Color( 77, 186, 74), + Color( 80, 187, 73), + Color( 83, 189, 72), + Color( 87, 190, 72), + Color( 91, 191, 71), + Color( 95, 192, 70), + Color( 99, 193, 70), + Color(103, 194, 70), + Color(107, 195, 70), + Color(111, 196, 70), + Color(111, 196, 70), + Color(115, 196, 70), + Color(119, 197, 70), + Color(123, 197, 70), + Color(130, 198, 71), + Color(133, 199, 71), + Color(137, 199, 72), + Color(140, 199, 72), + Color(143, 199, 73), + Color(143, 199, 73), + Color(147, 199, 73), + Color(150, 199, 74), + Color(153, 199, 74), + Color(156, 199, 75), + Color(160, 200, 76), + Color(167, 200, 78), + Color(170, 200, 79), + Color(173, 200, 79), + Color(173, 200, 79), + Color(177, 200, 80), + Color(180, 200, 81), + Color(183, 199, 82), + Color(186, 199, 82), + Color(190, 199, 83), + Color(196, 199, 85), + Color(199, 198, 85), + Color(199, 198, 85), + Color(203, 198, 86), + Color(206, 197, 87), + Color(212, 197, 89), + Color(215, 196, 90), + Color(218, 195, 91), + Color(224, 194, 94), + Color(224, 194, 94), + Color(230, 193, 96), + Color(233, 192, 98), + Color(236, 190, 100), + Color(238, 189, 104), + Color(240, 188, 106), + Color(240, 188, 106), + Color(242, 187, 110), + Color(244, 185, 114), + Color(245, 184, 116), + Color(247, 183, 120), + Color(248, 182, 123), + Color(248, 182, 123), + Color(250, 181, 125), + Color(251, 180, 128), + Color(252, 180, 130), + Color(253, 180, 133), + Color(253, 180, 133), + Color(254, 180, 134), + Color(254, 179, 138), + Color(255, 179, 142), + Color(255, 179, 145), + Color(255, 179, 145), + Color(255, 179, 152), + Color(255, 180, 161), + Color(255, 180, 164), + Color(255, 180, 167), + Color(255, 180, 167), + Color(255, 181, 169), + Color(255, 181, 170), + Color(255, 182, 173), + Color(255, 183, 176), + Color(255, 183, 176), + Color(255, 184, 179), + Color(255, 185, 179), + Color(255, 185, 182), + Color(255, 186, 182), + Color(255, 186, 182), + Color(255, 187, 185), + Color(255, 188, 185), + Color(255, 189, 188), + Color(255, 189, 188), + Color(255, 190, 188), + Color(255, 191, 191), + Color(255, 192, 191), + Color(255, 194, 194), + Color(255, 194, 194), + Color(255, 197, 197), + Color(255, 198, 198), + Color(255, 200, 200), + Color(255, 201, 201), + Color(255, 201, 201), + Color(255, 202, 202), + Color(255, 203, 203), + Color(255, 205, 205), + Color(255, 206, 206), + Color(255, 206, 206), + Color(255, 208, 208), + Color(255, 209, 209), + Color(255, 211, 211), + Color(255, 215, 215), + Color(255, 216, 216), + Color(255, 216, 216), + Color(255, 218, 218), + Color(255, 219, 219), + Color(255, 221, 221), + Color(255, 223, 223), + Color(255, 226, 226), + Color(255, 228, 228), + Color(255, 230, 230), + Color(255, 230, 230), + Color(255, 232, 232), + Color(255, 235, 235), + Color(255, 237, 237), + Color(255, 240, 240), + Color(255, 243, 243), + Color(255, 246, 246), + Color(255, 249, 249), + Color(255, 251, 251), + Color(255, 253, 253), + Color(255, 255, 255) }; default: return ContinuousColorScale::builtin(ContinuousColorScale::HeatedObjects, nullptr); |