diff --git a/include/openmc/plot.h b/include/openmc/plot.h index f633394a61..fb379ae469 100644 --- a/include/openmc/plot.h +++ b/include/openmc/plot.h @@ -197,7 +197,7 @@ void create_voxel(Plot pl); //! Create a randomly generated RGB color //! \return RGBColor with random value -RGBColor rdm_color(); +RGBColor random_color(); } // namespace openmc diff --git a/src/plot.cpp b/src/plot.cpp index 903f3280ba..38c0eb1945 100644 --- a/src/plot.cpp +++ b/src/plot.cpp @@ -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);