Chroma:setKey: Difference between revisions
From GiderosMobile
Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2020.6<br/> '''<translate>Class</translate>:''' chroma<br/> === <tr..." |
No edit summary |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2020.7<br/> | |||
''' | '''Class:''' [[chroma]]<br/> | ||
''' | |||
=== | === Description === | ||
Sets the LED colour for a specific key. | |||
< | <syntaxhighlight lang="lua"> | ||
() = | () = Chroma:setKey(keys,colors,flush) | ||
</ | </syntaxhighlight> | ||
=== | |||
'''keys''': (text) | === Parameters === | ||
'''keys''': (table) | '''keys''': (text) name of they key to set the colour of<br/> | ||
'''colours''': (number) | '''keys''': (table) Table of key names to set the colour of<br/> | ||
'''colours''': (table) | '''colours''': (number) BGR colour value<br/> | ||
'''flush''': (bool) | '''colours''': (table) multiple BGR colour values<br/> | ||
=== | '''flush''': (bool) True to send the colours to the device, default false '''optional'''<br/> | ||
=== Return values === | |||
{{Chroma}} | {{Chroma}} | ||
Latest revision as of 20: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