Difference between revisions of "Chroma:clear"
From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight") |
|||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
| − | + | '''Available since:''' Gideros 2020.7<br/> | |
| − | ''' | + | '''Class:''' [[chroma]]<br/> |
| − | ''' | + | |
| − | === | + | === Description === |
| − | + | Basically sets all the LED colours on the device to a specific colour. | |
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
(number) = Chroma:clear(device,color,flush) | (number) = Chroma:clear(device,color,flush) | ||
| − | </ | + | </syntaxhighlight> |
| − | === | + | |
| − | '''device''': (text) | + | === Parameters === |
| − | '''colour''': (number) | + | '''device''': (text) name of the device, eg keyboard, mouse<br/> |
| − | '''flush''': (bool) | + | '''colour''': (number) BGR colour value<br/> |
| − | === | + | '''flush''': (bool) True to send the colours to the device, default false '''optional'''<br/> |
| + | |||
| + | === Return values === | ||
{{Chroma}} | {{Chroma}} | ||
Latest revision as of 21:45, 6 November 2024
Available since: Gideros 2020.7
Class: chroma
Description
Basically sets all the LED colours on the device to a specific colour.
(number) = Chroma:clear(device,color,flush)
Parameters
device: (text) name of the device, eg keyboard, mouse
colour: (number) BGR colour value
flush: (bool) True to send the colours to the device, default false optional
Return values