MCPcopy Create free account
hub / github.com/Raais/ImStudio / RainbowCol

Method RainbowCol

src/utils/ims_utils.cpp:50–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50ImVec4 utils::RainbowCol()
51{
52 static ImVec4 col = ImVec4(0.0f, 0.0f, 0.0f, 1.0f);
53 static int c = 0;
54 if (c>=10)
55 {
56 col.x = RandomFloat(0.0f, 0.7f);
57 col.y = RandomFloat(0.0f, 0.7f);
58 col.z = RandomFloat(0.0f, 0.7f);
59 c = 0;
60 }
61 c++;
62 return col;
63}
64
65void utils::DrawGrid()
66{

Callers

nothing calls this directly

Calls 1

ImVec4Class · 0.85

Tested by

no test coverage detected