Tabnine Logo
PApplet.rect
Code IndexAdd Tabnine to your IDE (free)

How to use
rect
method
in
processing.core.PApplet

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

origin: mirador/mirador

public void rect(float a, float b, float c, float d,
  float tl, float tr, float br, float bl) {
 intf.app.rect(a, b, c, d, tl, tr, br, bl);
}

origin: mirador/mirador

public void rect(float a, float b, float c, float d, float r) {
 intf.app.rect(a, b, c, d, r);
}

origin: mirador/mirador

public void rect(float a, float b, float c, float d) {
 intf.app.rect(a, b, c, d);
}

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

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

@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: 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: 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: 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);
}

processing.corePAppletrect

Javadoc

( begin auto-generated from rect.xml ) Draws a rectangle to the screen. A rectangle is a four-sided shape with every angle at ninety degrees. By default, the first two parameters set the location of the upper-left corner, the third sets the width, and the fourth sets the height. These parameters may be changed with the rectMode() function. ( end auto-generated )

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

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • BoxLayout (javax.swing)
  • Join (org.hibernate.mapping)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now