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

Name

zeichne_neu()

Examples
Komazahl  x = 0;

Programmteil wo_am_afang_gmacht_wird() bitte
  Feischtergroessi(200, 200);
  kein_Luup();
danke

Programmteil wo_immerwider_gmacht_wird() bitte
  Hintergrund(204);
  Linie(x, 0, x, Feischterhoechi); 
danke

Programmteil Muus_truckt() bitte
  x += 1;
  zeichne_neu();
danke
Description Executes the code within wo_immerwider_gmacht_wird() one time. This functions allows the program to update the display window only when necessary, for example when an event registered by Muus_truckt() or Taschte_truckt() occurs.

In structuring a program, it only makes sense to call zeichne_neu() within events such as Muus_truckt(). This is because zeichne_neu() does not run wo_immerwider_gmacht_wird() immediately (it only sets a flag that indicates an update is needed).

Calling zeichne_neu() within wo_immerwider_gmacht_wird() has no effect because wo_immerwider_gmacht_wird() is continuously called anyway.
Syntax
zeichne_neu()
Parameters
Usage Web & Application
Related kein_Luup()
Luup()
Stefan Baltensperger 2009

Creative Commons License