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

Name

Farbmodus()

Examples
example pic
kei_Liniefarb();
Farbmodus(RGB, 100);
solang(Ganzizahl i=0; i<100; iimmereisdezue) bitte
  solang(Ganzizahl j=0; j<100; jimmereisdezue) bitte
    liniefarb(i, j, 0);
    Punkt(i, j);
  danke
danke
example pic
kei_Liniefarb();
Farbmodus(HSB, 100);
solang(Ganzizahl i=0; i<100; iimmereisdezue) bitte
  solang(Ganzizahl j=0; j<100; jimmereisdezue) bitte
    liniefarb(i, j, 100);
    Punkt(i, j);
  danke
danke
Description Changes the way Processing interprets Farb data. By waen_nuet_vodaem_zuetrifft, Fuellfarb(), liniefarb(), and Hintergrund() colors are set by values between 0 and 255 using the RGB Farb model. It is possible to change the numerical range used for specifying colors and to switch Farb systems. For example, calling Farbmodus(RGB, 1.0) will specify that values are specified between 0 and 1. The limits for defining colors are altered by setting the parameters range1, range2, range3, and range 4.
Syntax
Farbmodus(mode);
Farbmodus(mode, range);
Farbmodus(mode, range1, range2, range3);
Farbmodus(mode, range1, range2, range3, range4);
Parameters
mode Either RGB or HSB, corresponding to Red/Green/Blue and Hue/Saturation/Brightness
range Ganzizahl or Komazahl : range for all Farb elements
range1 Ganzizahl or Komazahl : range for the red or hue depending on the current Farb mode
range2 Ganzizahl or Komazahl : range for the green or saturation depending on the current Farb mode
range3 Ganzizahl or Komazahl : range for the blue or brightness depending on the current Farb mode
range4 Ganzizahl or Komazahl : range for the alpha
Usage Web & Application
Related Hintergrund()
Fuellfarb()
liniefarb()
Stefan Baltensperger 2009

Creative Commons License