public class FPolyPlus extends FPolyMinus { /** * Constructs a polygonal body that can be added to a world. It creates an empty polygon, before adding the blob to the world use {@link #vertex(float,float) vertex} to define the shape of the polygon. */ public FPolyPlus(){ super(); } public void setDrawShape(PShape drawshape) { drawShape = drawshape; drawShape.disableStyle(); } public void draw(PGraphics canvas) { if(visibility /*&& !resting*/) { canvas.pushStyle(); canvas.pushMatrix(); canvas.translate(getX(), getY()); canvas.rotate(getRotation()); canvas.ellipseMode(PConstants.CENTER); canvas.rectMode(PConstants.CENTER); appletFillStroke(canvas); //==================================================== //canvas.fill(255); //canvas.fill(r,g,b); setStrokeWeight(0.15); //canvas.stroke(max(800-frameCount*3,0)); //setStrokeColor(max(800-frameCount*3,0)); canvas.stroke(0); setStrokeColor(0); //float muh = frameCount; /* if(muh < m_vertices.size()) { // draw CollisonShape ----------- canvas.beginShape(); for(int i = 0; i