Difference between revisions of "Chroma:effect"

From GiderosMobile
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2020.7<br/>
'''<translate>Available since</translate>:''' Gideros 2020.7<br/>
+
'''Class:''' [[chroma]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/chroma|chroma]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Sends raw effect data to the Chroma server.</translate>
+
Sends raw effect data to the Chroma server.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
() = Chroma:effect(device,effect,param)
 
() = Chroma:effect(device,effect,param)
</source>
+
</syntaxhighlight>
=== <translate>Parameters</translate> ===
+
 
'''device''': (text) <translate>Name of the device, eg keyboard, mouse.</translate><br/>
+
=== Parameters ===
'''effect''': (text) <translate>Can be 'none', 'static', 'custom', or 'key'.</translate><br/>
+
'''device''': (text) name of the device, eg keyboard, mouse<br/>
'''param''': (number) <translate>BGR colour for static effect.</translate><br/>
+
'''effect''': (text) can be 'none', 'static', 'custom', or 'key'<br/>
'''param''': (table) <translate>Table data for custom or key effects.</translate><br/>
+
'''param''': (number) BGR colour for static effect<br/>
=== <translate>Return values</translate> ===
+
'''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