mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
Updating random_color generation.
This commit is contained in:
parent
9ed73c3c96
commit
148c588a39
1 changed files with 1 additions and 5 deletions
|
|
@ -968,11 +968,7 @@ voxel_finalize(hid_t dspace, hid_t dset, hid_t memspace)
|
|||
}
|
||||
|
||||
RGBColor random_color() {
|
||||
RGBColor rgb;
|
||||
rgb[RED] = int(prn()*255);
|
||||
rgb[GREEN] = int(prn()*255);
|
||||
rgb[BLUE] = int(prn()*255);
|
||||
return rgb;
|
||||
return {int(prn()*255), int(prn()*255), int(prn()*255)};
|
||||
}
|
||||
|
||||
} // namespace openmc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue