Package processing.core

Examples of processing.core.PShape.endShape()


      shape.beginShape();
      shape.stroke(30);
      //shape.fill(255, 0, 0, 4);
      shape.fill(color(255, 0, 0), 100);
      updateShapeVertices(shape, shapeFeature, false);
      shape.endShape();

      // Add shape AND add to name list to retrieve later
      shapeGroup.addChild(shape);
      shapeGroup.addName(shapeName, shape);
    }
View Full Code Here


      PVector pos = new PVector();
      shape.vertex(pos.x, pos.y);
      shape.vertex(pos.x + 4, pos.y);
      shape.vertex(pos.x + 4, pos.y + 4);
      shape.vertex(pos.x, pos.y + 4);
      shape.endShape();
      shapeGroup.addChild(shape);
    }
    return shapeGroup;
  }
View Full Code Here

      PVector pos = new PVector();
      shape.vertex(pos.x, pos.y);
      shape.vertex(pos.x + 4, pos.y);
      shape.vertex(pos.x + 4, pos.y + 4);
      shape.vertex(pos.x, pos.y + 4);
      shape.endShape();
      shapes.add(shape);
    }
    return shapes;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.