text .display  (  Text ,  PosX ,  PosY ,  Width  )  
                                     
Description :

This instruction displays a line of text in the current Alambik screen.

Parameters :

  • Text to display.
  • X component of the text's top left pixel position.
  • Y component of the text's top left pixel position.
  • Width of the line, expressed in pixels.

Notes :


Text.display ("Hello World",0,0,100) is the concatenation of the following instructions:

     %ObjectID = Text.create ("Hello World",100)
     Text.display (%ObjectID,0,0)
     Text.free (%ObjectID)

Color Codes:

Color codes set the color of each character in the text string.

Syntax: {Red, Green, Blue}

For example, in the sentence, “The colors of the Star-Spangled Banner are red, white and blue”, you can use the following instruction:

text.display (“The colors of the Star-Spangled Banner are {255,0,0} red, {255,255,255} white and {0,0,255} blue",center,center)

Examples :