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

Function winter

source/matplot/util/colors.cpp:2309–2387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2307 return result;
2308 }
2309 std::vector<std::vector<double>> winter(size_t n) {
2310 static std::vector<std::vector<double>> map = {
2311 {0, 0, 1},
2312 {0, 0.015873, 0.992063},
2313 {0, 0.031746, 0.984127},
2314 {0, 0.047619, 0.97619},
2315 {0, 0.0634921, 0.968254},
2316 {0, 0.0793651, 0.960317},
2317 {0, 0.0952381, 0.952381},
2318 {0, 0.111111, 0.944444},
2319 {0, 0.126984, 0.936508},
2320 {0, 0.142857, 0.928571},
2321 {0, 0.15873, 0.920635},
2322 {0, 0.174603, 0.912698},
2323 {0, 0.190476, 0.904762},
2324 {0, 0.206349, 0.896825},
2325 {0, 0.222222, 0.888889},
2326 {0, 0.238095, 0.880952},
2327 {0, 0.253968, 0.873016},
2328 {0, 0.269841, 0.865079},
2329 {0, 0.285714, 0.857143},
2330 {0, 0.301587, 0.849206},
2331 {0, 0.31746, 0.84127},
2332 {0, 0.333333, 0.833333},
2333 {0, 0.349206, 0.825397},
2334 {0, 0.365079, 0.81746},
2335 {0, 0.380952, 0.809524},
2336 {0, 0.396825, 0.801587},
2337 {0, 0.412698, 0.793651},
2338 {0, 0.428571, 0.785714},
2339 {0, 0.444444, 0.777778},
2340 {0, 0.460317, 0.769841},
2341 {0, 0.47619, 0.761905},
2342 {0, 0.492063, 0.753968},
2343 {0, 0.507937, 0.746032},
2344 {0, 0.52381, 0.738095},
2345 {0, 0.539683, 0.730159},
2346 {0, 0.555556, 0.722222},
2347 {0, 0.571429, 0.714286},
2348 {0, 0.587302, 0.706349},
2349 {0, 0.603175, 0.698413},
2350 {0, 0.619048, 0.690476},
2351 {0, 0.634921, 0.68254},
2352 {0, 0.650794, 0.674603},
2353 {0, 0.666667, 0.666667},
2354 {0, 0.68254, 0.65873},
2355 {0, 0.698413, 0.650794},
2356 {0, 0.714286, 0.642857},
2357 {0, 0.730159, 0.634921},
2358 {0, 0.746032, 0.626984},
2359 {0, 0.761905, 0.619048},
2360 {0, 0.777778, 0.611111},
2361 {0, 0.793651, 0.603175},
2362 {0, 0.809524, 0.595238},
2363 {0, 0.825397, 0.587302},
2364 {0, 0.84127, 0.579365},
2365 {0, 0.857143, 0.571429},
2366 {0, 0.873016, 0.563492},

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 1

colormap_interpolationFunction · 0.85

Tested by

no test coverage detected