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
ColorHsv
chevron_left
Classes
struct
ColorHsv
Constructors
functions
ColorHsv
Properties
data_object
Alpha
data_object
Hue
data_object
Saturation
data_object
Value
Methods
functions
ToColor
functions
WithAlpha
functions
WithHue
functions
WithSaturation
functions
WithValue
ColorHsv
A color in Hue-Saturation-Value/Brightness format.
struct
sealed
Sandbox.System
build
Constructors
1
ColorHsv
(
h
,
s
,
v
,
a
)
Initializes a new HSV/HSB color. Hue is in the range of [0-360] and all other values are in range [0,1]
data_object
Properties
4
Alpha
float
Transparency of this color in range 0 (fully transparent) to 1 (fully opaque).
Hue
float
Hue component of this color in range 0 to 360.
Saturation
float
Saturation of this color in range 0 (white) to 1 (full color).
Value
float
Brightness of this color in range 0 (black) to 1 (full color).
functions
Methods
5
ToColor
(
)
Color
Convert this object to Color.
WithAlpha
(
alpha
)
ColorHsv
Returns a copy of this color with given alpha value.
WithHue
(
hue
)
ColorHsv
Returns a copy of this color with given Hue value.
WithSaturation
(
saturation
)
ColorHsv
Returns a copy of this color with given Saturation value.
WithValue
(
value
)
ColorHsv
Returns a copy of this color with given Brightness value.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.