MCPcopy Create free account
hub / github.com/Vector35/debugger / Style

Class Style

cli/log.h:36–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 };
35
36 struct Style
37 {
38 float m_red {255.f}, m_green {255.f}, m_blue {255.f};
39
40 Style() = default;
41
42 Style(float red, float green, float blue) : m_red(red), m_green(green), m_blue(blue) {}
43
44 [[nodiscard]] std::string AsAnsi() const
45 {
46 return fmt::format("\x1b[38;2;{:.0f};{:.0f};{:.0f}m", this->m_red, this->m_green, this->m_blue);
47 }
48 };
49
50 inline void SetupAnsi()
51 {

Callers 4

printFunction · 0.85
RegisterDisplayFunction · 0.85
DisasmDisplayFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected