Difference between revisions of "Chroma:color"
From GiderosMobile
(Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2020.6<br/> '''<translate>Class</translate>:''' chroma<br/> === <tr...") |
|||
| (4 intermediate revisions by 2 users 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 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