API Documentation

for 0.0.1
Show:

StyledLetter Class

StyledLetter is a class that helps to represents a letter with its style for later drawing.

Constructor

StyledLetter

(
  • params
)

Parameters:

  • params Object

    Parameters Object

    • letter String

      the letter's string (character)

    • size Number

      the size of the font

    • font Font

      a Mobilizing font reference

    • color Color

      a Mobilizing Color

Methods

setColor

(
  • color
)

Defines the letter's color

Parameters:

setFont

(
  • font
)

Defines the letter's font

Parameters:

setLetter

(
  • letter
)

Defines the letter's string

Parameters:

  • letter String

setSize

(
  • size
)

Defines the letter's font size

Parameters:

  • size Number

setX

(
  • x
)

Defines the letter's x coord

Parameters:

  • x Number

setY

(
  • y
)

Defines the letter's y coord

Parameters:

  • y Number

update

()

Updates properties according to the new settings