Difference between revisions of "Chroma:setKey"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
 
(One intermediate revision 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>Sets the LED colour for a specific key.</translate>
+
Sets the LED colour for a specific key.
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
() = Chroma:setKey(keys,colors,flush)
 
() = Chroma:setKey(keys,colors,flush)
</source>
+
</syntaxhighlight>
=== <translate>Parameters</translate> ===
+
 
'''keys''': (text) <translate>Name of they key to set the colour of.</translate><br/>
+
=== Parameters ===
'''keys''': (table) <translate>Table of key names to set the colour of.</translate><br/>
+
'''keys''': (text) name of they key to set the colour of<br/>
'''colours''': (number) <translate>BGR colour value.</translate><br/>
+
'''keys''': (table) Table of key names to set the colour of<br/>
'''colours''': (table) <translate>Multiple BGR colour values.</translate><br/>
+
'''colours''': (number) BGR colour value<br/>
'''flush''': (bool) <translate>True to send the colours to the device, default false. </translate> '''optional'''<br/>
+
'''colours''': (table) multiple BGR colour values<br/>
=== <translate>Return values</translate> ===
+
'''flush''': (bool) True to send the colours to the device, default false '''optional'''<br/>
 +
 
 +
=== Return values ===
  
  
 
{{Chroma}}
 
{{Chroma}}

Latest revision as of 21:58, 6 November 2024

Available since: Gideros 2020.7
Class: chroma

Description

Sets the LED colour for a specific key.

() = Chroma:setKey(keys,colors,flush)

Parameters

keys: (text) name of they key to set the colour of
keys: (table) Table of key names to set the colour of
colours: (number) BGR colour value
colours: (table) multiple BGR colour values
flush: (bool) True to send the colours to the device, default false optional

Return values