TEXT keyword

Displays text on screen.

Syntax

TEXT string, (x, y), "fontname", fontsize, color, "effect", effectvalue

Parameters

  • string: a string expression to display (required)
  • x: integer of horizontal position
  • y: integer of vertical position
  • fontname: font to use
  • fontsize: font size as integer
  • color: color specified using hex value
  • effect: possible effect from this list: "type" (typewriter effect), "fade-in" (slowly appears)
  • effectvalue: integer value to customize the effect

Example

TEXT "This is my text"
TEXT "This is my text", (200, 100)
TEXT "This is my text", (200, 100), "default"
TEXT "This is my text", (200, 100), "default", 50
TEXT "This is my text", (200, 100), "default", 50, #0C71FF
TEXT "This is my text", (200, 100), "default", 50, #0C71FF, "type"
TEXT "This is my text", (200, 100), "default", 50, #0C71FF, "type", 70
TEXT "This is my text", (200, 100), "default", 50, #0C71FF, "fade-in"
TEXT "This is my text", (200, 100), "default", 50, #0C71FF, "fade-in", 2000

DIM myText AS TEXT
myText = TEXT "test"

Go back to list of Keywords.