text()

Use Bitsbox's text command to write words on the screen. You can make text any size and any color that you want.

You can use the text command with a lot of different parameters, or options.

The most basic usage requires nothing but the text you want to print. You can write out strings, numbers, or variables.

    Writes the word 'hello!'.
    Writes the number 42.

This program combines the words 'you' and 'me' and prints it to the screen.

You can control your text's appearance with additional parameters.

    Writes the word 'Bob' at position 100,100.
    Writes the word 'Sam' in red.
    Writes the word 'Go' at 90,90 in tan.
    Writes 'Big' at position 10,600 but 500 pixels tall.
    Writes 'Tiny' in red and 10 pixels tall.

If you assign a text command to a variable, you can then call a .change() command to alter the text. For example, this program adds to the score every time you tap.

You can also tell the command to use a specific font. Fonts that you can use include: 'arial', 'century', 'console', 'courier', 'gadget', 'georgia', 'gill', 'hand', 'impact', 'lucida', 'mono', 'narrow', 'palatino', 'roboto', 'sans', 'serif', 'tahoma', 'times', 'trebuchet', and 'verdana'.

You can also use one of the many fonts made available by Google. You can see a complete list of available fonts under the Fonts tab. These fonts may take a few seconds to load; if the text doesn't look right, wait a bit and hit the run button again.

You can also tell the text to be LEFT, RIGHT, or CENTER aligned.