processing.core
Interface PConstants

All Known Implementing Classes:
Movie, PApplet, PFont, PGraphics, PImage, PLine, PMatrix, PPolygon, PTriangle

public interface PConstants

Numbers shared throughout processing.core.

An attempt is made to keep the constants as short/non-verbose as possible. For instance, the constant is TIFF instead of FILE_TYPE_TIFF. We'll do this as long as we can get away with it.


Field Summary
static int ADD
           
static int ALPHA
           
static int ALPHA_MASK
           
static int ALT
           
static int AMBIENT
           
static int ARGB
           
static int ARROW
           
static char BACKSPACE
           
static int BASELINE
          Default vertical alignment for text placement
static int BEVEL
           
static int BLEND
           
static int BLUE_MASK
           
static int BLUR
           
static int BOTTOM
          Align text from the bottom, using the baseline.
static int BURN
           
static int CENTER
          Draw from the center, using second pair of values as the diameter.
static int CENTER_RADIUS
          Deprecated. Use RADIUS instead (as of 0125)
static int CHATTER
           
static int CLOSE
           
static int CODED
           
static int COMPLAINT
           
static int CONTROL
           
static int CORNER
          Draw mode convention to use (x, y) to (width, height)
static int CORNERS
          Draw mode convention to use (x1, y1) to (x2, y2) coordinates
static int CROSS
           
static int CUSTOM
           
static int DARKEST
           
static float DEG_TO_RAD
           
static char DELETE
           
static int DIFFERENCE
           
static int DILATE
           
static int DIRECTIONAL
           
static int DISABLE_AUTO_GZIP
           
static int DISABLE_DEPTH_TEST
           
static int DISABLE_ERROR_REPORT
           
static int DISABLE_TEXT_SMOOTH
           
static int DODGE
           
static int DOWN
           
static java.lang.String DXF
           
static int ENABLE_ACCURATE_TEXTURES
           
static int ENABLE_DEPTH_SORT
           
static int ENABLE_NATIVE_FONTS
           
static char ENTER
           
static float EPSILON
           
static int ERODE
           
static char ESC
           
static int EXCLUSION
           
static int GIF
           
static int GRAY
           
static int GREEN_MASK
           
static float HALF_PI
           
static int HAND
           
static int HARD_LIGHT
           
static int HINT_COUNT
           
static int HSB
           
static int IMAGE
           
static int INVERT
           
static java.lang.String JAVA2D
           
static int JPEG
           
static int LEFT
           
static int LIGHTEST
           
static int LINES
           
static int LINUX
           
static int MACOS9
           
static int MACOSX
           
static float MAX_FLOAT
          Same as Float.MAX_VALUE, but included for parity with MIN_VALUE, and to avoid teaching static methods on the first day.
static int MAX_INT
          Largest possible (positive) integer value
static float MIN_FLOAT
          Note that Float.MIN_VALUE is the smallest positive value for a floating point number, not actually the minimum (negative) value for a float.
static int MIN_INT
          Smallest possible (negative) integer value
static int MITER
           
static int MODEL
          textMode(MODEL) is the default, meaning that characters will be affected by transformations like any other shapes.
static int MOVE
           
static int MULTIPLY
           
static int NO_FLYING_POO
           
static int NORMALIZED
           
static int OPAQUE
           
static int OPEN
           
static java.lang.String OPENGL
           
static int ORTHOGRAPHIC
           
static int OTHER
           
static int OVERLAY
           
static java.lang.String P2D
           
static java.lang.String P3D
           
static java.lang.String PDF
           
static int PERSPECTIVE
           
static float PI
           
static float PIXEL_CENTER
           
static int POINT
           
static int POINTS
           
static int POLYGON
           
static int POSTERIZE
           
static int PROBLEM
           
static int PROJECT
           
static int QUAD_STRIP
           
static int QUADS
           
static float QUARTER_PI
           
static float RAD_TO_DEG
           
static int RADIUS
          Draw mode from the center, and using the radius
static int RED_MASK
           
static int REPLACE
           
static char RETURN
           
static int RGB
           
static int RIGHT
           
static int ROUND
           
static int SCREEN
           
static int SHAPE
          textMode(SHAPE) draws text using the the glyph outlines of individual characters rather than as textures.
static int SHIFT
           
static int SOFT_LIGHT
           
static int SPOT
           
static int SQUARE
           
static int SUBTRACT
           
static char TAB
           
static int TARGA
           
static int TEXT
           
static float THIRD_PI
           
static int THRESHOLD
           
static int TIFF
           
static int TOP
          Align text to the top
static int TRIANGLE_FAN
           
static int TRIANGLE_STRIP
           
static int TRIANGLES
           
static float TWO_PI
           
static int UP
           
static int WAIT
           
static java.lang.String WHITESPACE
           
static int WINDOWS
           
 

Field Detail

P2D

public static final java.lang.String P2D
See Also:
Constant Field Values

P3D

public static final java.lang.String P3D
See Also:
Constant Field Values

JAVA2D

public static final java.lang.String JAVA2D
See Also:
Constant Field Values

OPENGL

public static final java.lang.String OPENGL
See Also:
Constant Field Values

PDF

public static final java.lang.String PDF
See Also:
Constant Field Values

DXF

public static final java.lang.String DXF
See Also:
Constant Field Values

WINDOWS

public static final int WINDOWS
See Also:
Constant Field Values

MACOS9

public static final int MACOS9
See Also:
Constant Field Values

MACOSX

public static final int MACOSX
See Also:
Constant Field Values

LINUX

public static final int LINUX
See Also:
Constant Field Values

OTHER

public static final int OTHER
See Also:
Constant Field Values

EPSILON

public static final float EPSILON
See Also:
Constant Field Values

MAX_FLOAT

public static final float MAX_FLOAT
Same as Float.MAX_VALUE, but included for parity with MIN_VALUE, and to avoid teaching static methods on the first day.

See Also:
Constant Field Values

MIN_FLOAT

public static final float MIN_FLOAT
Note that Float.MIN_VALUE is the smallest positive value for a floating point number, not actually the minimum (negative) value for a float. This constant equals 0xFF7FFFFF, the smallest (farthest negative) value a float can have before it hits NaN.

See Also:
Constant Field Values

MAX_INT

public static final int MAX_INT
Largest possible (positive) integer value

See Also:
Constant Field Values

MIN_INT

public static final int MIN_INT
Smallest possible (negative) integer value

See Also:
Constant Field Values

PI

public static final float PI
See Also:
Constant Field Values

HALF_PI

public static final float HALF_PI
See Also:
Constant Field Values

THIRD_PI

public static final float THIRD_PI
See Also:
Constant Field Values

QUARTER_PI

public static final float QUARTER_PI
See Also:
Constant Field Values

TWO_PI

public static final float TWO_PI
See Also:
Constant Field Values

DEG_TO_RAD

public static final float DEG_TO_RAD
See Also:
Constant Field Values

RAD_TO_DEG

public static final float RAD_TO_DEG
See Also:
Constant Field Values

WHITESPACE

public static final java.lang.String WHITESPACE
See Also:
Constant Field Values

RGB

public static final int RGB
See Also:
Constant Field Values

ARGB

public static final int ARGB
See Also:
Constant Field Values

HSB

public static final int HSB
See Also:
Constant Field Values

ALPHA

public static final int ALPHA
See Also:
Constant Field Values

TIFF

public static final int TIFF
See Also:
Constant Field Values

TARGA

public static final int TARGA
See Also:
Constant Field Values

JPEG

public static final int JPEG
See Also:
Constant Field Values

GIF

public static final int GIF
See Also:
Constant Field Values

BLUR

public static final int BLUR
See Also:
Constant Field Values

GRAY

public static final int GRAY
See Also:
Constant Field Values

INVERT

public static final int INVERT
See Also:
Constant Field Values

OPAQUE

public static final int OPAQUE
See Also:
Constant Field Values

POSTERIZE

public static final int POSTERIZE
See Also:
Constant Field Values

THRESHOLD

public static final int THRESHOLD
See Also:
Constant Field Values

ERODE

public static final int ERODE
See Also:
Constant Field Values

DILATE

public static final int DILATE
See Also:
Constant Field Values

REPLACE

public static final int REPLACE
See Also:
Constant Field Values

BLEND

public static final int BLEND
See Also:
Constant Field Values

ADD

public static final int ADD
See Also:
Constant Field Values

SUBTRACT

public static final int SUBTRACT
See Also:
Constant Field Values

LIGHTEST

public static final int LIGHTEST
See Also:
Constant Field Values

DARKEST

public static final int DARKEST
See Also:
Constant Field Values

DIFFERENCE

public static final int DIFFERENCE
See Also:
Constant Field Values

EXCLUSION

public static final int EXCLUSION
See Also:
Constant Field Values

MULTIPLY

public static final int MULTIPLY
See Also:
Constant Field Values

SCREEN

public static final int SCREEN
See Also:
Constant Field Values

OVERLAY

public static final int OVERLAY
See Also:
Constant Field Values

HARD_LIGHT

public static final int HARD_LIGHT
See Also:
Constant Field Values

SOFT_LIGHT

public static final int SOFT_LIGHT
See Also:
Constant Field Values

DODGE

public static final int DODGE
See Also:
Constant Field Values

BURN

public static final int BURN
See Also:
Constant Field Values

ALPHA_MASK

public static final int ALPHA_MASK
See Also:
Constant Field Values

RED_MASK

public static final int RED_MASK
See Also:
Constant Field Values

GREEN_MASK

public static final int GREEN_MASK
See Also:
Constant Field Values

BLUE_MASK

public static final int BLUE_MASK
See Also:
Constant Field Values

CHATTER

public static final int CHATTER
See Also:
Constant Field Values

COMPLAINT

public static final int COMPLAINT
See Also:
Constant Field Values

PROBLEM

public static final int PROBLEM
See Also:
Constant Field Values

CUSTOM

public static final int CUSTOM
See Also:
Constant Field Values

ORTHOGRAPHIC

public static final int ORTHOGRAPHIC
See Also:
Constant Field Values

PERSPECTIVE

public static final int PERSPECTIVE
See Also:
Constant Field Values

PIXEL_CENTER

public static final float PIXEL_CENTER
See Also:
Constant Field Values

POINTS

public static final int POINTS
See Also:
Constant Field Values

LINES

public static final int LINES
See Also:
Constant Field Values

TRIANGLES

public static final int TRIANGLES
See Also:
Constant Field Values

TRIANGLE_STRIP

public static final int TRIANGLE_STRIP
See Also:
Constant Field Values

TRIANGLE_FAN

public static final int TRIANGLE_FAN
See Also:
Constant Field Values

QUADS

public static final int QUADS
See Also:
Constant Field Values

QUAD_STRIP

public static final int QUAD_STRIP
See Also:
Constant Field Values

POLYGON

public static final int POLYGON
See Also:
Constant Field Values

OPEN

public static final int OPEN
See Also:
Constant Field Values

CLOSE

public static final int CLOSE
See Also:
Constant Field Values

CORNER

public static final int CORNER
Draw mode convention to use (x, y) to (width, height)

See Also:
Constant Field Values

CORNERS

public static final int CORNERS
Draw mode convention to use (x1, y1) to (x2, y2) coordinates

See Also:
Constant Field Values

CENTER_RADIUS

public static final int CENTER_RADIUS
Deprecated. Use RADIUS instead (as of 0125)

See Also:
Constant Field Values

RADIUS

public static final int RADIUS
Draw mode from the center, and using the radius

See Also:
Constant Field Values

CENTER

public static final int CENTER
Draw from the center, using second pair of values as the diameter. Formerly called CENTER_DIAMETER in alpha releases

See Also:
Constant Field Values

BASELINE

public static final int BASELINE
Default vertical alignment for text placement

See Also:
Constant Field Values

TOP

public static final int TOP
Align text to the top

See Also:
Constant Field Values

BOTTOM

public static final int BOTTOM
Align text from the bottom, using the baseline.

See Also:
Constant Field Values

NORMALIZED

public static final int NORMALIZED
See Also:
Constant Field Values

IMAGE

public static final int IMAGE
See Also:
Constant Field Values

MODEL

public static final int MODEL
textMode(MODEL) is the default, meaning that characters will be affected by transformations like any other shapes.

Changed value in 0093 to not interfere with LEFT, CENTER, and RIGHT.

See Also:
Constant Field Values

SHAPE

public static final int SHAPE
textMode(SHAPE) draws text using the the glyph outlines of individual characters rather than as textures. If the outlines are not available, then textMode(SHAPE) will be ignored and textMode(MODEL) will be used instead. For this reason, be sure to call textMode() after calling textFont().

Currently, textMode(SHAPE) is only supported by OPENGL mode. It also requires Java 1.2 or higher (OPENGL requires 1.4 anyway)

See Also:
Constant Field Values

SQUARE

public static final int SQUARE
See Also:
Constant Field Values

ROUND

public static final int ROUND
See Also:
Constant Field Values

PROJECT

public static final int PROJECT
See Also:
Constant Field Values

MITER

public static final int MITER
See Also:
Constant Field Values

BEVEL

public static final int BEVEL
See Also:
Constant Field Values

AMBIENT

public static final int AMBIENT
See Also:
Constant Field Values

DIRECTIONAL

public static final int DIRECTIONAL
See Also:
Constant Field Values

POINT

public static final int POINT
See Also:
Constant Field Values

SPOT

public static final int SPOT
See Also:
Constant Field Values

BACKSPACE

public static final char BACKSPACE
See Also:
Constant Field Values

TAB

public static final char TAB
See Also:
Constant Field Values

ENTER

public static final char ENTER
See Also:
Constant Field Values

RETURN

public static final char RETURN
See Also:
Constant Field Values

ESC

public static final char ESC
See Also:
Constant Field Values

DELETE

public static final char DELETE
See Also:
Constant Field Values

CODED

public static final int CODED
See Also:
Constant Field Values

UP

public static final int UP
See Also:
Constant Field Values

DOWN

public static final int DOWN
See Also:
Constant Field Values

LEFT

public static final int LEFT
See Also:
Constant Field Values

RIGHT

public static final int RIGHT
See Also:
Constant Field Values

ALT

public static final int ALT
See Also:
Constant Field Values

CONTROL

public static final int CONTROL
See Also:
Constant Field Values

SHIFT

public static final int SHIFT
See Also:
Constant Field Values

ARROW

public static final int ARROW
See Also:
Constant Field Values

CROSS

public static final int CROSS
See Also:
Constant Field Values

HAND

public static final int HAND
See Also:
Constant Field Values

MOVE

public static final int MOVE
See Also:
Constant Field Values

TEXT

public static final int TEXT
See Also:
Constant Field Values

WAIT

public static final int WAIT
See Also:
Constant Field Values

ENABLE_NATIVE_FONTS

public static final int ENABLE_NATIVE_FONTS
See Also:
Constant Field Values

DISABLE_TEXT_SMOOTH

public static final int DISABLE_TEXT_SMOOTH
See Also:
Constant Field Values

DISABLE_DEPTH_TEST

public static final int DISABLE_DEPTH_TEST
See Also:
Constant Field Values

NO_FLYING_POO

public static final int NO_FLYING_POO
See Also:
Constant Field Values

ENABLE_DEPTH_SORT

public static final int ENABLE_DEPTH_SORT
See Also:
Constant Field Values

DISABLE_ERROR_REPORT

public static final int DISABLE_ERROR_REPORT
See Also:
Constant Field Values

ENABLE_ACCURATE_TEXTURES

public static final int ENABLE_ACCURATE_TEXTURES
See Also:
Constant Field Values

DISABLE_AUTO_GZIP

public static final int DISABLE_AUTO_GZIP
See Also:
Constant Field Values

HINT_COUNT

public static final int HINT_COUNT
See Also:
Constant Field Values