Examples of smooth()


Examples of processing.core.PGraphics.smooth()

    PGraphics pg = appletStatic.createGraphics((int) w, (int) h,
        PApplet.JAVA2D );
    pg.smooth();
    pg.beginDraw();
    pg.smooth();
   
    pg.noStroke();

    pg.stroke(200, 200, 200);
    pg.fill(255, 255, 255);
View Full Code Here

Examples of processing.core.PGraphics.smooth()

    PGraphics textG = getController().appletStatic.createGraphics((int) w,
        (int) h, PApplet.OPENGL);
   
    this.setSize(w, h);
    textG.beginDraw();
    textG.smooth(2);
    //textG.background(255);
   
    //textG.textMode(PApplet.SCREEN);
    textG.textSize(this.textSize);
    textG.textFont(getController().myFontMedium,this.textSize);
View Full Code Here

Examples of processing.core.PGraphics.smooth()

  // By amnon.owed, http://forum.processing.org/topic/extract-circle-texture-from-background-with-alpha-channel
  public PImage getCircularImage(PImage img, int radius, int feather) {
    PGraphics temp = p.createGraphics(img.width, img.height, PConstants.JAVA2D);
    temp.beginDraw();
    temp.smooth();
    temp.translate(temp.width / 2, temp.height / 2);
    temp.imageMode(PConstants.CENTER);
    temp.image(img, 0, 0);
    temp.endDraw();
    PImage saveArea = p.createImage(temp.width, temp.height, PConstants.ARGB);
View Full Code Here

Examples of processing.core.PGraphics.smooth()

  // By amnon.owed, http://forum.processing.org/topic/extract-circle-texture-from-background-with-alpha-channel
  public PImage getCircularImage(PImage img, int radius, int feather) {
    PGraphics temp = p.createGraphics(img.width, img.height, PConstants.JAVA2D);
    temp.beginDraw();
    temp.smooth();
    temp.translate(temp.width / 2, temp.height / 2);
    temp.imageMode(PConstants.CENTER);
    temp.image(img, 0, 0);
    temp.endDraw();
    PImage saveArea = p.createImage(temp.width, temp.height, PConstants.ARGB);
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.