MCPcopy Create free account
hub / github.com/Wemino/EchoPatch / UpdateDebugToolFlashStyleColor

Method UpdateDebugToolFlashStyleColor

include/imgui/imgui.cpp:16285–16294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16283}
16284
16285void ImGui::UpdateDebugToolFlashStyleColor()
16286{
16287 ImGuiContext& g = *GImGui;
16288 if (g.DebugFlashStyleColorTime <= 0.0f)
16289 return;
16290 ColorConvertHSVtoRGB(ImCos(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);
16291 g.Style.Colors[g.DebugFlashStyleColorIdx].w = 1.0f;
16292 if ((g.DebugFlashStyleColorTime -= g.IO.DeltaTime) <= 0.0f)
16293 DebugFlashStyleColorStop();
16294}
16295
16296ImU64 ImGui::DebugTextureIDToU64(ImTextureID tex_id)
16297{

Callers

nothing calls this directly

Calls 1

DebugFlashStyleColorStopFunction · 0.85

Tested by

no test coverage detected