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

Name

Raechne_um()

Examples
Feischtergroessi(400, 400);
Komazahl  value = 25;
Komazahl  m = Raechne_um(value, 0, 100, 0, Feischterbreiti);
Chreis(m, 200, 10, 10);
Description Re-maps a number from one range to another. In the example above, the number '25' is converted from a value in the range 0..100 into a value that ranges from the left edge (0) to the right edge (Feischterbreiti) of the Bildschirm.

Numbers outside the range are not clamped to 0 and 1, because out-of-range values are often intentional and useful.
Syntax
Raechne_um(value, low1, high1, low2, high2)
Parameters
value Komazahl : The incoming value to be converted
low1 Komazahl : Lower bound of the value's current range
high1 Komazahl : Upper bound of the value's current range
low2 Komazahl : Lower bound of the value's target range
high2 Komazahl : Upper bound of the value's target range
Usage Web & Application
Related skalier_uf_EIS()
Zwueschewert()
Stefan Baltensperger 2009

Creative Commons License