utils
methods
.color(red, green, blue)
returns rgb object
parameter type optional default
red int[0,255] y 0
green int[0,255] y 0
blue int[0,255] y 0
returns:

let teal = utils.color(0, 128, 128)
				
.hexColor(hex)
converts hex to rgb
parameter type optional default
hex string y 0
returns:

let teal = utils.hexColor("#008080")
				
.HSLColor(red, green, blue)
converts hsl to rgb
parameter type optional default
hue float[0,360] y 0
saturation float[0,1] y 0
lighness float[0,1] y 0
returns:

let teal = utils.HSLColor(180, 1, 0.251)
				
.HSVColor(red, green, blue)
converts hsv to rgb
parameter type optional default
hue float[0,360] y 0
saturation float[0,1] y 0
value float[0,1] y 0
returns:

let teal = utils.HSVColor(180, 1, 0.502)
				
.randomColor()
creates a random color
returns:

let random = utils.randomColor()
				
properties
.commands
an object containing the values for all the openrgb commands
parameter value
requestControllerCount 0
requestControllerData 1
requestProtocolVersion 40
setClientName 50
deviceListUpdated 100
resizeZone 1000
updateLeds 1050
updateZoneLeds 1051
updateSingleLed 1052
setCustomMode 1100
updateMode 1101
type:
object

let commands = utils.command
				
.deviceType
converts hsv to rgb
parameter value
motherboard 0
dram 1
gpu 2
cooler 3
ledstrip 4
keyboard 5
mouse 6
mousemat 7
headset 8
headsetStand 9
gamepad 10
light 11
unknown 12
type:
object

let deviceTypes = utils.deviceType
				
.direction
an object containing the values for all the openrgb commands
parameter value
left 0
right 1
up 2
down 3
horizontal 4
vertical 5
type:
object

let directions = utils.direction