Skip to content

Commit

Permalink
removed colour palette lists
Browse files Browse the repository at this point in the history
  • Loading branch information
dcooley committed Dec 3, 2020
1 parent 60289d9 commit 5350085
Show file tree
Hide file tree
Showing 52 changed files with 274 additions and 262 deletions.
12 changes: 7 additions & 5 deletions inst/include/colourvalues/palettes/blue2green.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,13 @@ namespace palette {
0.0117647058823529,0.00784313725490196,0.00392156862745098,0
};

const Rcpp::List blue2green = Rcpp::List::create(
_["r"] = blue2green_red,
_["g"] = blue2green_green,
_["b"] = blue2green_blue
);
// inline Rcpp::DataFrame blue2green() {
// return Rcpp::DataFrame::create(
// _["r"] = blue2green_red,
// _["g"] = blue2green_green,
// _["b"] = blue2green_blue
// );
// }
} // namespace palette
} // namepsace colourvalues

Expand Down
12 changes: 7 additions & 5 deletions inst/include/colourvalues/palettes/blue2red.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,13 @@ namespace palette {
0,0,0,0
};

const Rcpp::List blue2red = Rcpp::List::create(
_["r"] = blue2red_red,
_["g"] = blue2red_green,
_["b"] = blue2red_blue
);
// inline Rcpp::DataFrame blue2red() {
// return Rcpp::DataFrame::create(
// _["r"] = blue2red_red,
// _["g"] = blue2red_green,
// _["b"] = blue2red_blue
// );
// }
} // namespace palette
} // namepsace colourvalues

Expand Down
12 changes: 7 additions & 5 deletions inst/include/colourvalues/palettes/blue2yellow.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,13 @@ namespace palette {
0.0117647058823529,0.00784313725490196,0.00392156862745098,0
};

const Rcpp::List blue2yellow = Rcpp::List::create(
_["r"] = blue2yellow_red,
_["g"] = blue2yellow_green,
_["b"] = blue2yellow_blue
);
// inline Rcpp::DataFrame blue2yellow() {
// return Rcpp::DataFrame::create(
// _["r"] = blue2yellow_red,
// _["g"] = blue2yellow_green,
// _["b"] = blue2yellow_blue
// );
// }
} // namespace palette
} // namepsace colourvalues

Expand Down
12 changes: 7 additions & 5 deletions inst/include/colourvalues/palettes/blues.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ namespace palette {
0.709803921568627,0.611764705882353,0.419607843137255
};

const Rcpp::List blues = Rcpp::List::create(
_["r"] = blues_red,
_["g"] = blues_green,
_["b"] = blues_blue
);
// inline Rcpp::DataFrame blues() {
// return Rcpp::DataFrame::create(
// _["r"] = blues_red,
// _["g"] = blues_green,
// _["b"] = blues_blue
// );
// }
} // namespace palette
} // namepsace colourvalues

Expand Down
12 changes: 7 additions & 5 deletions inst/include/colourvalues/palettes/brbg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ namespace palette {
0.188235294117647
};

const Rcpp::List brbg = Rcpp::List::create(
_["r"] = brbg_red,
_["g"] = brbg_green,
_["b"] = brbg_blue
);
// inline Rcpp::DataFrame brbg() {
// return Rcpp::DataFrame::create(
// _["r"] = brbg_red,
// _["g"] = brbg_green,
// _["b"] = brbg_blue
// );
// }
} // namespace palette
} // namepsace colourvalues

Expand Down
12 changes: 7 additions & 5 deletions inst/include/colourvalues/palettes/bugn.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ namespace palette {
0.270588235294118,0.172549019607843,0.105882352941176
};

const Rcpp::List bugn = Rcpp::List::create(
_["r"] = bugn_red,
_["g"] = bugn_green,
_["b"] = bugn_blue
);
// inline Rcpp::DataFrame bugn() {
// Rcpp::List::create(
// _["r"] = bugn_red,
// _["g"] = bugn_green,
// _["b"] = bugn_blue
// );
// }
} // namespace palette
} // namepsace colourvalues

Expand Down
10 changes: 5 additions & 5 deletions inst/include/colourvalues/palettes/bupu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ namespace palette {
0.615686274509804,0.486274509803922,0.294117647058824
};

const Rcpp::List bupu = Rcpp::List::create(
_["r"] = bupu_red,
_["g"] = bupu_green,
_["b"] = bupu_blue
);
// const Rcpp::List bupu = Rcpp::List::create(
// _["r"] = bupu_red,
// _["g"] = bupu_green,
// _["b"] = bupu_blue
// );
} // namespace palette
} // namepsace colourvalues

Expand Down
10 changes: 5 additions & 5 deletions inst/include/colourvalues/palettes/cividis.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ namespace palette {
0.2708, 0.2655, 0.26, 0.2593, 0.2634, 0.268, 0.2731
};

const Rcpp::List cividis = Rcpp::List::create(
Rcpp::_["r"] = cividis_red,
Rcpp::_["g"] = cividis_green,
Rcpp::_["b"] = cividis_blue
);
// const Rcpp::List cividis = Rcpp::List::create(
// Rcpp::_["r"] = cividis_red,
// Rcpp::_["g"] = cividis_green,
// Rcpp::_["b"] = cividis_blue
// );

} // namespace palette
} // namepsace colourvalues
Expand Down
10 changes: 5 additions & 5 deletions inst/include/colourvalues/palettes/cm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ namespace palette {
1,1,1,1
};

const Rcpp::List cm = Rcpp::List::create(
_["r"] = cm_red,
_["g"] = cm_green,
_["b"] = cm_blue
);
// const Rcpp::List cm = Rcpp::List::create(
// _["r"] = cm_red,
// _["g"] = cm_green,
// _["b"] = cm_blue
// );
} // namespace palette
} // namepsace colourvalues

Expand Down
10 changes: 5 additions & 5 deletions inst/include/colourvalues/palettes/cyan2yellow.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ namespace palette {
0.0117647058823529,0.00784313725490196,0.00392156862745098,0
};

const Rcpp::List cyan2yellow = Rcpp::List::create(
_["r"] = cyan2yellow_red,
_["g"] = cyan2yellow_green,
_["b"] = cyan2yellow_blue
);
// const Rcpp::List cyan2yellow = Rcpp::List::create(
// _["r"] = cyan2yellow_red,
// _["g"] = cyan2yellow_green,
// _["b"] = cyan2yellow_blue
// );
} // namespace palette
} // namepsace colourvalues

Expand Down
10 changes: 5 additions & 5 deletions inst/include/colourvalues/palettes/diverge_hcl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ namespace palette {
0.254901960784314,0.247058823529412,0.23921568627451,0.231372549019608
};

const Rcpp::List diverge_hcl = Rcpp::List::create(
_["r"] = diverge_hcl_red,
_["g"] = diverge_hcl_green,
_["b"] = diverge_hcl_blue
);
// const Rcpp::List diverge_hcl = Rcpp::List::create(
// _["r"] = diverge_hcl_red,
// _["g"] = diverge_hcl_green,
// _["b"] = diverge_hcl_blue
// );
} // namespace palette
} // namepsace colourvalues

Expand Down
10 changes: 5 additions & 5 deletions inst/include/colourvalues/palettes/diverge_hsv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ namespace palette {
0.164705882352941,0.133333333333333,0.0862745098039216,0
};

const Rcpp::List diverge_hsv = Rcpp::List::create(
_["r"] = diverge_hsv_red,
_["g"] = diverge_hsv_green,
_["b"] = diverge_hsv_blue
);
// const Rcpp::List diverge_hsv = Rcpp::List::create(
// _["r"] = diverge_hsv_red,
// _["g"] = diverge_hsv_green,
// _["b"] = diverge_hsv_blue
// );
} // namespace palette
} // namepsace colourvalues

Expand Down
10 changes: 5 additions & 5 deletions inst/include/colourvalues/palettes/gnbu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ namespace palette {
0.745098039215686,0.674509803921569,0.505882352941176
};

const Rcpp::List gnbu = Rcpp::List::create(
_["r"] = gnbu_red,
_["g"] = gnbu_green,
_["b"] = gnbu_blue
);
// const Rcpp::List gnbu = Rcpp::List::create(
// _["r"] = gnbu_red,
// _["g"] = gnbu_green,
// _["b"] = gnbu_blue
// );
} // namespace palette
} // namepsace colourvalues

Expand Down
10 changes: 5 additions & 5 deletions inst/include/colourvalues/palettes/green2red.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ namespace palette {
0,0,0,0
};

const Rcpp::List green2red = Rcpp::List::create(
_["r"] = green2red_red,
_["g"] = green2red_green,
_["b"] = green2red_blue
);
// const Rcpp::List green2red = Rcpp::List::create(
// _["r"] = green2red_red,
// _["g"] = green2red_green,
// _["b"] = green2red_blue
// );
} // namespace palette
} // namepsace colourvalues

Expand Down
10 changes: 5 additions & 5 deletions inst/include/colourvalues/palettes/greens.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ namespace palette {
0.270588235294118,0.172549019607843,0.105882352941176
};

const Rcpp::List greens = Rcpp::List::create(
_["r"] = greens_red,
_["g"] = greens_green,
_["b"] = greens_blue
);
// const Rcpp::List greens = Rcpp::List::create(
// _["r"] = greens_red,
// _["g"] = greens_green,
// _["b"] = greens_blue
// );
} // namespace palette
} // namepsace colourvalues

Expand Down
10 changes: 5 additions & 5 deletions inst/include/colourvalues/palettes/greys.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ namespace palette {
0.32156862745098,0.145098039215686,0
};

const Rcpp::List greys = Rcpp::List::create(
_["r"] = greys_red,
_["g"] = greys_green,
_["b"] = greys_blue
);
// const Rcpp::List greys = Rcpp::List::create(
// _["r"] = greys_red,
// _["g"] = greys_green,
// _["b"] = greys_blue
// );
} // namespace palette
} // namepsace colourvalues

Expand Down
10 changes: 5 additions & 5 deletions inst/include/colourvalues/palettes/heat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ namespace palette {
0.945098039215686,0.96078431372549,0.976470588235294,0.992156862745098
};

const Rcpp::List heat = Rcpp::List::create(
_["r"] = heat_red,
_["g"] = heat_green,
_["b"] = heat_blue
);
// const Rcpp::List heat = Rcpp::List::create(
// _["r"] = heat_red,
// _["g"] = heat_green,
// _["b"] = heat_blue
// );
} // namespace palette
} // namepsace colourvalues

Expand Down
10 changes: 5 additions & 5 deletions inst/include/colourvalues/palettes/heat_hcl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ namespace palette {
0.56078431372549,0.580392156862745,0.603921568627451,0.741176470588235
};

const Rcpp::List heat_hcl = Rcpp::List::create(
_["r"] = heat_hcl_red,
_["g"] = heat_hcl_green,
_["b"] = heat_hcl_blue
);
// const Rcpp::List heat_hcl = Rcpp::List::create(
// _["r"] = heat_hcl_red,
// _["g"] = heat_hcl_green,
// _["b"] = heat_hcl_blue
// );
} // namespace palette
} // namepsace colourvalues

Expand Down
10 changes: 5 additions & 5 deletions inst/include/colourvalues/palettes/inferno.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,11 @@ namespace palette {
0.644924005
};

const Rcpp::List inferno = Rcpp::List::create(
Rcpp::_["r"] = inferno_red,
Rcpp::_["g"] = inferno_green,
Rcpp::_["b"] = inferno_blue
);
// const Rcpp::List inferno = Rcpp::List::create(
// Rcpp::_["r"] = inferno_red,
// Rcpp::_["g"] = inferno_green,
// Rcpp::_["b"] = inferno_blue
// );

} // namespace palette
} // namepsace colourvalues
Expand Down
10 changes: 5 additions & 5 deletions inst/include/colourvalues/palettes/magenta2green.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ namespace palette {
0.0117647058823529,0.00784313725490196,0.00392156862745098,0
};

const Rcpp::List magenta2green = Rcpp::List::create(
_["r"] = magenta2green_red,
_["g"] = magenta2green_green,
_["b"] = magenta2green_blue
);
// const Rcpp::List magenta2green = Rcpp::List::create(
// _["r"] = magenta2green_red,
// _["g"] = magenta2green_green,
// _["b"] = magenta2green_blue
// );
} // namespace palette
} // namepsace colourvalues

Expand Down
10 changes: 5 additions & 5 deletions inst/include/colourvalues/palettes/magma.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,11 @@ namespace palette {
0.749504188
};

const Rcpp::List magma = Rcpp::List::create(
Rcpp::_["r"] = magma_red,
Rcpp::_["g"] = magma_green,
Rcpp::_["b"] = magma_blue
);
// const Rcpp::List magma = Rcpp::List::create(
// Rcpp::_["r"] = magma_red,
// Rcpp::_["g"] = magma_green,
// Rcpp::_["b"] = magma_blue
// );
} // namespace palette
} // namepsace colourvalues
#endif
10 changes: 5 additions & 5 deletions inst/include/colourvalues/palettes/matlab_like.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ namespace palette {
0,0,0,0
};

const Rcpp::List matlab_like = Rcpp::List::create(
_["r"] = matlab_like_red,
_["g"] = matlab_like_green,
_["b"] = matlab_like_blue
);
// const Rcpp::List matlab_like = Rcpp::List::create(
// _["r"] = matlab_like_red,
// _["g"] = matlab_like_green,
// _["b"] = matlab_like_blue
// );
} // namespace palette
} // namepsace colourvalues

Expand Down
Loading

0 comments on commit 5350085

Please sign in to comment.