Difference between revisions of "Chroma:color"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
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>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.
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
() = Chroma:color(devices,color)
 
() = Chroma:color(devices,color)
 
</syntaxhighlight>
 
</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/>
=== <translate>Return values</translate> ===
+
'''colour''': (number) BGR colour value<br/>
 +
 
 +
=== 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