Synced
ImGui.ColorEditLinear4
Section titled “ImGui.ColorEditLinear4”
- Displays a linear RGBA color through a display-sRGB picker and returns edits in linear space.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.ImGui
Scope: Editor
Declaration
Section titled “Declaration”public static bool InnoEditor.ImGui.ImGui.ColorEditLinear4(string label, ref System.Numerics.Vector4 value, InnoEditor.ImGui.ImGuiColorEditFlags flags = InnoEditor.ImGui.ImGuiColorEditFlags.None)Parameters
Section titled “Parameters”Parameter label: The stable identity and visible label of the color control.
Parameter value: Linear RGB and alpha; only changed RGB channels are decoded, while alpha is never transfer-encoded.
Parameter flags: Dear ImGui color-edit flags; display modes interpret sRGB values and input storage must be RGB.
Returns
Section titled “Returns”True if the display color changed and value contains decoded linear RGB.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: HSV input storage conflicts with the linear-RGB value contract.