s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
jams
Workshop
Steam
open_in_new
Steam Workshop
Assets
view_in_ar
Models
texture
Materials
apparel
Clothing
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
GradientStop
chevron_left
Classes
struct
GradientStop
Constructors
functions
GradientStop
Properties
data_object
Color
data_object
Offset
GradientStop
A color stop at a normalized position in a shape gradient.
struct
Sandbox.Fill
.
sealed
Sandbox.Engine
build
Constructors
1
GradientStop
(
offset
,
color
)
Creates a stop with a normalized position and straight-alpha color.
data_object
Properties
2
Color
Color
Straight-alpha color, interpolated in premultiplied sRGB.
Offset
float
Normalized position in [0, 1], validated when constructing a gradient.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.