core.libraries.thirdparty.niknaks.modules.sh_color_extended
(no description)
Functions
Brighten(amount)
View source »Brightens the color by [0-255]-amount.
Parameters
-
amount
number
Returns
-
Color
Darken(amount)
View source »Darkens the color by [0-255]-amount.
Parameters
-
amount
number
Returns
-
Color
Invert()
View source »Inverts the color.
Returns
-
Color
IsBright()
View source »Returns true if the color is bright. Useful to check if the text infront should be dark.
Returns
-
boolean
IsDark()
View source »Returns true if the color is bright. Useful to check if the text infront should be bright.
Returns
-
boolean
NikNaks.CMYKToColor(c, m, y, k)
View source »Converts CMYK variables into a color.
Parameters
-
c
any
-
m
any
-
y
any
-
k
any
Returns
-
Color
NikNaks.ColorToCMYK(color)
View source »Converts a color into CMYK variables.
Parameters
-
color
Returns
-
number c
-
number m
-
number y
-
number j
NikNaks.ColorToHex(color)
View source »Converts a color into a hex-string.
Parameters
-
color
Color
Returns
NikNaks.HexToColor(str)
View source »Converts a hex-stirng into a color.
Parameters
-
str
string
Returns
-
Color
ToCMYK()
View source »Converts a color into CMYK variables.
Returns
-
number c
-
number m
-
number y
-
number j
ToCartoon(color)
View source »Cartoonify the color.
Parameters
-
color
Color
Returns
-
Color
ToGrayscale()
View source »Turns the color into a gray-scale.
Returns
-
Color
ToHex()
View source »Converts a color into a hex-string.
Returns
ToLuminance()
View source »Returns the luminance amount. How "bright" a color is between 0 and 255.
Returns
-
number
Fields
color
View source »Returns the luminance amount. How "bright" a color is between 0 and 255.
-
color
Color