s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamslive now

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

The jam is running. Build something, or play the entries.

£50,000
prizepool
View the jam
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
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.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter