color
color: { convertRGB: ( ( r: number , g: number , b: number ) => number [] ) ; hexToDec: ( ( hex: string , bgr?: boolean ) => string ) ; hexToRGB: ( ( hex: string ) => number [] ) ; randomHexColor: ( ( ) => string ) ; rgbToBgr: ( ( rgb: string ) => string ) ; rgbToDec: ( ( r: number , g: number , b: number ) => string ) ; rgbToHex: ( ( r: number , g: number , b: number ) => string ) ; }
Type declaration
convertRGB: ( ( r: number , g: number , b: number ) => number [] )
( r: number , g: number , b: number ) : number []
Parameters
r: number
g: number
b: number
Returns number []
hex To Dec: ( ( hex: string , bgr?: boolean ) => string )
( hex: string , bgr?: boolean ) : string
Parameters
hex: string
bgr: boolean = false
Returns string
hex ToRGB: ( ( hex: string ) => number [] )
( hex: string ) : number []
Returns number []
random Hex Color: ( ( ) => string )
( ) : string
Returns string
rgb To Bgr: ( ( rgb: string ) => string )
( rgb: string ) : string
Returns string
rgb To Dec: ( ( r: number , g: number , b: number ) => string )
( r: number , g: number , b: number ) : string
Parameters
r: number
g: number
b: number
Returns string
rgb To Hex: ( ( r: number , g: number , b: number ) => string )
( r: number , g: number , b: number ) : string
Parameters
r: number
g: number
b: number
Returns string
A module used for serializing bricks into a storeable-data format.
Can be used for saving user build creations.
Example