Renaming rdm_color function.

This commit is contained in:
Patrick Shriwise 2018-11-02 22:07:51 -05:00
parent 8fab7f4217
commit 3c3c3fb282
2 changed files with 4 additions and 4 deletions

View file

@ -368,14 +368,14 @@ Plot::set_default_colors(pugi::xml_node plot_node)
color_by_ = PlotColorBy::cells;
colors_.resize(n_cells);
for (int i = 0; i < n_cells; i++) {
colors_[i] = rdm_color();
colors_[i] = random_color();
}
} else if("material" == pl_color_by) {
color_by_ = PlotColorBy::mats;
colors_.resize(n_materials);
for (int i = 0; i < materials.size(); i++) {
colors_[i] = rdm_color();
colors_[i] = random_color();
}
} else {
std::stringstream err_msg;
@ -973,7 +973,7 @@ voxel_finalize(hid_t dspace, hid_t dset, hid_t memspace)
H5Sclose(memspace);
}
RGBColor rdm_color() {
RGBColor random_color() {
RGBColor rgb;
rgb[RED] = int(prn()*255);
rgb[GREEN] = int(prn()*255);