Please enable JavaScript to view this site.

ESL Documentation

When the keyword center is specified, ESL displays the text so that it is centered both horizontally and vertically at the current position of the text cursor. In the following example:

 

key Touch at position 100 200

    box 150 100

    move to 75 50

    text center "Touch me"

 

ESL first draws a box that is 150 coordinate positions wide and

100 coordinate positions high, beginning at position 100 200 in the screen. The move to statement moves the text cursor, and the graphics cursor, to the center of the box. The text center statement then positions the text string, "Touch me", exactly in the center of the box.

 

The Touch key is shown below:

 

_img298

 

As with aligned text, the text cursor is moved to the bottom right of the last character cell in the string.