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

Function colorcube

source/matplot/util/colors.cpp:2751–2829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2749 return result;
2750 }
2751 std::vector<std::vector<double>> colorcube(size_t n) {
2752 static std::vector<std::vector<double>> map = {
2753 {0.333333, 0.333333, 0},
2754 {0.333333, 0.666667, 0},
2755 {0.333333, 1, 0},
2756 {0.666667, 0.333333, 0},
2757 {0.666667, 0.666667, 0},
2758 {0.666667, 1, 0},
2759 {1, 0.333333, 0},
2760 {1, 0.666667, 0},
2761 {1, 1, 0},
2762 {0, 0.333333, 0.5},
2763 {0, 0.666667, 0.5},
2764 {0, 1, 0.5},
2765 {0.333333, 0, 0.5},
2766 {0.333333, 0.333333, 0.5},
2767 {0.333333, 0.666667, 0.5},
2768 {0.333333, 1, 0.5},
2769 {0.666667, 0, 0.5},
2770 {0.666667, 0.333333, 0.5},
2771 {0.666667, 0.666667, 0.5},
2772 {0.666667, 1, 0.5},
2773 {1, 0, 0.5},
2774 {1, 0.333333, 0.5},
2775 {1, 0.666667, 0.5},
2776 {1, 1, 0.5},
2777 {0, 0.333333, 1},
2778 {0, 0.666667, 1},
2779 {0, 1, 1},
2780 {0.333333, 0, 1},
2781 {0.333333, 0.333333, 1},
2782 {0.333333, 0.666667, 1},
2783 {0.333333, 1, 1},
2784 {0.666667, 0, 1},
2785 {0.666667, 0.333333, 1},
2786 {0.666667, 0.666667, 1},
2787 {0.666667, 1, 1},
2788 {1, 0, 1},
2789 {1, 0.333333, 1},
2790 {1, 0.666667, 1},
2791 {0.166667, 0, 0},
2792 {0.333333, 0, 0},
2793 {0.5, 0, 0},
2794 {0.666667, 0, 0},
2795 {0.833333, 0, 0},
2796 {1, 0, 0},
2797 {0, 0.166667, 0},
2798 {0, 0.333333, 0},
2799 {0, 0.5, 0},
2800 {0, 0.666667, 0},
2801 {0, 0.833333, 0},
2802 {0, 1, 0},
2803 {0, 0, 0.166667},
2804 {0, 0, 0.333333},
2805 {0, 0, 0.5},
2806 {0, 0, 0.666667},
2807 {0, 0, 0.833333},
2808 {0, 0, 1},

Callers

nothing calls this directly

Calls 1

colormap_interpolationFunction · 0.85

Tested by

no test coverage detected