performance - draw perfect ellipse(circle) using beginShape in processing -


i'm running speed issues processing.js sketch , want speed creating 25 ellipses using beginshape() endshape(). know has limited functionality otherwise processing context.beginpath() on every ellipse call this:

function line (x1, y1, x2, y2) {   context.beginpath();   context.moveto(x1, y1);   context.lineto(x2, y2);   context.closepath();   context.stroke(); }; 

if somehow create ellipses bezier verteces or simple curve verteces may able accomplish this. has created circles way? or there better alternative?


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -