Revert "New spectrum color scheme"

This reverts commit f59437cf71.
This commit is contained in:
Brumi-2021 2023-03-04 00:47:40 +01:00
parent f5deae56cf
commit 037fc098ef

View File

@ -281,262 +281,262 @@ const std::array<ui::Color, 256> spectrum_rgb2_lut { {
} }; } };
const std::array<ui::Color, 256> spectrum_rgb3_lut { { const std::array<ui::Color, 256> spectrum_rgb3_lut { {
{ 0x00, 0x00, 0x02 }, { 0, 0, 0 },
{ 0x00, 0x00, 0x04 }, { 0, 0, 3 },
{ 0x00, 0x00, 0x05 }, { 0, 0, 6 },
{ 0x00, 0x00, 0x07 }, { 0, 0, 9 },
{ 0x00, 0x00, 0x0a }, { 0, 0, 12 },
{ 0x00, 0x00, 0x0c }, { 0, 0, 15 },
{ 0x00, 0x00, 0x0e }, { 0, 0, 18 },
{ 0x00, 0x00, 0x10 }, { 0, 0, 21 },
{ 0x00, 0x00, 0x13 }, { 0, 0, 24 },
{ 0x00, 0x00, 0x15 }, { 0, 0, 27 },
{ 0x00, 0x00, 0x17 }, { 0, 0, 30 },
{ 0x00, 0x00, 0x19 }, { 0, 0, 33 },
{ 0x00, 0x00, 0x1b }, { 0, 0, 36 },
{ 0x00, 0x00, 0x1d }, { 0, 0, 39 },
{ 0x00, 0x00, 0x1f }, { 0, 0, 42 },
{ 0x00, 0x00, 0x21 }, { 0, 0, 45 },
{ 0x00, 0x00, 0x24 }, { 0, 0, 48 },
{ 0x00, 0x00, 0x25 }, { 0, 0, 51 },
{ 0x00, 0x00, 0x28 }, { 0, 0, 54 },
{ 0x00, 0x00, 0x29 }, { 0, 0, 57 },
{ 0x00, 0x00, 0x2c }, { 0, 0, 60 },
{ 0x00, 0x00, 0x2e }, { 0, 0, 63 },
{ 0x00, 0x00, 0x30 }, { 0, 0, 66 },
{ 0x00, 0x00, 0x33 }, { 0, 0, 69 },
{ 0x00, 0x00, 0x35 }, { 0, 0, 72 },
{ 0x00, 0x00, 0x37 }, { 0, 0, 75 },
{ 0x00, 0x00, 0x39 }, { 0, 0, 78 },
{ 0x00, 0x00, 0x3b }, { 0, 0, 81 },
{ 0x00, 0x00, 0x3d }, { 0, 0, 84 },
{ 0x00, 0x00, 0x3f }, { 0, 0, 87 },
{ 0x00, 0x00, 0x41 }, { 0, 0, 90 },
{ 0x00, 0x00, 0x43 }, { 0, 0, 93 },
{ 0x00, 0x00, 0x46 }, { 0, 0, 96 },
{ 0x00, 0x00, 0x48 }, { 0, 0, 99 },
{ 0x00, 0x00, 0x4a }, { 0, 0, 102 },
{ 0x00, 0x00, 0x4c }, { 0, 0, 105 },
{ 0x00, 0x00, 0x4e }, { 0, 0, 108 },
{ 0x00, 0x00, 0x50 }, { 0, 0, 111 },
{ 0x00, 0x00, 0x53 }, { 0, 0, 114 },
{ 0x00, 0x00, 0x55 }, { 0, 0, 117 },
{ 0x00, 0x00, 0x56 }, { 0, 0, 120 },
{ 0x00, 0x00, 0x59 }, { 0, 0, 123 },
{ 0x00, 0x00, 0x5b }, { 0, 0, 126 },
{ 0x00, 0x00, 0x5d }, { 0, 0, 129 },
{ 0x00, 0x00, 0x5f }, { 0, 0, 132 },
{ 0x00, 0x00, 0x62 }, { 0, 0, 135 },
{ 0x00, 0x00, 0x63 }, { 0, 0, 138 },
{ 0x00, 0x00, 0x66 }, { 0, 0, 141 },
{ 0x00, 0x00, 0x68 }, { 0, 0, 144 },
{ 0x00, 0x00, 0x6a }, { 0, 0, 147 },
{ 0x00, 0x00, 0x6c }, { 0, 0, 150 },
{ 0x00, 0x00, 0x6e }, { 0, 0, 153 },
{ 0x00, 0x00, 0x70 }, { 0, 0, 156 },
{ 0x00, 0x00, 0x73 }, { 0, 0, 159 },
{ 0x00, 0x00, 0x75 }, { 0, 0, 162 },
{ 0x00, 0x00, 0x77 }, { 0, 0, 165 },
{ 0x00, 0x00, 0x79 }, { 0, 0, 168 },
{ 0x00, 0x00, 0x7b }, { 0, 0, 171 },
{ 0x00, 0x00, 0x7d }, { 0, 0, 174 },
{ 0x00, 0x00, 0x7f }, { 0, 0, 177 },
{ 0x00, 0x00, 0x82 }, { 0, 0, 180 },
{ 0x00, 0x00, 0x84 }, { 0, 0, 183 },
{ 0x00, 0x00, 0x86 }, { 0, 0, 186 },
{ 0x00, 0x00, 0x88 }, { 0, 0, 189 },
{ 0x00, 0x00, 0x8a }, { 0, 0, 192 },
{ 0x00, 0x00, 0x8c }, { 0, 0, 195 },
{ 0x00, 0x00, 0x8e }, { 0, 0, 198 },
{ 0x00, 0x00, 0x91 }, { 0, 0, 201 },
{ 0x00, 0x00, 0x93 }, { 0, 0, 204 },
{ 0x00, 0x00, 0x95 }, { 0, 0, 207 },
{ 0x00, 0x00, 0x97 }, { 0, 0, 210 },
{ 0x00, 0x00, 0x99 }, { 0, 0, 213 },
{ 0x00, 0x00, 0x9b }, { 0, 0, 216 },
{ 0x00, 0x00, 0x9d }, { 0, 0, 219 },
{ 0x00, 0x00, 0x9f }, { 0, 0, 222 },
{ 0x00, 0x00, 0xa2 }, { 0, 0, 225 },
{ 0x00, 0x00, 0xa4 }, { 0, 0, 228 },
{ 0x00, 0x00, 0xa6 }, { 0, 0, 231 },
{ 0x00, 0x00, 0xa8 }, { 0, 0, 234 },
{ 0x00, 0x00, 0xaa }, { 0, 0, 237 },
{ 0x00, 0x00, 0xac }, { 0, 0, 240 },
{ 0x00, 0x00, 0xae }, { 0, 0, 243 },
{ 0x00, 0x00, 0xb1 }, { 0, 0, 246 },
{ 0x00, 0x00, 0xb3 }, { 0, 0, 249 },
{ 0x00, 0x00, 0xb5 }, { 0, 0, 252 },
{ 0x00, 0x00, 0xb7 }, { 0, 0, 255 },
{ 0x00, 0x00, 0xb9 }, { 0, 3, 252 },
{ 0x00, 0x00, 0xbb }, { 0, 6, 249 },
{ 0x00, 0x00, 0xbd }, { 0, 9, 246 },
{ 0x00, 0x00, 0xbf }, { 0, 12, 243 },
{ 0x00, 0x00, 0xc2 }, { 0, 15, 240 },
{ 0x00, 0x00, 0xc4 }, { 0, 18, 237 },
{ 0x00, 0x00, 0xc6 }, { 0, 21, 234 },
{ 0x00, 0x00, 0xc8 }, { 0, 24, 231 },
{ 0x00, 0x00, 0xca }, { 0, 27, 228 },
{ 0x00, 0x00, 0xcc }, { 0, 30, 225 },
{ 0x00, 0x00, 0xce }, { 0, 33, 222 },
{ 0x00, 0x00, 0xd1 }, { 0, 36, 219 },
{ 0x00, 0x00, 0xd3 }, { 0, 39, 216 },
{ 0x00, 0x00, 0xd5 }, { 0, 42, 213 },
{ 0x00, 0x00, 0xd7 }, { 0, 45, 210 },
{ 0x00, 0x00, 0xd9 }, { 0, 48, 207 },
{ 0x00, 0x00, 0xdb }, { 0, 51, 204 },
{ 0x00, 0x00, 0xdd }, { 0, 54, 201 },
{ 0x00, 0x00, 0xdf }, { 0, 57, 198 },
{ 0x00, 0x00, 0xe2 }, { 0, 60, 195 },
{ 0x00, 0x00, 0xe4 }, { 0, 63, 192 },
{ 0x00, 0x00, 0xe6 }, { 0, 66, 189 },
{ 0x00, 0x00, 0xe8 }, { 0, 69, 186 },
{ 0x00, 0x00, 0xea }, { 0, 72, 183 },
{ 0x00, 0x00, 0xec }, { 0, 75, 180 },
{ 0x00, 0x00, 0xee }, { 0, 78, 177 },
{ 0x00, 0x00, 0xf1 }, { 0, 81, 174 },
{ 0x00, 0x00, 0xf3 }, { 0, 84, 171 },
{ 0x00, 0x00, 0xf5 }, { 0, 87, 168 },
{ 0x00, 0x00, 0xf7 }, { 0, 90, 165 },
{ 0x00, 0x00, 0xf9 }, { 0, 93, 162 },
{ 0x00, 0x00, 0xfb }, { 0, 96, 159 },
{ 0x00, 0x00, 0xfd }, { 0, 99, 156 },
{ 0x01, 0x00, 0xfe }, { 0, 102, 153 },
{ 0x05, 0x00, 0xfa }, { 0, 105, 150 },
{ 0x09, 0x00, 0xf6 }, { 0, 108, 147 },
{ 0x0e, 0x00, 0xf2 }, { 0, 111, 144 },
{ 0x12, 0x00, 0xed }, { 0, 114, 141 },
{ 0x16, 0x00, 0xe9 }, { 0, 117, 138 },
{ 0x1b, 0x00, 0xe4 }, { 0, 120, 135 },
{ 0x1f, 0x00, 0xe0 }, { 0, 123, 132 },
{ 0x24, 0x00, 0xdc }, { 0, 126, 129 },
{ 0x27, 0x00, 0xd8 }, { 0, 129, 126 },
{ 0x2c, 0x00, 0xd3 }, { 0, 132, 123 },
{ 0x30, 0x00, 0xcf }, { 0, 135, 120 },
{ 0x35, 0x00, 0xcb }, { 0, 138, 117 },
{ 0x39, 0x00, 0xc6 }, { 0, 141, 114 },
{ 0x3d, 0x00, 0xc2 }, { 0, 144, 111 },
{ 0x42, 0x00, 0xbd }, { 0, 147, 108 },
{ 0x46, 0x00, 0xb9 }, { 0, 150, 105 },
{ 0x4b, 0x00, 0xb5 }, { 0, 153, 102 },
{ 0x4f, 0x00, 0xb0 }, { 0, 156, 99 },
{ 0x53, 0x00, 0xac }, { 0, 159, 96 },
{ 0x58, 0x00, 0xa7 }, { 0, 162, 93 },
{ 0x5c, 0x00, 0xa3 }, { 0, 165, 90 },
{ 0x61, 0x00, 0x9f }, { 0, 168, 87 },
{ 0x65, 0x00, 0x9a }, { 0, 171, 84 },
{ 0x69, 0x00, 0x96 }, { 0, 174, 81 },
{ 0x6e, 0x00, 0x91 }, { 0, 177, 78 },
{ 0x72, 0x00, 0x8d }, { 0, 180, 75 },
{ 0x77, 0x00, 0x89 }, { 0, 183, 72 },
{ 0x7b, 0x00, 0x84 }, { 0, 186, 69 },
{ 0x7f, 0x00, 0x80 }, { 0, 189, 66 },
{ 0x84, 0x00, 0x7b }, { 0, 192, 63 },
{ 0x88, 0x00, 0x77 }, { 0, 195, 60 },
{ 0x8d, 0x00, 0x73 }, { 0, 198, 57 },
{ 0x91, 0x00, 0x6e }, { 0, 201, 54 },
{ 0x95, 0x00, 0x6a }, { 0, 204, 51 },
{ 0x9a, 0x00, 0x65 }, { 0, 207, 48 },
{ 0x9e, 0x00, 0x61 }, { 0, 210, 45 },
{ 0xa3, 0x00, 0x5d }, { 0, 213, 42 },
{ 0xa7, 0x00, 0x58 }, { 0, 216, 39 },
{ 0xab, 0x00, 0x54 }, { 0, 219, 36 },
{ 0xb0, 0x00, 0x4f }, { 0, 222, 33 },
{ 0xb4, 0x00, 0x4b }, { 0, 225, 30 },
{ 0xb9, 0x00, 0x47 }, { 0, 228, 27 },
{ 0xbd, 0x00, 0x42 }, { 0, 231, 24 },
{ 0xc1, 0x00, 0x3e }, { 0, 234, 21 },
{ 0xc6, 0x00, 0x39 }, { 0, 237, 18 },
{ 0xca, 0x00, 0x35 }, { 0, 240, 15 },
{ 0xcf, 0x00, 0x31 }, { 0, 243, 12 },
{ 0xd3, 0x00, 0x2c }, { 0, 246, 9 },
{ 0xd7, 0x00, 0x28 }, { 0, 249, 6 },
{ 0xdc, 0x00, 0x23 }, { 0, 252, 3 },
{ 0xe0, 0x00, 0x1f }, { 0, 255, 0 },
{ 0xe5, 0x00, 0x1b }, { 3, 252, 0 },
{ 0xe9, 0x00, 0x16 }, { 6, 249, 0 },
{ 0xed, 0x00, 0x12 }, { 9, 246, 0 },
{ 0xf2, 0x00, 0x0d }, { 12, 243, 0 },
{ 0xf6, 0x00, 0x09 }, { 15, 240, 0 },
{ 0xfb, 0x00, 0x05 }, { 18, 237, 0 },
{ 0xfe, 0x01, 0x01 }, { 21, 234, 0 },
{ 0xff, 0x06, 0x00 }, { 24, 231, 0 },
{ 0xff, 0x0d, 0x00 }, { 27, 228, 0 },
{ 0xff, 0x13, 0x00 }, { 30, 225, 0 },
{ 0xff, 0x1a, 0x00 }, { 33, 222, 0 },
{ 0xff, 0x20, 0x00 }, { 36, 219, 0 },
{ 0xff, 0x26, 0x00 }, { 39, 216, 0 },
{ 0xff, 0x2d, 0x00 }, { 42, 213, 0 },
{ 0xff, 0x33, 0x00 }, { 45, 210, 0 },
{ 0xff, 0x3a, 0x00 }, { 48, 207, 0 },
{ 0xff, 0x40, 0x00 }, { 51, 204, 0 },
{ 0xff, 0x46, 0x00 }, { 54, 201, 0 },
{ 0xff, 0x4d, 0x00 }, { 57, 198, 0 },
{ 0xff, 0x53, 0x00 }, { 60, 195, 0 },
{ 0xff, 0x59, 0x00 }, { 63, 192, 0 },
{ 0xff, 0x60, 0x00 }, { 66, 189, 0 },
{ 0xff, 0x66, 0x00 }, { 69, 186, 0 },
{ 0xff, 0x6c, 0x00 }, { 72, 183, 0 },
{ 0xff, 0x73, 0x00 }, { 75, 180, 0 },
{ 0xff, 0x79, 0x00 }, { 78, 177, 0 },
{ 0xff, 0x80, 0x00 }, { 81, 174, 0 },
{ 0xff, 0x86, 0x00 }, { 84, 171, 0 },
{ 0xff, 0x8c, 0x00 }, { 87, 168, 0 },
{ 0xff, 0x93, 0x00 }, { 90, 165, 0 },
{ 0xff, 0x99, 0x00 }, { 93, 162, 0 },
{ 0xff, 0x9f, 0x00 }, { 96, 159, 0 },
{ 0xff, 0xa6, 0x00 }, { 99, 156, 0 },
{ 0xff, 0xac, 0x00 }, { 102, 153, 0 },
{ 0xff, 0xb3, 0x00 }, { 105, 150, 0 },
{ 0xff, 0xb9, 0x00 }, { 108, 147, 0 },
{ 0xff, 0xbf, 0x00 }, { 111, 144, 0 },
{ 0xff, 0xc6, 0x00 }, { 114, 141, 0 },
{ 0xff, 0xcc, 0x00 }, { 117, 138, 0 },
{ 0xff, 0xd2, 0x00 }, { 120, 135, 0 },
{ 0xff, 0xd9, 0x00 }, { 123, 132, 0 },
{ 0xff, 0xdf, 0x00 }, { 126, 129, 0 },
{ 0xff, 0xe6, 0x00 }, { 129, 126, 0 },
{ 0xff, 0xec, 0x00 }, { 132, 123, 0 },
{ 0xff, 0xf2, 0x00 }, { 135, 120, 0 },
{ 0xff, 0xf9, 0x00 }, { 138, 117, 0 },
{ 0xff, 0xfe, 0x01 }, { 141, 114, 0 },
{ 0xff, 0xff, 0x06 }, { 144, 111, 0 },
{ 0xff, 0xff, 0x0d }, { 147, 108, 0 },
{ 0xff, 0xff, 0x14 }, { 150, 105, 0 },
{ 0xff, 0xff, 0x1b }, { 153, 102, 0 },
{ 0xff, 0xff, 0x21 }, { 156, 99, 0 },
{ 0xff, 0xff, 0x28 }, { 159, 96, 0 },
{ 0xff, 0xff, 0x2f }, { 162, 93, 0 },
{ 0xff, 0xff, 0x35 }, { 165, 90, 0 },
{ 0xff, 0xff, 0x3c }, { 168, 87, 0 },
{ 0xff, 0xff, 0x42 }, { 171, 84, 0 },
{ 0xff, 0xff, 0x49 }, { 174, 81, 0 },
{ 0xff, 0xff, 0x4f }, { 177, 78, 0 },
{ 0xff, 0xff, 0x56 }, { 180, 75, 0 },
{ 0xff, 0xff, 0x5d }, { 183, 72, 0 },
{ 0xff, 0xff, 0x63 }, { 186, 69, 0 },
{ 0xff, 0xff, 0x6a }, { 189, 66, 0 },
{ 0xff, 0xff, 0x71 }, { 192, 63, 0 },
{ 0xff, 0xff, 0x77 }, { 195, 60, 0 },
{ 0xff, 0xff, 0x7e }, { 198, 57, 0 },
{ 0xff, 0xff, 0x84 }, { 201, 54, 0 },
{ 0xff, 0xff, 0x8b }, { 204, 51, 0 },
{ 0xff, 0xff, 0x92 }, { 207, 48, 0 },
{ 0xff, 0xff, 0x98 }, { 210, 45, 0 },
{ 0xff, 0xff, 0x9f }, { 213, 42, 0 },
{ 0xff, 0xff, 0xa6 }, { 216, 39, 0 },
{ 0xff, 0xff, 0xac }, { 219, 36, 0 },
{ 0xff, 0xff, 0xb3 }, { 222, 33, 0 },
{ 0xff, 0xff, 0xb9 }, { 225, 30, 0 },
{ 0xff, 0xff, 0xc0 }, { 228, 27, 0 },
{ 0xff, 0xff, 0xc7 }, { 231, 24, 0 },
{ 0xff, 0xff, 0xcd }, { 234, 21, 0 },
{ 0xff, 0xff, 0xd4 }, { 237, 18, 0 },
{ 0xff, 0xff, 0xdb }, { 240, 15, 0 },
{ 0xff, 0xff, 0xe1 }, { 243, 12, 0 },
{ 0xff, 0xff, 0xe8 }, { 246, 9, 0 },
{ 0xff, 0xff, 0xee }, { 249, 6, 0 },
{ 0xff, 0xff, 0xf5 }, { 252, 3, 0 },
{ 0xff, 0xff, 0xfb } { 255, 0, 0 },
} }; } };
const std::array<ui::Color, 256> spectrum_rgb4_lut { { const std::array<ui::Color, 256> spectrum_rgb4_lut { {