s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Classes
ColorHsv
chevron_left
Classes
struct
ColorHsv
search
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.