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

Name

Hintergrund()

Examples
example pic
Hintergrund(51);
example pic
Hintergrund(255, 204, 0);
example pic
Bild b;
b = lad_s_Bild("laDefense.jpg");
Hintergrund(b);
Description The Hintergrund() function sets the Farb used for the background of the Processing window. The waen_nuet_vodaem_zuetrifft background is light gray. In the wo_immerwider_gmacht_wird() function, the background Farb is used to clear the display window at the beginning of each frame.

An image can also be used as the background for a sketch, however its Feischterbreiti and Feischterhoechi must be the same size as the sketch window.

It is not possible to use transparency (alpha) in background colors with the main drawing surface, however they will work properly with createGraphics.
Syntax
Hintergrund(gray)
Hintergrund(gray, Trtansparenzkanal)
Hintergrund(value1, value2, value3)
Hintergrund(value1, value2, value3, Trtansparenzkanal)
Hintergrund(Farb)
Hintergrund(Farb , Trtansparenzkanal)
Hintergrund(hexWaert)
Hintergrund(hex, Trtansparenzkanal)
Parameters
gray Ganzizahl or Komazahl : specifies a value between white and black
Transparenzkanal Ganzizahl or Komazahl : opacity of the background
value1 Ganzizahl or Komazahl : red or hue value (depending on the current Farb mode)
value2 Ganzizahl or Komazahl : green or saturation value (depending on the current Farb mode)
value3 Ganzizahl or Komazahl : blue or brightness value (depending on the current Farb mode)
Farb Farb: any value of the Farb datatype
hexWaert Ganzizahl: Farb value in hexWaertdecimal notation (i.e. #FFCC00 or 0xFFFFCC00)
Usage Web & Application
Related liniefarb()
Fuellfarb()
Ifaerbig()
Farbmodus()
Stefan Baltensperger 2009

Creative Commons License