Tesla Graphics Engine Documentation (January 2012)
Lerp Method (a, b, percent)
Tesla
►
Tesla.Math
►
Color
►
Lerp(Color, Color, Single)
C#
Linearly interpolates between two colors.
Declaration Syntax
C#
public
static
Color
Lerp
(
Color
a
,
Color
b
,
float
percent
)
Parameters
a
(
Color
)
Starting color
b
(
Color
)
Ending color
percent
(
Single
)
Amount to interpolate by
Return Value
Interpolated color
Assembly:
Tesla
(Module: Tesla) Version: 0.5.0.0 (0.5.0.0)