| 48 | } |
| 49 | |
| 50 | ImVec4 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 | |
| 65 | void utils::DrawGrid() |
| 66 | { |