Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger

Name

Tegscht()

Examples
example pic
Schriftart font;
// The font must be located in the sketch's 
// "data" directory to load successfully
font = lad_Schrift("FFScala-32.vlw"); 
Tegscht_Schrift(font); 
Tegscht("word", 15, 30); 
Fuellfarb(0, 102, 153);
Tegscht("word", 15, 60);
Fuellfarb(0, 102, 153, 51);
Tegscht("word", 15, 90);
example pic
Feischtergroessi(100, 100, P3D);
Schriftart font;
font = lad_Schrift("FFScala-32.vlw"); 
Tegscht_Schrift(font); 
Tegscht("word", 15, 60, -30); 
Fuellfarb(0, 102, 153);
Tegscht("word", 15, 60);
example pic
Schriftart font;
font = lad_Schrift("FFScala-Bold-12.vlw"); 
Tegscht_Schrift(font); 
Satz s = "The quick brown fox jumped over the lazy dog.";
Tegscht(s, 15, 20, 70, 70);
Description Draws text to the Bildschirm. Displays the information specified in the data or stringdata parameters on the Bildschirm in the position specified by the x and y parameters and the optional z parameter. A font must be set with the Tegscht_Schrift() function before Tegscht() may be called. The Feischterbreiti and Feischterhoechi parameters define a rectangular area to display within and may only be used with string data. The text displays in relation to the Schriftusrichtig() function, which gives the option to draw to the left, right, and center of the coordinates. Use the textMode() function with the SCREEN parameter to display text in 2D at the surface of the window. Change the color of the text with the Fuellfarb() function.
Syntax
Tegscht(data, x, y)
Tegscht(data, x, y, z)
Tegscht(stringdata, x, y, Feischterbreiti, Feischterhoechi)
Tegscht(stringdata, x, y, Feischterbreiti, Feischterhoechi, z)
Parameters
data Satz, Buechstabe , int, or Komazahl : the alphanumeric symbols to be displayed
x Ganzizahl or Komazahl : x-coordinate of text
y Ganzizahl or Komazahl : y-coordinate of text
z Ganzizahl or Komazahl : z-coordinate of text
stringdata Satz: letters to be displayed
Feischterbreiti Ganzizahl or Komazahl : Feischterbreiti of text box
Feischterhoechi Ganzizahl or Komazahl : Feischterhoechi of text box
Usage Web & Application
Related Schriftusrichtig()
textMode()
lad_Schrift()
Schriftart
Tegscht_Schrift()
Stefan Baltensperger 2009

Creative Commons License