s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Classes
ColorHsv
chevron_left Classes
struct
ColorHsv

Constructors

functionsColorHsv

Properties

data_objectAlphadata_objectHuedata_objectSaturationdata_objectValue

Methods

functionsToColorfunctionsWithAlphafunctionsWithHuefunctionsWithSaturationfunctionsWithValue
ColorHsv
A color in Hue-Saturation-Value/Brightness format.
struct
sealedSandbox.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.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter