Difference between revisions of "Chroma:color"
From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>") |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
<languages /> | <languages /> | ||
− | '''<translate>Available since</translate>:''' Gideros 2020. | + | '''<translate>Available since</translate>:''' Gideros 2020.7<br/> |
'''<translate>Class</translate>:''' [[Special:MyLanguage/chroma|chroma]]<br/> | '''<translate>Class</translate>:''' [[Special:MyLanguage/chroma|chroma]]<br/> | ||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
<translate>This sets all the LED colours very quickly to a specific colour.</translate> | <translate>This sets all the LED colours very quickly to a specific colour.</translate> | ||
− | < | + | <syntaxhighlight lang="lua"> |
() = Chroma:color(devices,color) | () = Chroma:color(devices,color) | ||
− | </ | + | </syntaxhighlight> |
=== <translate>Parameters</translate> === | === <translate>Parameters</translate> === | ||
'''devices''': (text) <translate>Name of the device, eg keyboard, mouse.</translate><br/> | '''devices''': (text) <translate>Name of the device, eg keyboard, mouse.</translate><br/> |
Latest revision as of 15:27, 13 July 2023
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