Line: Unterschied zwischen den Versionen

Aus QED-WIKI - Ein Berliner Mathe-WIKI von und für Schülerinnen und Schüler
Wechseln zu: Navigation, Suche
Zeile 10: Zeile 10:
 
line(x, 50, x+25, 50);
 
line(x, 50, x+25, 50);
 
=='''Syntax'''==
 
=='''Syntax'''==
line(x1, y1, x2, y2);        //x1 & y1 sind die Koordinaten vom Anfangspunkt, x2 & y2 sind die Koordinaten vom Endpunkt.
+
line(x1, y1, x2, y2);        //x1 & y1 sind die Koordinaten vom Anfangspunkt, x2 & y2 sind die Koordinaten vom Endpunkt
  
 
=='''Ahnliche Befehle'''==
 
=='''Ahnliche Befehle'''==
 
[[point]]
 
[[point]]

Version vom 1. Januar 2013, 12:49 Uhr


Um Linien zu zeichnen benutzt man den Befehl "line ()".

Beispiel

line(0, 0, 100, 100);

int x = 100;

line(x, 50, x+25, 50);

Syntax

line(x1, y1, x2, y2); //x1 & y1 sind die Koordinaten vom Anfangspunkt, x2 & y2 sind die Koordinaten vom Endpunkt

Ahnliche Befehle

point