Quadratic bezier curves for Processing.js
Since Processing and respectively Processing.js don’t support quadratic curves, you are forced to construct them with a conventional cubic bezier curve. I’ve never used bezier curves before, so I took this as a lesson.
I came up at least with an implementation for quadraticBezierVertex(cpx, cpy, x, y), which you can use to create shapes.
You can put this code into a .lib file and import() it into your sketch to add support for quadratic curves to Processing.js.
The actual reason I created this was the need for flexible rounded rectangles, which don’t look smart unless you use quadratic curves for the corners. Because it’s a shape based on a path you can modify fill and stroke as usual.
Finally here’s the result. I’m using a stroke weight of 2 pixels and a 10 pixel radius for the rounded corners.

Trying to do this in regular processing, but I can’t figure out what prevX and prevY are supposed to be.
Such internals as prevX/prevY might be hidden in native Processing as they’re just relevant to vertex based shapes. You might want to set them manually in the meanwhile.
Buy:Advair.Benicar.Zetia.Aricept.Nymphomax.Lipothin.Lipitor.Seroquel.SleepWell.Lasix.Amoxicillin.Female Pink Viagra.Prozac.Female Cialis.Ventolin.Wellbutrin SR.Buspar.Acomplia.Cozaar.Zocor….
Buy:Propecia.Levitra.VPXL.Soma.Zithromax.Super Active ED Pack.Cialis Professional.Viagra Super Force.Viagra Soft Tabs.Tramadol.Cialis.Viagra Super Active+.Viagra.Cialis Super Active+.Viagra Professional.Cialis Soft Tabs.Maxaman….
automatic http://nbud-si7wvz.ABABYCLOTHES.INFO/tag/automatic+dock+Lights/ : dock…
dock…
Buy:Nexium.Human Growth Hormone.Prednisolone.Retin-A.Petcam (Metacam) Oral Suspension.100% Pure Okinawan Coral Calcium.Mega Hoodia.Lumigan.Actos.Valtrex.Zovirax.Zyban.Prevacid.Accutane.Synthroid.Arimidex….