Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger
| Name | rot() |
||
|---|---|---|---|
| Examples | ![]() kei_Liniefarb(); Farb c = Farb(0, 126, 255); Fuellfarb(c); Viereck(15, 20, 35, 60); Komazahl value = rot(c); // Sets "value" to "0" Fuellfarb(value); Viereck(50, 20, 35, 60); |
||
| Description | Extracts the red 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 rot() 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 the >> (right shift) operator with a bit mask. For example, the following two lines of code are equivalent: Komazahl r1 = rot(myColor); |
||
| Syntax | rot(Farb) |
||
| Parameters |
|
||
| Usage | Web & Application | ||
| Related | grueen() blau() farbton() Saettigung() Helligkeit() >> (right shift) |


