Changes

Jump to: navigation, search

P5js and opentype.js

61 bytes added, 18:02, 20 June 2021
Path Befehle
== Path Befehle ==
 
* opentype.parse(buffer)
* Glyph.getPath(x, y, fontSize)
 
* '''Move To:''' Erstellt eine neue Kontur. Example: {type: 'M', x: 100, y: 200}
* '''Line To:''' Ziehe eine Linie von der letzten Koordinate. Example: {type: 'L', x: 100, y: 200}
* '''Curve To:''' Ziehe eine Bézier Kurve von der letzten Koordinate. Example: {type: 'C', x1: 0, y1: 50, x2: 100, y2: 200, x: 100, y: 200}
* '''Quad To:''' Ziehe eine quadratic Bézier Kurve von der letzten Koordinate. Example: {type: 'Q', x1: 0, y1: 50, x: 100, y: 200}
* '''Close:''' Schließe die Umrisslinie. Example: {type: 'Z'}
<br>

Navigation menu