| 13876 | } |
| 13877 | |
| 13878 | void ImGui::UpdateDebugToolFlashStyleColor() |
| 13879 | { |
| 13880 | ImGuiContext& g = *GImGui; |
| 13881 | if (g.DebugFlashStyleColorTime <= 0.0f) |
| 13882 | return; |
| 13883 | ColorConvertHSVtoRGB(cosf(g.DebugFlashStyleColorTime * 6.0f) * 0.5f + 0.5f, 0.5f, 0.5f, g.Style.Colors[g.DebugFlashStyleColorIdx].x, g.Style.Colors[g.DebugFlashStyleColorIdx].y, g.Style.Colors[g.DebugFlashStyleColorIdx].z); |
| 13884 | g.Style.Colors[g.DebugFlashStyleColorIdx].w = 1.0f; |
| 13885 | if ((g.DebugFlashStyleColorTime -= g.IO.DeltaTime) <= 0.0f) |
| 13886 | DebugFlashStyleColorStop(); |
| 13887 | } |
| 13888 | |
| 13889 | // Avoid naming collision with imgui_demo.cpp's HelpMarker() for unity builds. |
| 13890 | static void MetricsHelpMarker(const char* desc) |
nothing calls this directly
no test coverage detected