Skip to content

Repository files navigation

Here’s a revised and polished version of your README.md that improves clarity, formatting, and tone while preserving all technical details:


randomcolor-cpp

A C++ port of randomColor (commit 8f970a).

Tested with Visual Studio 2022.


🚀 Usage

See main.cpp for a basic usage example.

RandomColor::Options opt;
opt.schema = RandomColor::SCHEMA::FULLCOLOR;
opt.luminosity = RandomColor::LUMINOSITY::BRIGHT;
autoRG = RandomColor::RandomColorGenerator{opt};
for (int i = 0; i < 20; i++)
{
autoconst& rgb = RG.NextRGB();
intconst r = std::get<0>(rgb);
intconst g = std::get<1>(rgb);
intconst b = std::get<2>(rgb);
std::cout << r << "," << g << "," << b << std::endl;
}

Console Output


🎨 Examples

This project includes two examples:

  • A console-based demo for quick testing.
  • An ImGui-based GUI demo using the ImGui framework.

If you have ImGui set up, you can experiment with color generation parameters interactively.

ImGui Demo


⚠️ Limitations

Currently, this utility only generates colors in RGB format.

About

No description, website, or topics provided.

Resources

Stars

9 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages