Difference between revisions of "Chroma:color"

From GiderosMobile
(Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2020.6<br/> '''<translate>Class</translate>:''' chroma<br/> === <tr...")
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2020.7<br/>
'''<translate>Available since</translate>:''' Gideros 2020.6<br/>
+
'''Class:''' [[chroma]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/chroma|chroma]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>This sets all the LED colours very quickly to a specific colour.</translate>
+
This sets all the LED colours very quickly to a specific colour.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
() = Chroma:color(devices,color)
 
() = Chroma:color(devices,color)
</source>
+
</syntaxhighlight>
=== <translate>Parameters</translate> ===
+
 
'''devices''': (text) <translate>Name of the device, eg keyboard, mouse.</translate><br/>
+
=== Parameters ===
'''devices''': (table) <translate>Multiple names of the devices, eg keyboard, mouse. Nil for all.</translate><br/>
+
'''devices''': (text) name of the device, eg keyboard, mouse<br/>
'''colour''': (number) <translate>BGR colour value.</translate><br/>
+
'''devices''': (table) multiple names of the devices, eg keyboard, mouse. Nil for all<br/>
 +
'''colour''': (number) BGR colour value<br/>
  
=== <translate>Return values</translate> ===
+
=== Return values ===
  
  
 
{{Chroma}}
 
{{Chroma}}

Latest revision as of 21:40, 6 November 2024

Available since: Gideros 2020.7
Class: chroma

Description

This sets all the LED colours very quickly to a specific colour.

() = Chroma:color(devices,color)

Parameters

devices: (text) name of the device, eg keyboard, mouse
devices: (table) multiple names of the devices, eg keyboard, mouse. Nil for all
colour: (number) BGR colour value

Return values