MCPcopy Create free account
hub / github.com/AshenvaleZX/ZXEngine / ColorEditRestoreHS

Function ColorEditRestoreHS

CPPScripts/External/ImGui/imgui_widgets.cpp:5487–5502  ·  view source on GitHub ↗

ColorEdit supports RGB and HSV inputs. In case of RGB input resulting color may have undefined hue and/or saturation. Since widget displays both RGB and HSV values we must preserve hue and saturation to prevent these values resetting.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

ColorEdit4Method · 0.85
ColorPicker4Method · 0.85

Calls 1

ImVec4Class · 0.85

Tested by

no test coverage detected