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