ColorComponent Script
Extends: None
Script for the manipulation of Color Codes.
Definition
Scriptname ColorComponent Hidden
Global SKSE Member Functions
- Int GetAlpha(Int argb)
- Gets the Alpha component Value from the specified Alpha-Red-Green-Blue(ARGB) code.
- Int GetRed(Int argb)
- Gets the Red component value from the specified ARGB color code.
- Int GetGreen(Int argb)
- Gets the Green component value of the specified ARGB color code.
- Int GetBlue(Int argb)
- Gets the Blue component value of the specified ARGB color code.
- Float GetHue(Int argb)
- Gets the Hue value of the specified ARGB, ranging from 0.0 to 360.0.
- Float GetSaturation(Int argb)
- Gets the Saturation value of the specified ARGB color code.
- Float GetValue(Int argb)
- Gets the Value of the specified ARGB color code, Value is also known as Brightness or Luminosity.
- Int SetAlpha(Int argb, Int a)
- Sets the Alpha component value of the specified ARGB color code to the specified amount.
- Int SetRed(Int argb, Int r)
- Sets the Red component value of the specified ARGB color code to the specified amount.
- Int SetGreen(Int argb, Int g)
- Sets the Green component value of the specified ARGB color code to the specified amount.
- Int SetBlue(Int argb, Int b)
- Sets the Blue component value of the specified ARGB color code to the specified amount.
- Int SetHue(Int argb, Float h)
- Sets the Hue value of the specified ARGB color code to the specified value.
- Int SetSaturation(Int argb, Float s)
- Sets the Saturation value of the specified ARGB color code to the specified value.
- Int SetValue(Int argb, Float v)
- Sets the Value (Brightness) of the specified ARGB color code to the specified value.
Notes
- The bulk of the functions were added by SKSE in 1.06.00, however GetAlpha and SetAlpha were added in 1.06.02, while GetValue and SetValue were added in 1.06.03 replacing GetLuminosity and SetLuminosity.
- The get functions (Excluding GetAlpha since ColorForms do not contain a alpha channel) within this script are used by functions of the same name contained within ColorForm Script, to access the individual color components of a ColorForm's ARGB.
- All ARGB color codes are Decimal conversions of Hex color codes. For example, a color code of 16777215 in Decimal is equivalent to #00FFFFFF in Hex (0 ,255, 255, 255 in ARGB values).