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