PhiLho
Re: Bézier Editor
Reply #3 - Sep 8th , 2009, 7:54am
Mmm, I found no way to delete all vertices at once (Clear). And I had to look at source to find out how to delete a vertex (Backspace). I first tried Delete key, perhaps you can support both. It might also be interesting to be able to define a "zero" point, and make the coordinates relative to this point. I hope you will finish to implement your zoom, too (but Q/W/E keys are a bit clumsy, particularly on an Azerty keyboard...). I would use + - instead. Likewise, using arrow keys to move selected point might be interesting (low priority wish...). I could reproduce the oddity: I create the first vertex with a single click. Then I add some vertices. It is exported OK. For example: beginShape(); vertex(107.0, 413.0); bezierVertex(107.0, 413.0, 107.0, 413.0, 107.0, 413.0); bezierVertex(107.0, 413.0, 10.0, 349.0, 34.0, 244.0); bezierVertex(58.0, 139.0, 89.0, 121.0, 136.0, 130.0); bezierVertex(183.0, 139.0, 314.0, 178.0, 315.0, 274.0); bezierVertex(316.0, 370.0, 261.0, 411.0, 218.0, 420.0); endShape(); Notice the first bezierVertex with all coordinates equal to first vertex. Then I edit the first vertex, dragging it to see the control points, with the curvature in the same direction. It looks OK on the tool. Exported code is: beginShape(); vertex(107.0, 413.0); bezierVertex(121.0, 420.0, 182.0, 406.0, 107.0, 413.0); bezierVertex(32.0, 420.0, 10.0, 349.0, 34.0, 244.0); bezierVertex(58.0, 139.0, 89.0, 121.0, 136.0, 130.0); bezierVertex(183.0, 139.0, 314.0, 178.0, 315.0, 274.0); bezierVertex(316.0, 370.0, 261.0, 411.0, 218.0, 420.0); endShape(); It makes a strange little loop.