MCPcopy Create free account
hub / github.com/dejwk/roo_display / ColorRandomizer

Method ColorRandomizer

test/offscreen_test.cpp:405–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403class ColorRandomizer {
404 public:
405 ColorRandomizer(int size, ColorMode color_mode = ColorMode())
406 : color_mode_(std::move(color_mode)),
407 distribution_(0, MaxRawValue()),
408 colors_(new Color[size]) {
409 for (int i = 0; i < size; ++i) {
410 colors_[i] = next();
411 }
412 }
413
414 Color* get() { return colors_.get(); }
415

Callers

nothing calls this directly

Calls 1

ColorModeEnum · 0.85

Tested by

no test coverage detected