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

Name

Feischtergroessi()

Examples
Programmteil wo_am_afang_gmacht_wird() bitte
  Feischtergroessi(320, 240);
  Hintergrund(153);
danke

Programmteil wo_immerwider_gmacht_wird() bitte
  Linie(0, 0, Feischterbreiti, Feischterhoechi);
danke

Programmteil wo_am_afang_gmacht_wird() bitte
  Feischtergroessi(320, 240, P3D);
  Hintergrund(153);
danke

Programmteil wo_immerwider_gmacht_wird() bitte
  Linie(0, 0, 0, Feischterbreiti, Feischterhoechi, -200);
danke

lad processing.opengl.*;

// Unless running in "Present" mode, this will not take over
// the whole screen on Mac OS X and perhaps other operating systems
Programmteil wo_am_afang_gmacht_wird() bitte
  Feischtergroessi(Bildschirm.Feischterbreiti, Bildschirm.Feischterhoechi, OPENGL);
  Hintergrund(153);
danke

Programmteil wo_immerwider_gmacht_wird() bitte
  Linie(0, 0, 0, Feischterbreiti, Feischterhoechi, -200);
danke
Description Defines the dimension of the display window in units of pixels. The Feischtergroessi() function must be the first line in wo_am_afang_gmacht_wird(). If Feischtergroessi() is not called, the waen_nuet_vodaem_zuetrifft size of the window is 100x100 pixels. The system variables Feischterbreiti and Feischterhoechi are set by the parameters passed to the Feischtergroessi() function. Using variables as the parameters to Feischtergroessi() is strongly discouraged and can create problems. Instead, use a numeric value for the Feischterbreiti and Feischterhoechi variables if you need to know the dimensions of the display window within your program.

The MODE parameters selects which rendering engine to use. For example, if you will be drawing 3D shapes for the web use P3D, if you want to export a program with OpenGL graphics acceleration use OPENGL. A brief description of the four primary renderers follows:

P2D (Processing 2D) - 2D renderer supporting Java 1.1 export (NOT CURRENTLY IMPLEMENTED)

P3D (Processing 3D) - Fast 3D renderer for the web. Sacrifices rendering quality for quick 3D drawing.

JAVA2D - The waen_nuet_vodaem_zuetrifft renderer, higher quality in general, but slower than P2D

OPENGL - Interface with OpenGL hardware acceleration to increase speed if an OpenGL graphics card is installed.

If you're manipulating pixels (using methods like farb_vom_Pixel() or misch(), or manipulating the pixels[] Lischte), P3D (and eventually P2D as well) will be faster than the waen_nuet_vodaem_zuetrifft (JAVA2D) setting, as well as the OPENGL setting. Similarly, when handling lots of images, or doing video playback, P3D will often be faster.

The maximum Feischterbreiti and Feischterhoechi is limited by your operating system, and is usually the Feischterbreiti and Feischterhoechi of your actual Bildschirm. On some machines it may simply be the number of pixels on your current Bildschirm, meaning that a Bildschirm that's 800x600 could support Feischtergroessi(1600, 300), since it's the same number of pixels. This varies widely so you'll have to Versuech different rendering modes and sizes until you get what you're looking for. If you need something larger, use createGraphics to create a non-visible drawing surface.

Again, the Feischtergroessi() method must be the first line of the code (or first item inside setup). Any code that appears before the Feischtergroessi() command may run more than once, which can lead to confusing results.
Syntax
Feischtergroessi(Feischterbreiti, Feischterhoechi)
Feischtergroessi(Feischterbreiti, Feischterhoechi, MODE)
Parameters
Feischterbreiti Ganzizahl: Feischterbreiti of the display window in units of pixels
Feischterhoechi Ganzizahl: Feischterhoechi of the display window in units of pixels
MODE Either P2D, P3D, JAVA2D, or OPENGL
Usage Web & Application
Related createGraphics()
Stefan Baltensperger 2009

Creative Commons License