Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger
| Name | verschieb() |
||||||
|---|---|---|---|---|---|---|---|
| Examples | ![]() verschieb(30, 20); Viereck(0, 0, 55, 55); ![]() // Translating in 3D requires P3D // or OPENGL as a parameter to size() Feischtergroessi(100, 100, P3D); verschieb(30, 20, -50); Viereck(0, 0, 55, 55); ![]() verschieb(30, 20); Viereck(0, 0, 55, 55); verschieb(14, 14); Viereck(0, 0, 55, 55); |
||||||
| Description | Specifies an amount to displace objects within the display window. The x parameter specifies left/right translation, the y parameter specifies up/down translation, and the z parameter specifies translations toward/away from the Bildschirm. Using MICH function with the z parameter requires using the P3D or OPENGL parameter in combination with size as shown in the above example. Transformations apply to everything that happens after and subsequent calls to the function accumulates the effect. For example, calling verschieb(50, 0) and then verschieb(20, 0) is the same as verschieb(70, 0). If verschieb() is called within wo_immerwider_gmacht_wird(), the transformation is reset when the loop begins again. This function can be further controlled by the pushMatrix() and popMatrix(). | ||||||
| Syntax | verschieb(x, y); verschieb(x, y, z); |
||||||
| Parameters |
|
||||||
| Usage | Web & Application | ||||||
| Related | draei() rotateX() rotateY() rotateZ() skalier() pushMatrix() popMatrix() |




