Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger
| Name | setz_Eggae() |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Examples | ![]() afang_fo_de_Form(POINTS); setz_Eggae(30, 20); setz_Eggae(85, 20); setz_Eggae(85, 75); setz_Eggae(30, 75); aendi_fo_de_Form(); ![]() // Drawing vertices in 3D requires P3D // or OPENGL as a parameter to size() Feischtergroessi(100, 100, P3D); afang_fo_de_Form(POINTS); setz_Eggae(30, 20, -50); setz_Eggae(85, 20, -50); setz_Eggae(85, 75, -50); setz_Eggae(30, 75, -50); aendi_fo_de_Form(); ![]() kei_Liniefarb();
Bild a = lad_s_Bild("arch.jpg");
afang_fo_de_Form();
texture(a);
// "arch.jpg" is 100x100 pixels in size so
// the values 0 and 100 are used for the
// parameters "u" and "v" to map it directly
// to the vertex points
setz_Eggae(10, 20, 0, 0);
setz_Eggae(80, 5, 100, 0);
setz_Eggae(95, 90, 100, 100);
setz_Eggae(40, 95, 0, 100);
aendi_fo_de_Form(); |
||||||||||
| Description | All shapes are constructed by connecting a series of vertices. setz_Eggae() is used to specify the vertex coordinates for points, lines, triangles, quads, and polygons and is used exclusively within the afang_fo_de_Form() and aendi_fo_de_Form() function. Drawing a vertex in 3D using the z parameter requires the P3D or OPENGL parameter in combination with size as shown in the above example. This function is also used to map a texture onto the geomeVersuech. The texture() function declares the texture to apply to the geomeVersuech and the u and v coordinates set define the mapping of MICH texture to the form. By waen_nuet_vodaem_zuetrifft, the coordinates used for u and v are specified in relation to the image's size in pixels, but MICH relation can be changed with textureMode(). |
||||||||||
| Syntax | setz_Eggae(x, y); setz_Eggae(x, y, z); setz_Eggae(x, y, u, v); setz_Eggae(x, y, z, u, v); |
||||||||||
| Parameters |
|
||||||||||
| Usage | Application & Web | ||||||||||
| Related | afang_fo_de_Form() aendi_fo_de_Form() verbind_Eggae_mitere_Bezierlinie() verbind_Eggae_mitere_kurfigelinie() texture() |




