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
results
Game Jam III
Crowned
Sat 3 Oct
Winner
๐ GAMMA ☢ TEAM
Theme
One More Round
This jam is over. The next one will show up here.
See the results
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
Get s&box
Sign in with Steam
Api
Classes
Color32
LerpTo
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
LerpTo
Performs linear interpolation between this and given colors.
method
Color32
LerpTo
(
in
Color32
target
,
float
frac
)
Parameters
Name
Type
Description
in
target
Color32
Color B
frac
float
Fraction, where 0 would return this, 0.5 would return a point between this and given colors, and 1 would return the given color.
Returns
Type
Description
Color32
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.