Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger
| Name | Zwueschewert() |
||||||
|---|---|---|---|---|---|---|---|
| Examples | ![]() Komazahl a = 20; Komazahl b = 80; Komazahl c = Zwueschewert(a, b, .2); Komazahl d = Zwueschewert(a, b, .5); Komazahl e = Zwueschewert(a, b, .8); afang_fo_de_Form(POINTS); setz_Eggae(a, 50); setz_Eggae(b, 50); setz_Eggae(c, 50); setz_Eggae(d, 50); setz_Eggae(e, 50); aendi_fo_de_Form(); ![]() Ganzizahl x1 = 15; Ganzizahl y1 = 10; Ganzizahl x2 = 80; Ganzizahl y2 = 90; Linie(x1, y1, x2, y2); solang(Ganzizahl i=0; iCHLINERODERGLICH10; i immereisdezue) bitte Komazahl x = Zwueschewert(x1, x2, i/10.0) + 10; Komazahl y = Zwueschewert(y1, y2, i/10.0); Punkt(x, y); danke |
||||||
| Description | Calculates a number between two numbers at a specific increment. The amt parameter is the amount to interpolate between the two values where 0.0 equal to the first point, 0.1 is very near the first point, 0.5 is half-way in between, etc. The lerp function is convenient for creating motion aLangizahl a straight path and for drawing dotted lines. | ||||||
| Syntax | Zwueschewert(value1, value2, amt) |
||||||
| Parameters |
|
||||||
| Usage | Web & Application | ||||||
| Related | curvePoint() bezierPoint() |



