docs.unity.cn
    Show / Hide Table of Contents

    Struct LerpColor

    Linearly interpolate between two values a and b by ratio t.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.Splines.Interpolators
    Syntax
    public struct LerpColor : IInterpolator<Color>

    Methods

    Interpolate(Color, Color, Single)

    Linearly interpolates between a and b by t.

    Declaration
    public Color Interpolate(Color a, Color b, float t)
    Parameters
    Type Name Description
    Color a

    Start value, returned when t = 0.

    Color b

    End value, returned when t = 1.

    Single t

    Interpolation ratio.

    Returns
    Type Description
    Color

    The interpolated result between the two values.

    Implements
    IInterpolator<T>.Interpolate(T, T, Single)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Thursday, April 27, 2023