MatrixCredits Class
Widget to display text similar to what was used in the credits for The Matrix. If you render the widget into the body, then it will fill the viewport. Otherwise, you must specify a width and height for the widget.
Constructor
MatrixCredits
-
config
Parameters:
-
config
ObjectWidget configuration
Item Index
Attributes
charRange
Array
The range of Unicode characters to use for spinning characters. For most interesting results, all the characters in textSequence should be in this range.
Default: ['!', '~']
cursor
String
- none
- Each line is drawn all at once and then begins to phase in.
- block
- The text appears as a block cursor (\u2588) scans across the container.
- char
- The text appears as a randomly changing character scans across the container.
Default: "block"
maxPhaseCount
Number
The maximum number of iterations before a character is forced to the final value. Each character stops changing when it hits the correct value or exceeds the maximum. Specify zero to simply display the text.
Default: 20
restartDelay
Number
Milliseconds to wait before restarting the text sequence.
Overridden by pause
value of last item in textSequence
.
Default: 5000