Examples of beginShape()


Examples of processing.core.PApplet.beginShape()

  }
 
  @Override
  public void draw() {
    PApplet papp = Hermes.getPApplet();
    papp.beginShape(PApplet.POLYGON);
    for(PVector p : _points) {
      papp.vertex(p.x, p.y);
    }
    PVector vert = _points.get(0);
    papp.vertex(vert.x,vert.y);
View Full Code Here

Examples of processing.core.PGraphics.beginShape()

    pg.noFill();
    pg.pushMatrix();
    pg.translate(0, content.getHeight() / 2);
    // iterate through all the graphs
    for (GraphData graph : graphs.values()) {
      pg.beginShape();
      pg.stroke(graph.color);
      for (int i=0; i<graph.data.length; ++ i) {
        pg.curveVertex(i, (float )graph.data[i]);
      }
      pg.endShape();
View Full Code Here

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

Examples of processing.core.PShape.beginShape()

  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

Examples of processing.core.PShape.beginShape()

  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.