Examples of rect()


Examples of nodebox.graphics.Path.rect()

        drawDot(cornerPath, cx, cy);
        ctx.draw(cornerPath);
        Path strokePath = new Path();
        strokePath.setFillColor(null);
        strokePath.setStrokeColor(HANDLE_COLOR);
        strokePath.rect(cx, cy, width, height);
        ctx.draw(strokePath);
    }

    @Override
    public boolean mousePressed(Point pt) {
View Full Code Here

Examples of processing.core.PGraphics.rect()

    double radius = (content.getHeight() / 2);
    pg.pushMatrix();
    pg.translate(0, (float )radius);
    // draw the ground (background)
    pg.fill(COLOR_GROUND);
    pg.rect(0, (float )-radius, content.getWidth(), content.getHeight());
    // draw the sky (pitch input)
    pg.fill(COLOR_SKY);
    if (Math.cos(pitchAngle) > 0) {
      pg.rect(0, (float )(Math.sin(pitchAngle) * radius), content.getWidth(), -content.getHeight());
    }
View Full Code Here

Examples of processing.core.PGraphics.rect()

    pg.fill(COLOR_GROUND);
    pg.rect(0, (float )-radius, content.getWidth(), content.getHeight());
    // draw the sky (pitch input)
    pg.fill(COLOR_SKY);
    if (Math.cos(pitchAngle) > 0) {
      pg.rect(0, (float )(Math.sin(pitchAngle) * radius), content.getWidth(), -content.getHeight());
    }
    else {
      pg.rect(0, (float )-(Math.sin(pitchAngle) * radius), content.getWidth(), content.getHeight());
    }
    pg.popMatrix();
View Full Code Here

Examples of processing.core.PGraphics.rect()

    pg.fill(COLOR_SKY);
    if (Math.cos(pitchAngle) > 0) {
      pg.rect(0, (float )(Math.sin(pitchAngle) * radius), content.getWidth(), -content.getHeight());
    }
    else {
      pg.rect(0, (float )-(Math.sin(pitchAngle) * radius), content.getWidth(), content.getHeight());
    }
    pg.popMatrix();
   
    // draw the indicator (elevator and aileron input)
    double elevatorOffset = Math.sin(elevatorAngle) * radius;
 
View Full Code Here

Examples of processing.core.PGraphics.rect()

    pg.smooth();
    pg.beginDraw();
   
    pg.noStroke();
    pg.background(255);
    pg.rect(0,0,w,h);
   
   
    pg.smooth();
    pg.stroke(200, 200, 200);
    pg.fill(194, 217, 216);
View Full Code Here

Examples of processing.core.PGraphics.rect()

            graphics.strokeWeight(borderSize);
        } else {
            graphics.noStroke();
        }
        graphics.fill(color.getRed(), color.getGreen(), color.getBlue(), alpha);
        graphics.rect(x, y, size, size);
    }

    public void renderSquaresPDF(Item item, PDFTarget target, PreviewProperties properties) {
        //TODO Not implemented
    }
View Full Code Here

Examples of processing.core.PGraphics.rect()

    if (tileImage != null) {
      pg.image(tileImage, 0, 0);
    } else {
      pg.background(250);
      pg.stroke(0);
      pg.rect(0, 0, pg.width, pg.height);
      pg.ellipse(pg.width / 2, pg.height / 2, pg.width - 5, pg.height - 5);
    }

    if (showTileCoordinates) {
      pg.fill(0);
View Full Code Here

Examples of processing.core.PGraphics.rect()

    if (showDebugBorder) {
      pg.strokeWeight(2);
      pg.stroke(255, 0, 0, 100);
      pg.noFill();
      pg.rect(0, 0, pg.width, pg.height);
    }

    pg.endDraw();
    return pg.get();
  }
View Full Code Here

Examples of quicktime.std.image.Matrix.rect()

        {
          width = Math.round(from.getWidth() * (float)1.0f/(i+1));
          x = j * width;
        } // else if ((direction == 1) || (direction == 3))
        to = new QDRect(x, y, width, height);
        mat.rect(from, to);
        newTrack.setMatrix(mat);
        newTrack.setLayer(-1);
      } // for
      result.add(temp);
    } // for
View Full Code Here

Examples of quicktime.std.image.Matrix.rect()

      textTrack.insertMedia(Math.round(start * movie.getTimeScale()), 0,
        textMedia.getDuration(), 1);

      // position the text track to (x, y)
      Matrix mat = new Matrix();
      mat.rect(new QDRect(0, 0, TEXT_TRACK_WIDTH, TEXT_TRACK_HEIGHT),
        new QDRect(x, y, TEXT_TRACK_WIDTH, TEXT_TRACK_HEIGHT));
      textTrack.setMatrix(mat);
    } // try
    catch (Exception e)
    {
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.