Top Level Namespace

Defined in:

Method Summary

Method Detail

def clean_hex(hex : String) : String #

Removes '#' prefix (if any) and transforms 3 character hex colors to 6 character ones.


[View source]
def hex2rgb(hex : String) : NamedTuple(r: UInt8, g: UInt8, b: UInt8) #

Converts hex to rgb.


[View source]
def rgb2hex(r : UInt8, g : UInt8, b : UInt8) : String #

Converts rgb to hex.


[View source]