Package processing.core

Examples of processing.core.PShape.beginShape()


  public void updateShape(String shapeName, ShapeFeature shapeFeature, boolean update) {
    if (!update) {
      // Create shape
      PShape shape = createShape();
      shape.beginShape();
      shape.stroke(30);
      //shape.fill(255, 0, 0, 4);
      shape.fill(color(255, 0, 0), 100);
      updateShapeVertices(shape, shapeFeature, false);
      shape.endShape();
View Full Code Here


  public PShape createShapeGroup() {
    shapeGroup = createShape(PShape.GROUP);
    for (int i = 0; i < dotNumber; i++) {
      PShape shape = createShape();
      shape.beginShape(QUAD);
      shape.noStroke();
      shape.fill(255, 0, 0, 100);
      PVector pos = new PVector();
      shape.vertex(pos.x, pos.y);
      shape.vertex(pos.x + 4, pos.y);
View Full Code Here

  public List<PShape> createShapes() {
    List<PShape> shapes = new ArrayList<PShape>();
    for (int i = 0; i < 100; i++) {
      PShape shape = createShape();
      shape.beginShape(QUAD);
      shape.noStroke();
      shape.fill(255, 0, 0, 100);
      PVector pos = new PVector();
      shape.vertex(pos.x, pos.y);
      shape.vertex(pos.x + 4, pos.y);
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.