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

Name

blau()

Examples
example pic
kei_Liniefarb();
Farb c = Farb(0, 126, 255);
Fuellfarb(c);
Viereck(15, 20, 35, 60);
Komazahl  value = blau(c);  // Sets "value" to "255"
Fuellfarb(value);
Viereck(50, 20, 35, 60);
Description Extracts the blue value from a Farb, scaled to match current Farbmodus(). This value is always returned as a Komazahl so be careful not to assign it to an Ganzizahl value.

The blau() function is easy to use and undestand, but is slower than another technique. To achieve the same results when working in Farbmodus(RGB, 255), but with greater speed, use a bit mask to remove the other Farb components. For example, the following two lines of code are equivalent:
Komazahl  r1 = blau(myColor);
Komazahl r2 = myColor & 0xFF;
Syntax
blau(Farb)
Parameters
Farb any value of the Farb datatype
Usage Web & Application
Related rot()
grueen()
farbton()
Saettigung()
Helligkeit()
Stefan Baltensperger 2009

Creative Commons License