Package processing.core

Examples of processing.core.PShape.fill()


      // 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();

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


    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);
      shape.vertex(pos.x + 4, pos.y + 4);
      shape.vertex(pos.x, pos.y + 4);
View Full Code Here

    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);
      shape.vertex(pos.x + 4, pos.y + 4);
      shape.vertex(pos.x, pos.y + 4);
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.