Chroma:color: Difference between revisions
From GiderosMobile
No edit summary |
No edit summary |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2020.7<br/> | |||
''' | '''Class:''' [[chroma]]<br/> | ||
''' | |||
=== | === Description === | ||
This sets all the LED colours very quickly to a specific colour. | |||
< | <syntaxhighlight lang="lua"> | ||
() = Chroma:color(devices,color) | () = Chroma:color(devices,color) | ||
</ | </syntaxhighlight> | ||
=== | |||
'''devices''': (text) | === Parameters === | ||
'''devices''': (table) | '''devices''': (text) name of the device, eg keyboard, mouse<br/> | ||
'''colour''': (number) | '''devices''': (table) multiple names of the devices, eg keyboard, mouse. Nil for all<br/> | ||
=== | '''colour''': (number) BGR colour value<br/> | ||
=== Return values === | |||
{{Chroma}} | {{Chroma}} | ||
Latest revision as of 20:40, 6 November 2024
Available since: Gideros 2020.7
Class: chroma
Description
This sets all the LED colours very quickly to a specific colour.
() = Chroma:color(devices,color)
Parameters
devices: (text) name of the device, eg keyboard, mouse
devices: (table) multiple names of the devices, eg keyboard, mouse. Nil for all
colour: (number) BGR colour value
Return values