33 lines
625 B
C++
33 lines
625 B
C++
#include <iostream>
|
|
#include <vector>
|
|
#include <functional>
|
|
#include <mcolor.h>
|
|
#include <Color4.hpp>
|
|
#include <Colors.hpp>
|
|
|
|
int main()
|
|
{
|
|
#ifdef WIN32
|
|
mcolor::windowsSaneify();
|
|
#endif
|
|
|
|
// TODO: Demo Color Space Math Operations
|
|
|
|
// TODO: Demo Color Representation Conversions
|
|
|
|
// TODO: Demo Color output in console.
|
|
|
|
print_builtin_color_list();
|
|
mcolor::printAnsiColorTable();
|
|
mcolor::printRGBConsoleTest();
|
|
|
|
|
|
for (int i = 0; i < 255; i++) {
|
|
Color4 c = Color4::FromHSV(i/255.f, 1.f, 1.f);
|
|
std::cout << std::format("{},{},{}", c.r, c.g, c.b) << std::endl;
|
|
}
|
|
|
|
|
|
return 0;
|
|
}
|