Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

2. Canvas-Referenz > CRC.bezierCurveTo()

Name

CRC.bezierCurveTo() — fügt dem aktuellen Teilpfad eine kubische Bézierkurve hinzu

Überblick

void bezierCurveTo(float cpX1, float cpY1, 
                   float cpX2, float cpY2, 
                   float x, float y)

Argumente

cpX1, cpY1

Die Koordinaten des Kontrollpunkts, der mit dem Startpunkt der Kurve verbunden ist (die aktuelle Position).

cpX2, cpY2

Die Koordinaten des Kontrollpunkts, der mit dem Endpunkt der Kurve verbunden ist.

x, y

Die Koordinaten des Endpunkts der Kurve.

Beschreibung

bezierCurveTo() fügt dem aktuellen Teilpfad des Canvas eine kubische Bézierkurve hinzu. Der Startpunkt der Kurve ist der aktuelle Punkt des Canvas, und der Endpunkt ist (x,y). Die beiden Bézierkontrollpunkte (cpX1, cpY1) und (cpX2, cpY2) definieren die Gestalt der Kurve. Wenn diese Methode fertig ist, ist die aktuelle Position (x,y).


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial