Chroma:clear: Difference between revisions
From GiderosMobile
Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2020.6<br/> '''<translate>Class</translate>:''' chroma<br/> === <tr..." |
No edit summary |
||
| (3 intermediate revisions by 2 users 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"> | ||
(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 20: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