SignBoard
class SignBoardWebGL-based LED SignBoard effect for image / video / text
Constructor#
new SignBoard(canvas, src, options)| PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
|---|---|---|---|---|
| canvas | string | HTMLElement | CSS query selector or canvas element | ||
| src | string | Source URL to the image / video | ||
| options | SignBoardOptions | โ๏ธ | {} | An options object |
Properties#
src#
Current src of the image/video, or text string when the contentType is "text"
Type: string
initialized#
Whether the SignBoard#init is called
Type: boolean
contentType#
Current value of the contentType option
See:
contentAttribs#
Current value of the contentAttribs option
See:
autoResize#
Current value of the autoResize option
See:
autoInit#
Current value of the autoInit option
See:
frameRate#
Current value of the frameRate option
See:
tileSize#
Current value of the tileSize option
See:
emission#
Current value of the emission option
See:
dissipation#
Current value of the dissipation option
See:
bulbSize#
Current value of the bulbSize option
See:
objectFit#
Current value of the objectFit option
See:
textOptions#
Current value of the textOptions option
See:
textPadding#
Current value of the textPadding option
See:
scrollSpeed#
Current value of the scrollSpeed option
See:
initOnFontLoad#
Current value of the initOnFontLoad option
See:
Methods#
destroy#
Destroy the current instance, and release all resources
Returns: void
init#
Initialize SignBoard
Returns: Promise<SignBoard>
- The current instance
resize#
Resize SignBoard with the latest size of the canvas
Returns: SignBoard
- The current instance
start#
Start rendering
Returns: SignBoard
- The current instance
stop#
Stop rendering
Returns: SignBoard
- The current instance
update#
Update the texture
Returns: SignBoard
- The current instance
| PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
|---|---|---|---|---|
| src | string | โ๏ธ | New src to the image/video or text string if contentType is "text" |