MCPcopy Create free account
hub / github.com/alandefreitas/matplotplusplus / cool

Function cool

source/matplot/util/colors.cpp:2035–2113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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},
2038 {0.015873, 0.984127, 1},
2039 {0.031746, 0.968254, 1},
2040 {0.047619, 0.952381, 1},
2041 {0.0634921, 0.936508, 1},
2042 {0.0793651, 0.920635, 1},
2043 {0.0952381, 0.904762, 1},
2044 {0.111111, 0.888889, 1},
2045 {0.126984, 0.873016, 1},
2046 {0.142857, 0.857143, 1},
2047 {0.15873, 0.84127, 1},
2048 {0.174603, 0.825397, 1},
2049 {0.190476, 0.809524, 1},
2050 {0.206349, 0.793651, 1},
2051 {0.222222, 0.777778, 1},
2052 {0.238095, 0.761905, 1},
2053 {0.253968, 0.746032, 1},
2054 {0.269841, 0.730159, 1},
2055 {0.285714, 0.714286, 1},
2056 {0.301587, 0.698413, 1},
2057 {0.31746, 0.68254, 1},
2058 {0.333333, 0.666667, 1},
2059 {0.349206, 0.650794, 1},
2060 {0.365079, 0.634921, 1},
2061 {0.380952, 0.619048, 1},
2062 {0.396825, 0.603175, 1},
2063 {0.412698, 0.587302, 1},
2064 {0.428571, 0.571429, 1},
2065 {0.444444, 0.555556, 1},
2066 {0.460317, 0.539683, 1},
2067 {0.47619, 0.52381, 1},
2068 {0.492063, 0.507937, 1},
2069 {0.507937, 0.492063, 1},
2070 {0.52381, 0.47619, 1},
2071 {0.539683, 0.460317, 1},
2072 {0.555556, 0.444444, 1},
2073 {0.571429, 0.428571, 1},
2074 {0.587302, 0.412698, 1},
2075 {0.603175, 0.396825, 1},
2076 {0.619048, 0.380952, 1},
2077 {0.634921, 0.365079, 1},
2078 {0.650794, 0.349206, 1},
2079 {0.666667, 0.333333, 1},
2080 {0.68254, 0.31746, 1},
2081 {0.698413, 0.301587, 1},
2082 {0.714286, 0.285714, 1},
2083 {0.730159, 0.269841, 1},
2084 {0.746032, 0.253968, 1},
2085 {0.761905, 0.238095, 1},
2086 {0.777778, 0.222222, 1},
2087 {0.793651, 0.206349, 1},
2088 {0.809524, 0.190476, 1},
2089 {0.825397, 0.174603, 1},
2090 {0.84127, 0.15873, 1},
2091 {0.857143, 0.142857, 1},
2092 {0.873016, 0.126984, 1},

Callers 1

mainFunction · 0.85

Calls 1

colormap_interpolationFunction · 0.85

Tested by

no test coverage detected