Top Level Namespace
Defined in:
Method Summary
-
clean_hex(hex : String) : String
Removes '#' prefix (if any) and transforms 3 character hex colors to 6 character ones.
-
hex2rgb(hex : String) : NamedTuple(r: UInt8, g: UInt8, b: UInt8)
Converts hex to rgb.
-
rgb2hex(r : UInt8, g : UInt8, b : UInt8) : String
Converts rgb to hex.
Method Detail
def clean_hex(hex : String) : String
#
Removes '#' prefix (if any) and transforms 3 character hex colors to 6 character ones.