Synced
EditorPalette.Lerp
Section titled “EditorPalette.Lerp”
- Linearly interpolates two palette colors using a clamped amount.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.ImGui
Scope: Editor
Declaration
Section titled “Declaration”public static System.Numerics.Vector4 InnoEditor.ImGui.EditorPalette.Lerp(System.Numerics.Vector4 from, System.Numerics.Vector4 to, float amount)Parameters
Section titled “Parameters”Parameter from: The color returned when amount is zero.
Parameter to: The color returned when amount is one.
Parameter amount: The interpolation amount, clamped to the inclusive zero-to-one range.
Returns
Section titled “Returns”The component-wise interpolated color.