Canvas Label

Display text on your Canvas.

Canvas Label Overview

The Canvas Label is a piece of text that can be placed onto your Stage.

Adding a Canvas Label to your app

To add a Canvas Label to your app, click on the Stage of your Canvas. This will automatically bring you to the Canvas tab.

Underneath your component tree, where you would see a component menu in the Design tab, you will see your Sprite Type menu and a User Interface menu.

You can find the Canvas Label in the Unser Interface menu.

You can drag and drop the Canvas Label onto your Stage.

Canvas Label Properties

Property

Description

Data Type

Text

The Text being displayed on your Canvas Label

Text

X

The X-co-ordinate of the top-left pixel of the Canvas Label

Number

Y

The Y-co-ordinate of the top-left pixel of the Canvas Label

Number

Font Size

The size of the font of the Canvas Label

Number

Color

The color of the text of the Canvas Label

Color

Background Color

The color of the background of the Canvas Label

Color

Stage Selection

Select a Stage to display the current Canvas Label on

Select from menu

Blocks

Text

Set Text

Set the text being displayed in the Canvas Label.

Get Text

Get the text of the Canvas Label.

Position

X Co-ordinate

Set X

Set the X Co-ordinate of the top-left pixel of the Canvas Label.

Get X

Get the X Co-ordinate of the top-left pixel of the Canvas Label.

Y Co-ordinate

Set Y

Set the Y Co-ordinate of the top-left pixel of the Canvas Label.

Get Y

Get the Y Co-ordinate of the top-left pixel of the Canvas Label.

Appearance

Font Size

Set Font size

Set the font size of the text of the Canvas Label.

Get Font Size

Get the font size of the text of the Canvas Label.

Text Color

Set color

Set the color of the text of the Canvas Label.

Get Color

Get the color of the text of the Canvas Label.

Background Color

Set Background Color

Set the color of the background of the Canvas Label.

Get Background Color

Get the color of the background of the Canvas Label.

Location

Move to Stage

Move the Canvas Label to the named Stage.

Last updated