processing.core
Interface PConstants

All Known Implementing Classes:
Capture, ColorSelector.ColorRange, ColorSelector.ColorSlider, Movie, PApplet, PFont, PGraphics, PGraphics2D, PGraphics3D, PGraphicsJava2D, PGraphicsOpenGL, PGraphicsPDF, PImage, PLine, PPolygon, PShape, PShapeSVG, PSmoothTriangle, PStyle, PTriangle, RawDXF

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 A
           
static int AB
           
static int ADD
           
static int AG
           
static int ALPHA
           
static int ALPHA_MASK
           
static int ALT
           
static int AMBIENT
           
static int AR
           
static int ARC
           
static int ARGB
           
static int ARROW
           
static int B
           
static char BACKSPACE
           
static int BASELINE
          Default vertical alignment for text placement
static int BEEN_LIT
           
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 BOX
           
static int BURN
           
static int CENTER
          Draw from the center, using second pair of values as the diameter.
static int CENTER_DIAMETER
          Deprecated. Use DIAMETER instead.
static int CENTER_RADIUS
          Deprecated. Use RADIUS instead.
static int CHATTER
           
static int CLOSE
           
static int CMYK
           
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 DA
           
static int DARKEST
           
static int DB
           
static float DEG_TO_RAD
           
static char DELETE
           
static int DG
           
static int DIAMETER
          Synonym for the CENTER constant.
static int DIFFERENCE
           
static int DILATE
           
static int DIRECTIONAL
           
static int DISABLE_ACCURATE_TEXTURES
           
static int DISABLE_DEPTH_SORT
           
static int DISABLE_DEPTH_TEST
           
static int DISABLE_OPENGL_2X_SMOOTH
           
static int DISABLE_OPENGL_ERROR_REPORT
           
static int DODGE
           
static int DOWN
           
static int DR
           
static java.lang.String DXF
           
static int EB
           
static int EDGE
           
static int EG
           
static int ELLIPSE
           
static int ENABLE_ACCURATE_TEXTURES
           
static int ENABLE_DEPTH_SORT
           
static int ENABLE_DEPTH_TEST
           
static int ENABLE_NATIVE_FONTS
           
static int ENABLE_OPENGL_2X_SMOOTH
           
static int ENABLE_OPENGL_4X_SMOOTH
           
static int ENABLE_OPENGL_ERROR_REPORT
           
static char ENTER
           
static float EPSILON
           
static int ER
           
static int ERODE
           
static java.lang.String ERROR_BACKGROUND_IMAGE_FORMAT
           
static java.lang.String ERROR_BACKGROUND_IMAGE_SIZE
           
static java.lang.String ERROR_PUSHMATRIX_OVERFLOW
           
static java.lang.String ERROR_PUSHMATRIX_UNDERFLOW
           
static java.lang.String ERROR_TEXTFONT_NULL_PFONT
           
static char ESC
           
static int EXCLUSION
           
static int G
           
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
          texture coordinates based on image width/height
static int INVERT
           
static java.lang.String JAVA2D
           
static int JPEG
           
static int LEFT
           
static int LIGHTEST
           
static int LINE
           
static int LINES
           
static int LINUX
           
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 NORMAL
          texture coordinates in 0..1 range
static int NORMALIZED
          Deprecated. use NORMAL instead
static int NX
           
static int NY
           
static int NZ
           
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 int PATH
           
static java.lang.String PDF
           
static int PERSPECTIVE
           
static float PI
           
static java.lang.String[] platformNames
           
static int POINT
           
static int POINTS
           
static int POLYGON
           
static int POSTERIZE
           
static int PROBLEM
           
static int PROJECT
           
static int QUAD
           
static int QUAD_STRIP
           
static int QUADS
           
static float QUARTER_PI
           
static int R
           
static float RAD_TO_DEG
           
static int RADIUS
          Draw mode from the center, and using the radius
static int RECT
           
static int RED_MASK
           
static int REPLACE
           
static char RETURN
           
static int RGB
           
static int RIGHT
           
static int ROUND
           
static int SA
           
static int SB
           
static int SCREEN
           
static int SG
           
static int SHAPE
          textMode(SHAPE) draws text using the the glyph outlines of individual characters rather than as textures.
static int SHIFT
           
static int SHINE
           
static int SOFT_LIGHT
           
static int SPB
           
static int SPG
           
static int SPHERE
           
static int SPOT
           
static int SPR
           
static int SQUARE
           
static int SR
          stroke argb values
static int SUBTRACT
           
static int SW
          stroke weight
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
           
static int TRIANGLE_FAN
           
static int TRIANGLE_STRIP
           
static int TRIANGLES
           
static float TWO_PI
           
static int TX
           
static int TY
           
static int TZ
           
static int U
           
static int UP
           
static int V
           
static int VERTEX_FIELD_COUNT
           
static int VW
           
static int VX
           
static int VY
           
static int VZ
           
static int WAIT
           
static java.lang.String WHITESPACE
           
static int WINDOWS
           
static int X
           
static int Y
           
static int Z
           
 

Field Detail

X

static final int X
See Also:
Constant Field Values

Y

static final int Y
See Also:
Constant Field Values

Z

static final int Z
See Also:
Constant Field Values

R

static final int R
See Also:
Constant Field Values

G

static final int G
See Also:
Constant Field Values

B

static final int B
See Also:
Constant Field Values

A

static final int A
See Also:
Constant Field Values

U

static final int U
See Also:
Constant Field Values

V

static final int V
See Also:
Constant Field Values

NX

static final int NX
See Also:
Constant Field Values

NY

static final int NY
See Also:
Constant Field Values

NZ

static final int NZ
See Also:
Constant Field Values

EDGE

static final int EDGE
See Also:
Constant Field Values

SR

static final int SR
stroke argb values

See Also:
Constant Field Values

SG

static final int SG
See Also:
Constant Field Values

SB

static final int SB
See Also:
Constant Field Values

SA

static final int SA
See Also:
Constant Field Values

SW

static final int SW
stroke weight

See Also:
Constant Field Values

TX

static final int TX
See Also:
Constant Field Values

TY

static final int TY
See Also:
Constant Field Values

TZ

static final int TZ
See Also:
Constant Field Values

VX

static final int VX
See Also:
Constant Field Values

VY

static final int VY
See Also:
Constant Field Values

VZ

static final int VZ
See Also:
Constant Field Values

VW

static final int VW
See Also:
Constant Field Values

AR

static final int AR
See Also:
Constant Field Values

AG

static final int AG
See Also:
Constant Field Values

AB

static final int AB
See Also:
Constant Field Values

DR

static final int DR
See Also:
Constant Field Values

DG

static final int DG
See Also:
Constant Field Values

DB

static final int DB
See Also:
Constant Field Values

DA

static final int DA
See Also:
Constant Field Values

SPR

static final int SPR
See Also:
Constant Field Values

SPG

static final int SPG
See Also:
Constant Field Values

SPB

static final int SPB
See Also:
Constant Field Values

SHINE

static final int SHINE
See Also:
Constant Field Values

ER

static final int ER
See Also:
Constant Field Values

EG

static final int EG
See Also:
Constant Field Values

EB

static final int EB
See Also:
Constant Field Values

BEEN_LIT

static final int BEEN_LIT
See Also:
Constant Field Values

VERTEX_FIELD_COUNT

static final int VERTEX_FIELD_COUNT
See Also:
Constant Field Values

P2D

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

P3D

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

JAVA2D

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

OPENGL

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

PDF

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

DXF

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

OTHER

static final int OTHER
See Also:
Constant Field Values

WINDOWS

static final int WINDOWS
See Also:
Constant Field Values

MACOSX

static final int MACOSX
See Also:
Constant Field Values

LINUX

static final int LINUX
See Also:
Constant Field Values

platformNames

static final java.lang.String[] platformNames

EPSILON

static final float EPSILON
See Also:
Constant Field Values

MAX_FLOAT

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

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

static final int MAX_INT
Largest possible (positive) integer value

See Also:
Constant Field Values

MIN_INT

static final int MIN_INT
Smallest possible (negative) integer value

See Also:
Constant Field Values

PI

static final float PI
See Also:
Constant Field Values

HALF_PI

static final float HALF_PI
See Also:
Constant Field Values

THIRD_PI

static final float THIRD_PI
See Also:
Constant Field Values

QUARTER_PI

static final float QUARTER_PI
See Also:
Constant Field Values

TWO_PI

static final float TWO_PI
See Also:
Constant Field Values

DEG_TO_RAD

static final float DEG_TO_RAD
See Also:
Constant Field Values

RAD_TO_DEG

static final float RAD_TO_DEG
See Also:
Constant Field Values

WHITESPACE

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

RGB

static final int RGB
See Also:
Constant Field Values

ARGB

static final int ARGB
See Also:
Constant Field Values

HSB

static final int HSB
See Also:
Constant Field Values

ALPHA

static final int ALPHA
See Also:
Constant Field Values

CMYK

static final int CMYK
See Also:
Constant Field Values

TIFF

static final int TIFF
See Also:
Constant Field Values

TARGA

static final int TARGA
See Also:
Constant Field Values

JPEG

static final int JPEG
See Also:
Constant Field Values

GIF

static final int GIF
See Also:
Constant Field Values

BLUR

static final int BLUR
See Also:
Constant Field Values

GRAY

static final int GRAY
See Also:
Constant Field Values

INVERT

static final int INVERT
See Also:
Constant Field Values

OPAQUE

static final int OPAQUE
See Also:
Constant Field Values

POSTERIZE

static final int POSTERIZE
See Also:
Constant Field Values

THRESHOLD

static final int THRESHOLD
See Also:
Constant Field Values

ERODE

static final int ERODE
See Also:
Constant Field Values

DILATE

static final int DILATE
See Also:
Constant Field Values

REPLACE

static final int REPLACE
See Also:
Constant Field Values

BLEND

static final int BLEND
See Also:
Constant Field Values

ADD

static final int ADD
See Also:
Constant Field Values

SUBTRACT

static final int SUBTRACT
See Also:
Constant Field Values

LIGHTEST

static final int LIGHTEST
See Also:
Constant Field Values

DARKEST

static final int DARKEST
See Also:
Constant Field Values

DIFFERENCE

static final int DIFFERENCE
See Also:
Constant Field Values

EXCLUSION

static final int EXCLUSION
See Also:
Constant Field Values

MULTIPLY

static final int MULTIPLY
See Also:
Constant Field Values

SCREEN

static final int SCREEN
See Also:
Constant Field Values

OVERLAY

static final int OVERLAY
See Also:
Constant Field Values

HARD_LIGHT

static final int HARD_LIGHT
See Also:
Constant Field Values

SOFT_LIGHT

static final int SOFT_LIGHT
See Also:
Constant Field Values

DODGE

static final int DODGE
See Also:
Constant Field Values

BURN

static final int BURN
See Also:
Constant Field Values

ALPHA_MASK

static final int ALPHA_MASK
See Also:
Constant Field Values

RED_MASK

static final int RED_MASK
See Also:
Constant Field Values

GREEN_MASK

static final int GREEN_MASK
See Also:
Constant Field Values

BLUE_MASK

static final int BLUE_MASK
See Also:
Constant Field Values

CHATTER

static final int CHATTER
See Also:
Constant Field Values

COMPLAINT

static final int COMPLAINT
See Also:
Constant Field Values

PROBLEM

static final int PROBLEM
See Also:
Constant Field Values

CUSTOM

static final int CUSTOM
See Also:
Constant Field Values

ORTHOGRAPHIC

static final int ORTHOGRAPHIC
See Also:
Constant Field Values

PERSPECTIVE

static final int PERSPECTIVE
See Also:
Constant Field Values

POINT

static final int POINT
See Also:
Constant Field Values

POINTS

static final int POINTS
See Also:
Constant Field Values

LINE

static final int LINE
See Also:
Constant Field Values

LINES

static final int LINES
See Also:
Constant Field Values

TRIANGLE

static final int TRIANGLE
See Also:
Constant Field Values

TRIANGLES

static final int TRIANGLES
See Also:
Constant Field Values

TRIANGLE_STRIP

static final int TRIANGLE_STRIP
See Also:
Constant Field Values

TRIANGLE_FAN

static final int TRIANGLE_FAN
See Also:
Constant Field Values

QUAD

static final int QUAD
See Also:
Constant Field Values

QUADS

static final int QUADS
See Also:
Constant Field Values

QUAD_STRIP

static final int QUAD_STRIP
See Also:
Constant Field Values

POLYGON

static final int POLYGON
See Also:
Constant Field Values

PATH

static final int PATH
See Also:
Constant Field Values

RECT

static final int RECT
See Also:
Constant Field Values

ELLIPSE

static final int ELLIPSE
See Also:
Constant Field Values

ARC

static final int ARC
See Also:
Constant Field Values

SPHERE

static final int SPHERE
See Also:
Constant Field Values

BOX

static final int BOX
See Also:
Constant Field Values

OPEN

static final int OPEN
See Also:
Constant Field Values

CLOSE

static final int CLOSE
See Also:
Constant Field Values

CORNER

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

See Also:
Constant Field Values

CORNERS

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

See Also:
Constant Field Values

RADIUS

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

See Also:
Constant Field Values

CENTER_RADIUS

static final int CENTER_RADIUS
Deprecated. Use RADIUS instead.
See Also:
Constant Field Values

CENTER

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

DIAMETER

static final int DIAMETER
Synonym for the CENTER constant. Draw from the center, using second pair of values as the diameter.

See Also:
Constant Field Values

CENTER_DIAMETER

static final int CENTER_DIAMETER
Deprecated. Use DIAMETER instead.
See Also:
Constant Field Values

BASELINE

static final int BASELINE
Default vertical alignment for text placement

See Also:
Constant Field Values

TOP

static final int TOP
Align text to the top

See Also:
Constant Field Values

BOTTOM

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

See Also:
Constant Field Values

NORMAL

static final int NORMAL
texture coordinates in 0..1 range

See Also:
Constant Field Values

NORMALIZED

static final int NORMALIZED
Deprecated. use NORMAL instead
See Also:
Constant Field Values

IMAGE

static final int IMAGE
texture coordinates based on image width/height

See Also:
Constant Field Values

MODEL

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

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

static final int SQUARE
See Also:
Constant Field Values

ROUND

static final int ROUND
See Also:
Constant Field Values

PROJECT

static final int PROJECT
See Also:
Constant Field Values

MITER

static final int MITER
See Also:
Constant Field Values

BEVEL

static final int BEVEL
See Also:
Constant Field Values

AMBIENT

static final int AMBIENT
See Also:
Constant Field Values

DIRECTIONAL

static final int DIRECTIONAL
See Also:
Constant Field Values

SPOT

static final int SPOT
See Also:
Constant Field Values

BACKSPACE

static final char BACKSPACE
See Also:
Constant Field Values

TAB

static final char TAB
See Also:
Constant Field Values

ENTER

static final char ENTER
See Also:
Constant Field Values

RETURN

static final char RETURN
See Also:
Constant Field Values

ESC

static final char ESC
See Also:
Constant Field Values

DELETE

static final char DELETE
See Also:
Constant Field Values

CODED

static final int CODED
See Also:
Constant Field Values

UP

static final int UP
See Also:
Constant Field Values

DOWN

static final int DOWN
See Also:
Constant Field Values

LEFT

static final int LEFT
See Also:
Constant Field Values

RIGHT

static final int RIGHT
See Also:
Constant Field Values

ALT

static final int ALT
See Also:
Constant Field Values

CONTROL

static final int CONTROL
See Also:
Constant Field Values

SHIFT

static final int SHIFT
See Also:
Constant Field Values

ARROW

static final int ARROW
See Also:
Constant Field Values

CROSS

static final int CROSS
See Also:
Constant Field Values

HAND

static final int HAND
See Also:
Constant Field Values

MOVE

static final int MOVE
See Also:
Constant Field Values

TEXT

static final int TEXT
See Also:
Constant Field Values

WAIT

static final int WAIT
See Also:
Constant Field Values

DISABLE_OPENGL_2X_SMOOTH

static final int DISABLE_OPENGL_2X_SMOOTH
See Also:
Constant Field Values

ENABLE_OPENGL_2X_SMOOTH

static final int ENABLE_OPENGL_2X_SMOOTH
See Also:
Constant Field Values

ENABLE_OPENGL_4X_SMOOTH

static final int ENABLE_OPENGL_4X_SMOOTH
See Also:
Constant Field Values

ENABLE_NATIVE_FONTS

static final int ENABLE_NATIVE_FONTS
See Also:
Constant Field Values

DISABLE_DEPTH_TEST

static final int DISABLE_DEPTH_TEST
See Also:
Constant Field Values

ENABLE_DEPTH_TEST

static final int ENABLE_DEPTH_TEST
See Also:
Constant Field Values

ENABLE_DEPTH_SORT

static final int ENABLE_DEPTH_SORT
See Also:
Constant Field Values

DISABLE_DEPTH_SORT

static final int DISABLE_DEPTH_SORT
See Also:
Constant Field Values

DISABLE_OPENGL_ERROR_REPORT

static final int DISABLE_OPENGL_ERROR_REPORT
See Also:
Constant Field Values

ENABLE_OPENGL_ERROR_REPORT

static final int ENABLE_OPENGL_ERROR_REPORT
See Also:
Constant Field Values

ENABLE_ACCURATE_TEXTURES

static final int ENABLE_ACCURATE_TEXTURES
See Also:
Constant Field Values

DISABLE_ACCURATE_TEXTURES

static final int DISABLE_ACCURATE_TEXTURES
See Also:
Constant Field Values

HINT_COUNT

static final int HINT_COUNT
See Also:
Constant Field Values

ERROR_BACKGROUND_IMAGE_SIZE

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

ERROR_BACKGROUND_IMAGE_FORMAT

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

ERROR_TEXTFONT_NULL_PFONT

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

ERROR_PUSHMATRIX_OVERFLOW

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

ERROR_PUSHMATRIX_UNDERFLOW

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