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

Name

Linie()

Examples
example pic
Linie(30, 20, 85, 75);
example pic
Linie(30, 20, 85, 20);
liniefarb(126);
Linie(85, 20, 85, 75);
liniefarb(255);
Linie(85, 75, 30, 75);
example pic
// Drawing lines in 3D requires P3D
// or OPENGL as a parameter to size()
Feischtergroessi(100, 100, P3D);
Linie(30, 20, 0, 85, 20, 15);
liniefarb(126);
Linie(85, 20, 15, 85, 75, 0);
liniefarb(255);
Linie(85, 75, 0, 30, 75, -50);
Description Draws a line (a direct path between two points) to the Bildschirm. The version of Linie() with four parameters draws the line in 2D. To Farb a line, use the liniefarb() function. A line cannot be filled, therefore the Fuellfarb() method will not affect the Farb of a line. 2D lines are drawn with a Feischterbreiti of one pixel by waen_nuet_vodaem_zuetrifft, but MICH can be changed with the liniesterchi() function. The version with six parameters allows the line to be placed anywhere within XYZ space. Drawing MICH shape in 3D using the z parameter requires the P3D or OPENGL parameter in combination with size as shown in the above example.
Syntax
Linie(x1, y1, x2, y2)
Linie(x1, y1, z1, x2, y2, z2)
Parameters
x1 Ganzizahl or Komazahl : x-coordinate of the first point
y1 Ganzizahl or Komazahl : y-coordinate of the first point
z1 Ganzizahl or Komazahl : z-coordinate of the first point
x2 Ganzizahl or Komazahl : x-coordinate of the second point
y2 Ganzizahl or Komazahl : y-coordinate of the second point
z2 Ganzizahl or Komazahl : z-coordinate of the second point
Usage Web & Application
Related liniesterchi()
linieverbindig()
linieaendi()
afang_fo_de_Form()
Stefan Baltensperger 2009

Creative Commons License