SignBoard
class SignBoard
WebGL-based LED SignBoard effect for image / video / text
#
Constructornew 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#
srcCurrent src of the image/video, or text string when the contentType
is "text"
Type: string
#
initializedWhether the SignBoard#init is called
Type: boolean
#
contentTypeCurrent value of the contentType
option
See:
#
contentAttribsCurrent value of the contentAttribs
option
See:
#
autoResizeCurrent value of the autoResize
option
See:
#
autoInitCurrent value of the autoInit
option
See:
#
frameRateCurrent value of the frameRate
option
See:
#
tileSizeCurrent value of the tileSize
option
See:
#
emissionCurrent value of the emission
option
See:
#
dissipationCurrent value of the dissipation
option
See:
#
bulbSizeCurrent value of the bulbSize
option
See:
#
objectFitCurrent value of the objectFit
option
See:
#
textOptionsCurrent value of the textOptions
option
See:
#
textPaddingCurrent value of the textPadding
option
See:
#
scrollSpeedCurrent value of the scrollSpeed
option
See:
#
initOnFontLoadCurrent value of the initOnFontLoad
option
See:
#
Methods#
destroyDestroy the current instance, and release all resources
Returns: void
#
initInitialize SignBoard
Returns: Promise<SignBoard>
- The current instance
#
resizeResize SignBoard with the latest size of the canvas
Returns: SignBoard
- The current instance
#
startStart rendering
Returns: SignBoard
- The current instance
#
stopStop rendering
Returns: SignBoard
- The current instance
#
updateUpdate 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" |