Difference between revisions of "ColorComponent Script"
m
]] where it shouldn't be
imported>Cubedj21 (correction of HEC2DEC conversion from 167777215 to 16777215) |
imported>CraftySentinel m (]] where it shouldn't be) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ __NOEDITSECTION__ | __NOTOC__ __NOEDITSECTION__ | ||
'''Extends:''' None | '''Extends:''' None | ||
Script for the manipulation of Color Codes. | |||
== Definition == | == Definition == | ||
Line 15: | Line 11: | ||
== Global SKSE Member Functions== | == Global SKSE Member Functions== | ||
:'''Int [[GetAlpha - ColorComponent|GetAlpha]](Int ''argb'')''' | |||
:*Gets the Alpha component Value from the specified Alpha-Red-Green-Blue(ARGB) code. | |||
:'''Int [[GetRed - ColorComponent|GetRed]](Int ''argb'')''' | |||
:*Gets the Red component value from the specified ARGB color code. | |||
:'''Int [[GetGreen - ColorComponent|GetGreen]](Int ''argb'')''' | |||
:*Gets the Green component value of the specified ARGB color code. | |||
:'''Int [[GetBlue - ColorComponent|GetBlue]](Int ''argb'')''' | |||
:*Gets the Blue component value of the specified ARGB color code. | |||
:'''Float [[GetHue - ColorComponent|GetHue]](Int ''argb'')''' | |||
:*Gets the Hue value of the specified ARGB, ranging from 0.0 to 360.0. | |||
:'''Float [[GetSaturation - ColorComponent|GetSaturation]](Int ''argb'')''' | |||
:*Gets the Saturation value of the specified ARGB color code. | |||
:'''Float [[GetValue - ColorComponent|GetValue]](Int ''argb'')''' | |||
:*Gets the Value of the specified ARGB color code, Value is also known as Brightness or Luminosity. | |||
:'''Int [[SetAlpha - ColorComponent|SetAlpha]](Int ''argb'', Int ''a'')''' | |||
:*Sets the Alpha component value of the specified ARGB color code to the specified amount. | |||
:'''Int [[SetRed - ColorComponent|SetRed]](Int ''argb'', Int ''r'')''' | |||
:*Sets the Red component value of the specified ARGB color code to the specified amount. | |||
:'''Int [[SetGreen - ColorComponent|SetGreen]](Int ''argb'', Int ''g'')''' | |||
:*Sets the Green component value of the specified ARGB color code to the specified amount. | |||
:'''Int [[SetBlue - ColorComponent|SetBlue]](Int ''argb'', Int ''b'')''' | |||
:*Sets the Blue component value of the specified ARGB color code to the specified amount. | |||
:'''Int [[SetHue - ColorComponent|SetHue]](Int ''argb'', Float ''h'')''' | |||
:*Sets the Hue value of the specified ARGB color code to the specified value. | |||
:'''Int [[SetSaturation - ColorComponent|SetSaturation]](Int ''argb'', Float ''s'')''' | |||
:*Sets the Saturation value of the specified ARGB color code to the specified value. | |||
:'''Int [[SetValue - ColorComponent|SetValue]](Int ''argb'', Float ''v'')''' | |||
:*Sets the Value (Brightness) of the specified ARGB color code to the specified value. | |||
== Notes == | == Notes == | ||
Line 83: | Line 61: | ||
*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). | *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). | ||
==See Also == | ==See Also == |