| 1996 | return result; |
| 1997 | } |
| 1998 | std::vector<std::vector<double>> hot(size_t n) { |
| 1999 | static std::vector<std::vector<double>> map = { |
| 2000 | {0.0416667, 0, 0}, {0.0833333, 0, 0}, {0.125, 0, 0}, |
| 2001 | {0.166667, 0, 0}, {0.208333, 0, 0}, {0.25, 0, 0}, |
| 2002 | {0.291667, 0, 0}, {0.333333, 0, 0}, {0.375, 0, 0}, |
| 2003 | {0.416667, 0, 0}, {0.458333, 0, 0}, {0.5, 0, 0}, |
| 2004 | {0.541667, 0, 0}, {0.583333, 0, 0}, {0.625, 0, 0}, |
| 2005 | {0.666667, 0, 0}, {0.708333, 0, 0}, {0.75, 0, 0}, |
| 2006 | {0.791667, 0, 0}, {0.833333, 0, 0}, {0.875, 0, 0}, |
| 2007 | {0.916667, 0, 0}, {0.958333, 0, 0}, {1, 0, 0}, |
| 2008 | {1, 0.0416667, 0}, {1, 0.0833333, 0}, {1, 0.125, 0}, |
| 2009 | {1, 0.166667, 0}, {1, 0.208333, 0}, {1, 0.25, 0}, |
| 2010 | {1, 0.291667, 0}, {1, 0.333333, 0}, {1, 0.375, 0}, |
| 2011 | {1, 0.416667, 0}, {1, 0.458333, 0}, {1, 0.5, 0}, |
| 2012 | {1, 0.541667, 0}, {1, 0.583333, 0}, {1, 0.625, 0}, |
| 2013 | {1, 0.666667, 0}, {1, 0.708333, 0}, {1, 0.75, 0}, |
| 2014 | {1, 0.791667, 0}, {1, 0.833333, 0}, {1, 0.875, 0}, |
| 2015 | {1, 0.916667, 0}, {1, 0.958333, 0}, {1, 1, 0}, |
| 2016 | {1, 1, 0.0625}, {1, 1, 0.125}, {1, 1, 0.1875}, |
| 2017 | {1, 1, 0.25}, {1, 1, 0.3125}, {1, 1, 0.375}, |
| 2018 | {1, 1, 0.4375}, {1, 1, 0.5}, {1, 1, 0.5625}, |
| 2019 | {1, 1, 0.625}, {1, 1, 0.6875}, {1, 1, 0.75}, |
| 2020 | {1, 1, 0.8125}, {1, 1, 0.875}, {1, 1, 0.9375}, |
| 2021 | {1, 1, 1}}; |
| 2022 | if (n == 64) { |
| 2023 | return map; |
| 2024 | } |
| 2025 | std::vector<std::vector<double>> result; |
| 2026 | for (size_t i = 0; i < n; ++i) { |
| 2027 | std::array<float, 4> ac = |
| 2028 | colormap_interpolation(static_cast<double>(i), 0., |
| 2029 | static_cast<double>(n - 1), map); |
| 2030 | std::vector<double> vc = {ac[1], ac[2], ac[3]}; |
| 2031 | result.emplace_back(vc); |
| 2032 | } |
| 2033 | return result; |
| 2034 | } |
| 2035 | std::vector<std::vector<double>> cool(size_t n) { |
| 2036 | static std::vector<std::vector<double>> map = { |
| 2037 | {0, 1, 1}, |
no test coverage detected