Codota Logo
PApplet.fill
Code IndexAdd Codota to your IDE (free)

How to use
fill
method
in
processing.core.PApplet

Best Java code snippets using processing.core.PApplet.fill (Showing top 15 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: ruby-processing/JRubyArt

/**
* Simple signature for fill hides need to call app
* @param col int
*/
public void fill(int col) {
 this.app.fill(col);
}
origin: ruby-processing/JRubyArt

@Override
void drawGui() {
  if (backgroundVisible) {
    applet.fill(sliderBack);
    applet.rect(pX, pY, pW, pH);
  }
  applet.fill(sliderFill);
  applet.rect(pX, pY, pScaled, pH);
}    
origin: ruby-processing/JRubyArt

@Override
void drawGui() {
  if (backgroundVisible) {
    applet.fill(sliderBack);
    applet.rect(pX, pY, pH, pW);
  }
  applet.fill(sliderFill);
  applet.ellipse(pX + pH / 2, pY + pScaled, 10, 10);
}

origin: ruby-processing/JRubyArt

private void drawHorizontal() {
  if (backgroundVisible) {
    applet.fill(sliderBack);
    applet.rect(pX, pY, pW, pH);
  }
  applet.fill(sliderFill);
  applet.rect(pX, pY, pScaled, pH);
}
origin: ruby-processing/JRubyArt

private void drawVertical() {
  if (backgroundVisible) {
    applet.fill(sliderBack);
    applet.rect(pX, pY, pH, pW);
  }
  applet.fill(sliderFill);
  applet.rect(pX, pY + pW, pH, pScaled - pW);
}
origin: ruby-processing/JRubyArt

@Override
void drawGui() {
  if (backgroundVisible) {
    applet.fill(sliderBack);
    applet.rect(pX, pY, pH, pW);
  }
  applet.fill(sliderFill);
  applet.rect(pX, pY + pW, pH, pScaled - pW);
}
origin: mirador/mirador

public void fill(int argb) {    
 int maxAlpha = argb >> 24 & 0xFF;
 intf.app.fill(argb >> 16 & 0xFF, argb >> 8 & 0xFF, argb & 0xFF, getAlpha(maxAlpha));
}

origin: evolvio/evolv.io

  @Override
  public void render(PApplet applet, Board board) {
    applet.fill(board.getBackgroundColor());
    applet.rect(0, 0, Configuration.SCALE_TO_FIXBUG * Configuration.BOARD_WIDTH,
        Configuration.SCALE_TO_FIXBUG * Configuration.BOARD_HEIGHT);
  }
}
origin: mirador/mirador

public void fill(int argb, int maxa) {
 int maxAlpha = PApplet.min(argb >> 24 & 0xFF, maxa);
 intf.app.fill(argb >> 16 & 0xFF, argb >> 8 & 0xFF, argb & 0xFF, getAlpha(maxAlpha));
}

origin: ruby-processing/JRubyArt

@Override
void displayText() {
  String lFormat = "%d";
  if (displayLabel) {
    applet.fill(labelColor);
    applet.textSize(labelSize);
    applet.textAlign(PConstants.CENTER);
    applet.text(Integer.toString((int) pValue), pX + pW / 2, pY + pH / 2 + labelSize / 2 - 2);
  }
  if (displayValue) {
    applet.textSize(numberSize);
    applet.fill(numbersColor);
    applet.textAlign(PConstants.LEFT);
    applet.text(String.format(lFormat, (int) vMin), pX, pY - numberSize / 2);
    applet.textAlign(PConstants.RIGHT);
    applet.text(String.format(lFormat, (int) vMax), pX + pW, pY - numberSize / 2);
  }
}

origin: ruby-processing/JRubyArt

@Override
void displayText() {
  String lFormat = "%d";
  if (displayLabel) {
    applet.fill(labelColor);
    applet.textSize(labelSize);
    applet.textAlign(PConstants.BOTTOM);
    applet.text(Integer.toString((int) pValue), pX + pW / 2, pY + pH);
  }
  if (displayValue) {
    applet.textSize(numberSize);
    applet.fill(numbersColor);
    applet.textAlign(PConstants.LEFT);
    applet.text(String.format(lFormat, (int) vMin), pX, pY );
    applet.textAlign(PConstants.RIGHT);
    applet.text(String.format(lFormat, (int) vMax), pX + pW, pY );
  }
}

origin: ruby-processing/JRubyArt

@Override
void drawGui() {
  if (backgroundVisible) {
    applet.stroke(sliderBack);
    applet.line(pX, pY + pH / 2, pX + pW, pY + pH / 2);
  }
  applet.noStroke();
  applet.fill(255);
  applet.ellipse(pX + pScaled, pY + pH / 2, 10, 10);
}    
origin: ruby-processing/JRubyArt

private void displayText() {
  String lFormat = "%d";
  if (displayLabel) {
    applet.fill(labelColor);
    applet.textSize(labelSize);
    applet.textAlign(PConstants.CENTER);
    applet.fill(numbersColor);
    if (horizontal) {
      applet.textAlign(PConstants.LEFT);
origin: ruby-processing/JRubyArt

String lFormat = "%d";
if (displayLabel) {
  applet.fill(labelColor);
  applet.textSize(labelSize);
  applet.textAlign(PConstants.CENTER);
  applet.fill(numbersColor);
  applet.pushMatrix();
  applet.textAlign(PConstants.RIGHT);
origin: ruby-processing/JRubyArt

@Override
void displayText() {
  String lFormat = "%d";
  if (displayLabel) {
    applet.fill(labelColor);
    applet.textSize(labelSize);
    applet.textAlign(PConstants.CENTER);
    applet.pushMatrix();
    applet.translate(pX + pH / 2, pY + pW / 2);
    applet.rotate(HALF_PI);
    applet.text(Integer.toString((int) pValue), 0, 0 + labelSize / 2 - 2);
    applet.popMatrix();
  }
  if (displayValue) {
    applet.textSize(numberSize);
    applet.fill(numbersColor);
    applet.pushMatrix();
    applet.textAlign(PConstants.RIGHT);
    applet.translate(pX - numberSize / 2, pY);
    applet.rotate(HALF_PI);
    applet.text(String.format(lFormat, (int) vMax), 0, 0);
    applet.popMatrix();
    applet.pushMatrix();
    applet.textAlign(PConstants.LEFT);
    applet.translate(pX - numberSize / 2, pY + pW);
    applet.rotate(HALF_PI);
    applet.text(String.format(lFormat, (int) vMin), 0, 0);
    applet.popMatrix();
  }
}
processing.corePAppletfill

Popular methods of PApplet

  • constrain
  • createGraphics
    Create an offscreen graphics surface for drawing, in this case for a renderer that writes to a file
  • loadStrings
    ( begin auto-generated from loadStrings.xml ) Reads the contents of a file or url and creates a Stri
  • saveStrings
    ( begin auto-generated from saveStrings.xml ) Writes an array of strings to a file, one line per str
  • abs
  • createImage
    ( begin auto-generated from createImage.xml ) Creates a new PImage (the datatype for storing images)
  • createShape
  • createWriter
    ( begin auto-generated from createWriter.xml ) Creates a new file in the sketch folder, and a PrintW
  • loadImage
  • main
    main() method for running this class from the command line. Usage: PApplet [options] [s
  • max
  • parseInt
  • max,
  • parseInt,
  • random,
  • round,
  • split,
  • sqrt,
  • unhex,
  • arrayCopy,
  • ceil,
  • checkExtension

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • setRequestProperty (URLConnection)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • JOptionPane (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now