Difference between revisions of "Chroma:color"
From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>") |
|||
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"> | <syntaxhighlight lang="lua"> | ||
() = Chroma:color(devices,color) | () = Chroma:color(devices,color) | ||
</syntaxhighlight> | </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 21: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