Color
Overview
Return Value
Function
Functions
CopyColor()
Copies a color.
CopyKColor()
KColor
CopyKColor(
KColor
kColor)
Helper function to copy a KColor
Isaac API class.
GetRandomColor()
Color
GetRandomColor(integer |
RNG
? seedOrRNG? =
tsil.rng.getrandomseed() , number? alpha = 1 )
Helper function to get a random color. Only randomizes the R, G and B fields.
HexToColor()
Color
HexToColor(string hex, number alpha)
Converts a hex string like "#33aa33" to a Color object.
HexToKColor()
KColor
HexToKColor(string hex, number alpha)
Converts a hex string like "#33aa33" to a KColor object.
Last updated