Tip: drawing curves(bezier, splines) with Piccolo2D in java

Thursday, 7 January 2010 17:38 by romeosa

Just a simple tip to draw curves in java using Piccolo2D(download the jar file from: piccolo2D) and the curve api (download the jar file from: Curve API):


List<Point2D> points = new ArrayList<Point2D>(); 
// Collect points 
Shape shape = new CurveCreator().getShape(points); 
PPath p = new PPath(); 
p.setPathTo(shape); 
Tags:   , ,
Categories:  
Actions:   E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed
Comments are closed