Difference between revisions of "Chroma:colorScroll"

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>Scrolls the LED colours in a given direction.</translate>
+
Scrolls the LED colours in a given direction.
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
() = Chroma:colorScroll(device,dirX,dirY,flush)
 
() = Chroma:colorScroll(device,dirX,dirY,flush)
 
</syntaxhighlight>
 
</syntaxhighlight>
=== <translate>Parameters</translate> ===
+
 
'''device''': (text) <translate>Name of the device, eg keyboard, mouse.</translate><br/>
+
=== Parameters ===
'''dirx''': (number) <translate>Negative to rotate left, zero to ignore, positive to rotate right.</translate><br/>
+
'''device''': (text) name of the device, eg keyboard, mouse<br/>
'''diry''': (number) <translate>Negative to rotate up, zero to ignore, positive to rotate down.</translate><br/>
+
'''dirx''': (number) negative to rotate left, zero to ignore, positive to rotate right<br/>
'''flush''': (bool) <translate>True to send the colours to the device, default false. </translate> '''optional'''<br/>
+
'''diry''': (number) negative to rotate up, zero to ignore, positive to rotate down<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:47, 6 November 2024

Available since: Gideros 2020.7
Class: chroma

Description

Scrolls the LED colours in a given direction.

() = Chroma:colorScroll(device,dirX,dirY,flush)

Parameters

device: (text) name of the device, eg keyboard, mouse
dirx: (number) negative to rotate left, zero to ignore, positive to rotate right
diry: (number) negative to rotate up, zero to ignore, positive to rotate down
flush: (bool) True to send the colours to the device, default false optional

Return values