Chroma:effect: 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 === | ||
Sends raw effect data to the Chroma server. | |||
< | <syntaxhighlight lang="lua"> | ||
() = Chroma:effect(device,effect,param) | () = Chroma:effect(device,effect,param) | ||
</ | </syntaxhighlight> | ||
=== | |||
'''device''': (text) | === Parameters === | ||
'''effect''': (text) | '''device''': (text) name of the device, eg keyboard, mouse<br/> | ||
'''param''': (number) | '''effect''': (text) can be 'none', 'static', 'custom', or 'key'<br/> | ||
'''param''': (table) | '''param''': (number) BGR colour for static effect<br/> | ||
=== | '''param''': (table) Table data for custom or key effects<br/> | ||
=== Return values === | |||
{{Chroma}} | {{Chroma}} | ||
Latest revision as of 20:48, 6 November 2024
Available since: Gideros 2020.7
Class: chroma
Description
Sends raw effect data to the Chroma server.
() = Chroma:effect(device,effect,param)
Parameters
device: (text) name of the device, eg keyboard, mouse
effect: (text) can be 'none', 'static', 'custom', or 'key'
param: (number) BGR colour for static effect
param: (table) Table data for custom or key effects
Return values