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.quadraticCurveTo()

Name

CRC.quadraticCurveTo() — fügt dem Pfad eine quadratische Bézierkurve hinzu

Überblick

void quadraticCurveTo(float cpX, float cpY,
                      float x, float y)

Argumente

cpX, cpY

Die Koordinaten des Kontrollpunkts.

x, y

Die Koordinaten des Endpunkts der Kurve.

Beschreibung

Diese Methode fügt dem aktuellen Teilpfad eine quadratische Bézierkurve hinzu. Die Kurve beginnt beim aktuellen Punkt und endet bei (x,y). Der Kontrollpunkt (cpX, cpY) definiert die Gestalt der Kurve zwischen diesen beiden Punkten. (Die mathematischen Grundlagen von Bézierkurven gehen allerdings über den Horizont dieses Buchs hinaus.) Wenn diese Methode zurückkehrt, ist der aktuelle Punkt (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