Examples of background()


Examples of org.tomighty.ui.theme.Colors.background()

public class Grainy extends CachedTheme {

  @Override
  public void paint(Canvas canvas, Look look) {
    Colors colors = look.colors();
    canvas.paintGradient(colors.background());
    NoiseFilter filter = new NoiseFilter();
    filter.setMonochrome(true);
    filter.setDensity(0.5f);
    filter.setAmount(13);
    canvas.applyFilter(filter);
View Full Code Here

Examples of org.tomighty.ui.theme.Colors.background()

public class Shiny extends CachedTheme {

  @Override
  public void paint(Canvas canvas, Look look) {
    Colors colors = look.colors();
    Color background = colors.background();
    Color bright = background.brighter().brighter();
    Color dark = background.darker();
    canvas.paintShinyBackground(bright, dark);
  }
View Full Code Here

Examples of processing.core.PGraphics.background()

    saveImg.directionalLight(69, 69, 69, 0, 0, -1);
    saveImg.lightFalloff(1, 0, 0);

    saveImg.smooth(8);

    saveImg.background(255);

    saveImg.pushMatrix();
    // this.applyTranslationMatrix(g);

    saveImg.translate(-minX + border, -minY + border);
View Full Code Here

Examples of processing.core.PGraphics.background()

        PApplet.JAVA2D);
    pg.smooth();
    pg.beginDraw();
   
    pg.noStroke();
    pg.background(255);
    pg.rect(0,0,w,h);
   
   
    pg.smooth();
    pg.stroke(200, 200, 200);
View Full Code Here

Examples of processing.core.PGraphics.background()

    // Clears canvas (set to transparency, to not smudge previous map on panning)
    pg.clear();
    if (bgColor != null) {
      // Set background color if given (can also be transparent)
      pg.background(bgColor);
    }

    // translate and scale, from the middle
    pg.pushMatrix();
    pg.translate((float) innerOffsetX, (float) innerOffsetY);
View Full Code Here

Examples of processing.core.PGraphics.background()

    pg.beginDraw();

    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);
    }
View Full Code Here

Examples of processing.core.PGraphics.background()

    int rem = tl % centre.width;
    int n = tl / centre.width;
    n = (rem == 0) ? n : n + 1;
    int px = (tl - centre.width * n)/2;
    pg.beginDraw();
    pg.background(winApp.color(255,0));
    pg.imageMode(CORNER);

    while(px < tl){
      pg.image(centre, px, 0);
      px += centre.width;
View Full Code Here

Examples of processing.core.PGraphicsJava2D.background()

      int height = Math.min(1200, p.height * 4);
      PGraphicsJava2D canvas = (PGraphicsJava2D) p.createGraphics(width,
          height, PConstants.JAVA2D);
      canvas.beginDraw();
      prettyHints(canvas);
      canvas.background(255);
      r.render(canvas, 0, 0, canvas.width, canvas.height,true);
      canvas.endDraw();
      canvas.loadPixels();
      PImage img = canvas.get();
      canvas.dispose();
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.