Constructors

Link copied to clipboard
constructor()
constructor(colors: Array<Color>)
constructor(snakeLength: Int, colors: Array<Color>)
constructor(snakeLength: Int, spacingBetween: Int, colors: Array<Color>)
constructor(snakeLength: Int, spacingBetween: Int, repeatAfter: Int, colors: Array<Color>)
constructor(snakeLength: Int, spacingBetween: Int, repeatAfter: Int, backgroundColor: Color, colors: Array<Color>)
constructor(snakeLength: Int, spacingBetween: Int, repeatAfter: Int, backgroundColor: Color, speed: Float, colors: Array<Color>)
constructor(snakeLength: Int, spacingBetween: Int, repeatAfter: Int, backgroundColor: Color, speed: Float, direction: Direction, colors: Array<Color>)

Properties

Link copied to clipboard
Link copied to clipboard
open val colors: Array<Color>
Link copied to clipboard
Link copied to clipboard
open var repeatAfter: Int
Link copied to clipboard
open var snakeLength: Int
Link copied to clipboard
Link copied to clipboard
open var speed: Float

Functions

Link copied to clipboard
open fun getBrightness(): Int
Link copied to clipboard
open fun getStartIndex(): Int
Link copied to clipboard
open fun getStopIndex(): Int
Link copied to clipboard
open fun setBrightness(brightness: Int)
Brightness of selected animation.
Link copied to clipboard
open fun setColors(colors: Array<Color>)
Link copied to clipboard
open fun setIndexes(startIndex: Int, stopIndex: Int)
Set both the first, and last LED in a string that you'd like this animation to show on.
Link copied to clipboard
open fun setStartIndex(startIndex: Int)
The first LED in the string that you'd like this animation to display on.
Link copied to clipboard
open fun setStopIndex(stopIndex: Int)
The last LED in the string that you'd like this animation to display on.