public interface PConstants
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.
Modifier and Type | Field and Description |
---|---|
static int |
ADD |
static int |
ALPHA |
static int |
ALT |
static int |
AMBIENT |
static int |
ARC |
static int |
ARGB |
static int |
ARROW |
static char |
BACKSPACE |
static int |
BASELINE
Default vertical alignment for text placement
|
static int |
BEVEL |
static int |
BEZIER_VERTEX |
static int |
BLEND |
static int |
BLUR |
static int |
BOTTOM
Align text from the bottom, using the baseline.
|
static int |
BOX |
static int |
BREAK |
static int |
BURN |
static int |
CENTER
Draw from the center, using second pair of values as the diameter.
|
static int |
CHATTER |
static int |
CHORD |
static int |
CLAMP
textures are clamped to their edges
|
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 |
CURVE_VERTEX |
static int |
CUSTOM |
static int |
DARKEST |
static float |
DEG_TO_RAD |
static char |
DELETE |
static int |
DIAMETER
Synonym for the CENTER constant.
|
static int |
DIFFERENCE |
static int |
DILATE |
static int |
DIRECTIONAL |
static int |
DISABLE_ASYNC_SAVEFRAME |
static int |
DISABLE_BUFFER_READING |
static int |
DISABLE_DEPTH_MASK |
static int |
DISABLE_DEPTH_SORT |
static int |
DISABLE_DEPTH_TEST |
static int |
DISABLE_KEY_REPEAT |
static int |
DISABLE_NATIVE_FONTS
Deprecated.
|
static int |
DISABLE_OPENGL_ERRORS |
static int |
DISABLE_OPTIMIZED_STROKE |
static int |
DISABLE_STROKE_PERSPECTIVE |
static int |
DISABLE_STROKE_PURE |
static int |
DISABLE_TEXTURE_MIPMAPS |
static int |
DODGE |
static int |
DOWN |
static String |
DXF |
static int |
ELLIPSE |
static int |
ENABLE_ASYNC_SAVEFRAME |
static int |
ENABLE_BUFFER_READING |
static int |
ENABLE_DEPTH_MASK |
static int |
ENABLE_DEPTH_SORT |
static int |
ENABLE_DEPTH_TEST |
static int |
ENABLE_KEY_REPEAT |
static int |
ENABLE_NATIVE_FONTS
Deprecated.
|
static int |
ENABLE_OPENGL_ERRORS |
static int |
ENABLE_OPTIMIZED_STROKE |
static int |
ENABLE_STROKE_PERSPECTIVE |
static int |
ENABLE_STROKE_PURE |
static int |
ENABLE_TEXTURE_MIPMAPS |
static char |
ENTER |
static float |
EPSILON |
static int |
ERODE |
static char |
ESC |
static int |
EXCLUSION |
static String |
FX2D |
static int |
GIF |
static int |
GRAY |
static int |
GROUP |
static float |
HALF_PI
( begin auto-generated from HALF_PI.xml )
HALF_PI is a mathematical constant with the value
1.57079632679489661923.
|
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 String |
JAVA2D |
static int |
JPEG |
static int |
LANDSCAPE
Screen orientation constant for landscape (the hot dog way).
|
static int |
LEFT |
static int |
LIGHTEST |
static int |
LINE |
static int |
LINE_LOOP |
static int |
LINE_STRIP |
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 |
MODELVIEW |
static int |
MOVE |
static int |
MULTIPLY |
static int |
NORMAL
texture coordinates in 0..1 range
|
static int |
OPAQUE |
static int |
OPEN |
static String |
OPENGL
Deprecated.
|
static int |
ORTHOGRAPHIC |
static int |
OTHER |
static int |
OVERLAY |
static String |
P2D |
static String |
P3D |
static int |
PATH |
static String |
PDF |
static int |
PERSPECTIVE |
static float |
PI
( begin auto-generated from PI.xml )
PI is a mathematical constant with the value 3.14159265358979323846.
|
static int |
PIE |
static String[] |
platformNames |
static int |
POINT |
static int |
POINTS |
static int |
POLYGON |
static int |
PORTRAIT
Screen orientation constant for portrait (the hamburger way).
|
static int |
POSTERIZE |
static int |
PROBLEM |
static int |
PROJECT |
static int |
PROJECTION |
static int |
QUAD |
static int |
QUAD_BEZIER_VERTEX
Deprecated.
|
static int |
QUAD_STRIP |
static int |
QUADRATIC_VERTEX |
static int |
QUADS |
static float |
QUARTER_PI
( begin auto-generated from QUARTER_PI.xml )
QUARTER_PI is a mathematical constant with the value 0.7853982.
|
static float |
RAD_TO_DEG |
static int |
RADIUS
Draw mode from the center, and using the radius
|
static int |
RECT |
static int |
REPEAT
textures wrap around when uv values go outside 0..1 range
|
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 |
SPAN
Use with fullScreen() to indicate all available displays.
|
static int |
SPHERE |
static int |
SPOT |
static int |
SQUARE |
static int |
SUBTRACT |
static String |
SVG |
static char |
TAB |
static int |
TARGA |
static float |
TAU
( begin auto-generated from TAU.xml )
TAU is an alias for TWO_PI, a mathematical constant with the value
6.28318530717958647693.
|
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
( begin auto-generated from TWO_PI.xml )
TWO_PI is a mathematical constant with the value 6.28318530717958647693.
|
static int |
UP |
static int |
VERTEX |
static int |
WAIT |
static String |
WHITESPACE |
static int |
WINDOWS |
static int |
X |
static int |
Y |
static int |
Z |
static final int X
static final int Y
static final int Z
static final String JAVA2D
static final String P2D
static final String P3D
@Deprecated static final String OPENGL
static final String FX2D
static final String PDF
static final String SVG
static final String DXF
static final int OTHER
static final int WINDOWS
static final int MACOSX
static final int LINUX
static final String[] platformNames
static final float EPSILON
static final float MAX_FLOAT
static final float MIN_FLOAT
static final int MAX_INT
static final int MIN_INT
static final int VERTEX
static final int BEZIER_VERTEX
static final int QUADRATIC_VERTEX
static final int CURVE_VERTEX
static final int BREAK
@Deprecated static final int QUAD_BEZIER_VERTEX
static final float PI
TWO_PI
,
TAU
,
HALF_PI
,
QUARTER_PI
,
Constant Field Valuesstatic final float HALF_PI
PI
,
TWO_PI
,
TAU
,
QUARTER_PI
,
Constant Field Valuesstatic final float THIRD_PI
static final float QUARTER_PI
PI
,
TWO_PI
,
TAU
,
HALF_PI
,
Constant Field Valuesstatic final float TWO_PI
PI
,
TAU
,
HALF_PI
,
QUARTER_PI
,
Constant Field Valuesstatic final float TAU
PI
,
TWO_PI
,
HALF_PI
,
QUARTER_PI
,
Constant Field Valuesstatic final float DEG_TO_RAD
static final float RAD_TO_DEG
static final String WHITESPACE
static final int RGB
static final int ARGB
static final int HSB
static final int ALPHA
static final int TIFF
static final int TARGA
static final int JPEG
static final int GIF
static final int BLUR
static final int GRAY
static final int INVERT
static final int OPAQUE
static final int POSTERIZE
static final int THRESHOLD
static final int ERODE
static final int DILATE
static final int REPLACE
static final int BLEND
static final int ADD
static final int SUBTRACT
static final int LIGHTEST
static final int DARKEST
static final int DIFFERENCE
static final int EXCLUSION
static final int MULTIPLY
static final int SCREEN
static final int OVERLAY
static final int HARD_LIGHT
static final int SOFT_LIGHT
static final int DODGE
static final int BURN
static final int CHATTER
static final int COMPLAINT
static final int PROBLEM
static final int PROJECTION
static final int MODELVIEW
static final int CUSTOM
static final int ORTHOGRAPHIC
static final int PERSPECTIVE
static final int GROUP
static final int POINT
static final int POINTS
static final int LINE
static final int LINES
static final int LINE_STRIP
static final int LINE_LOOP
static final int TRIANGLE
static final int TRIANGLES
static final int TRIANGLE_STRIP
static final int TRIANGLE_FAN
static final int QUAD
static final int QUADS
static final int QUAD_STRIP
static final int POLYGON
static final int PATH
static final int RECT
static final int ELLIPSE
static final int ARC
static final int SPHERE
static final int BOX
static final int OPEN
static final int CLOSE
static final int CORNER
static final int CORNERS
static final int RADIUS
static final int CENTER
static final int DIAMETER
static final int CHORD
static final int PIE
static final int BASELINE
static final int TOP
static final int BOTTOM
static final int NORMAL
static final int IMAGE
static final int CLAMP
static final int REPEAT
static final int MODEL
static final int SHAPE
static final int SQUARE
static final int ROUND
static final int PROJECT
static final int MITER
static final int BEVEL
static final int AMBIENT
static final int DIRECTIONAL
static final int SPOT
static final char BACKSPACE
static final char TAB
static final char ENTER
static final char RETURN
static final char ESC
static final char DELETE
static final int CODED
static final int UP
static final int DOWN
static final int LEFT
static final int RIGHT
static final int ALT
static final int CONTROL
static final int SHIFT
static final int PORTRAIT
static final int LANDSCAPE
static final int SPAN
static final int ARROW
static final int CROSS
static final int HAND
static final int MOVE
static final int TEXT
static final int WAIT
@Deprecated static final int ENABLE_NATIVE_FONTS
@Deprecated static final int DISABLE_NATIVE_FONTS
static final int DISABLE_DEPTH_TEST
static final int ENABLE_DEPTH_TEST
static final int ENABLE_DEPTH_SORT
static final int DISABLE_DEPTH_SORT
static final int DISABLE_OPENGL_ERRORS
static final int ENABLE_OPENGL_ERRORS
static final int DISABLE_DEPTH_MASK
static final int ENABLE_DEPTH_MASK
static final int DISABLE_OPTIMIZED_STROKE
static final int ENABLE_OPTIMIZED_STROKE
static final int ENABLE_STROKE_PERSPECTIVE
static final int DISABLE_STROKE_PERSPECTIVE
static final int DISABLE_TEXTURE_MIPMAPS
static final int ENABLE_TEXTURE_MIPMAPS
static final int ENABLE_STROKE_PURE
static final int DISABLE_STROKE_PURE
static final int ENABLE_BUFFER_READING
static final int DISABLE_BUFFER_READING
static final int DISABLE_KEY_REPEAT
static final int ENABLE_KEY_REPEAT
static final int DISABLE_ASYNC_SAVEFRAME
static final int ENABLE_ASYNC_SAVEFRAME
static final int HINT_COUNT