Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Displays a linear RGBA color through a display-sRGB picker and returns edits in linear space.

API: scripting
Project: Inno.Editor.ImGui
Scope: Editor

public static bool InnoEditor.ImGui.ImGui.ColorEditLinear4(string label, ref System.Numerics.Vector4 value, InnoEditor.ImGui.ImGuiColorEditFlags flags = InnoEditor.ImGui.ImGuiColorEditFlags.None)

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.

True if the display color changed and value contains decoded linear RGB.

Exception T:System.ArgumentException: HSV input storage conflicts with the linear-RGB value contract.