two.js icon indicating copy to clipboard operation
two.js copied to clipboard

[How to use arrays or objects to draw curves?]

Open landy101 opened this issue 3 years ago • 2 comments

No tutorials using arrays or objects

** var ddd = [400, 600, 120, 50, 140, 150, 160, 50, 180, 150, 190, 100, true] this.electronArray.push( this._two.makeCurve(ddd) )**

landy101 avatar Aug 23 '22 05:08 landy101

Ask the mouse to draw the Versailles line example

landy101 avatar Aug 23 '22 05:08 landy101

This would be a way to to accept an array of points by [x, y, x, y ...] configuration:

const path = two.makeCurve.apply(two, ddd);

jonobr1 avatar Aug 23 '22 11:08 jonobr1