s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
live now
Game Jam III
Ends
Fri 25 Sep
Theme
One More Round
The jam is running. Build something, or play the entries.
£
50,000
prizepool
View the jam
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
input
Log in with Steam
Api
Classes
Color32
Lerp
chevron_left
Classes
struct
Color32
Constructors
functions
Color32
Fields
crop_din
a
crop_din
b
crop_din
g
crop_din
r
Properties
data_object
Hex
data_object
RawInt
data_object
Rgb
data_object
Rgba
data_object
RgbaInt
data_object
RgbInt
Methods
functions
LerpTo
functions
ToColor
functions
Write
Static Properties
data_object
Black
data_object
Transparent
data_object
White
Static Methods
functions
FromRgb
functions
FromRgba
functions
Lerp
functions
Max
functions
Min
functions
Parse
functions
Read
Lerp
Performs linear interpolation between two colors.
method
static
static
Color32
Lerp
(
in
Color32
a
,
in
Color32
b
,
float
frac
)
Parameters
Name
Type
Description
in
a
Color32
The source color.
in
b
Color32
The target color.
frac
float
Fraction to the target color. 0 will return source color, 1 will return target color, 0.5 will "mix" the 2 colors equally.
Returns
Type
Description
Color32
The interpolated color.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.