|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nootropic.processing.layers.Layer
public abstract class Layer
This class represents a layer in a sketch. The Layer object added to an AppletLayers object which manages the layers for a Processing sketch. This class contains all the drawing primitives of a PApplet object in order to propagate those drawing calls to the underlying PGraphics object. For example, the method line(x1, y1, x2, y2) calls the corresponding method in the PGraphics object to perform the drawing.
Field Summary | |
---|---|
processing.core.PGraphics |
g
The PGraphics object on which all drawing methods are invoked. |
processing.core.PApplet |
parent
The parent PApplet. |
int[] |
pixels
Array of pixels for this Layer. |
processing.core.PGraphics |
recorder
Optional recorder PGraphics for this Layer. |
Constructor Summary | |
---|---|
Layer(processing.core.PApplet parent)
Create a Layer object in the specified PApplet using default renderer JAVA2D. |
|
Layer(processing.core.PApplet parent,
java.lang.String renderer)
Create a Layer object in the specified PApplet using the specified renderer. |
Method Summary | |
---|---|
float |
alpha(int what)
Pass-through method to underlying PGraphics object. |
void |
ambient(float gray)
Pass-through method to underlying PGraphics object. |
void |
ambient(float x,
float y,
float z)
Pass-through method to underlying PGraphics object. |
void |
ambient(int rgb)
Pass-through method to underlying PGraphics object. |
void |
ambientLight(float red,
float green,
float blue)
Pass-through method to underlying PGraphics object. |
void |
ambientLight(float red,
float green,
float blue,
float x,
float y,
float z)
Pass-through method to underlying PGraphics object. |
void |
applyMatrix(float n00,
float n01,
float n02,
float n10,
float n11,
float n12)
Pass-through method to underlying PGraphics object. |
void |
applyMatrix(float n00,
float n01,
float n02,
float n03,
float n10,
float n11,
float n12,
float n13,
float n20,
float n21,
float n22,
float n23,
float n30,
float n31,
float n32,
float n33)
Pass-through method to underlying PGraphics object. |
void |
arc(float a,
float b,
float c,
float d,
float start,
float stop)
Pass-through method to underlying PGraphics object. |
void |
background(float gray)
Pass-through method to underlying PGraphics object. |
void |
background(float gray,
float alpha)
Pass-through method to underlying PGraphics object. |
void |
background(float x,
float y,
float z)
Pass-through method to underlying PGraphics object. |
void |
background(float x,
float y,
float z,
float a)
Pass-through method to underlying PGraphics object. |
void |
background(int rgb)
Pass-through method to underlying PGraphics object. |
void |
background(int rgb,
float alpha)
Pass-through method to underlying PGraphics object. |
void |
background(processing.core.PImage image)
Pass-through method to underlying PGraphics object. |
void |
beginCamera()
Pass-through method to underlying PGraphics object. |
void |
beginRaw(processing.core.PGraphics rawGraphics)
Pass-through method to underlying PGraphics object. |
void |
beginRecord(processing.core.PGraphics recorder)
|
void |
beginShape()
Pass-through method to underlying PGraphics object. |
void |
beginShape(int kind)
Pass-through method to underlying PGraphics object. |
void |
bezier(float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
float x4,
float y4)
Pass-through method to underlying PGraphics object. |
void |
bezier(float x1,
float y1,
float z1,
float x2,
float y2,
float z2,
float x3,
float y3,
float z3,
float x4,
float y4,
float z4)
Pass-through method to underlying PGraphics object. |
void |
bezierDetail(int detail)
Pass-through method to underlying PGraphics object. |
float |
bezierPoint(float a,
float b,
float c,
float d,
float t)
Pass-through method to underlying PGraphics object. |
float |
bezierTangent(float a,
float b,
float c,
float d,
float t)
Pass-through method to underlying PGraphics object. |
void |
bezierVertex(float x2,
float y2,
float x3,
float y3,
float x4,
float y4)
Pass-through method to underlying PGraphics object. |
void |
bezierVertex(float x2,
float y2,
float z2,
float x3,
float y3,
float z3,
float x4,
float y4,
float z4)
Pass-through method to underlying PGraphics object. |
void |
blend(int sx1,
int sy1,
int sx2,
int sy2,
int dx1,
int dy1,
int dx2,
int dy2,
int mode)
Pass-through method to underlying PGraphics object. |
void |
blend(processing.core.PImage src,
int sx1,
int sy1,
int sx2,
int sy2,
int dx1,
int dy1,
int dx2,
int dy2,
int mode)
Pass-through method to underlying PGraphics object. |
static int |
blendColor(int c1,
int c2,
int mode)
Pass-through method to underlying PGraphics object. |
float |
blue(int what)
Pass-through method to underlying PGraphics object. |
void |
box(float size)
Pass-through method to underlying PGraphics object. |
void |
box(float w,
float h,
float d)
Pass-through method to underlying PGraphics object. |
void |
breakShape()
Pass-through method to underlying PGraphics object. |
float |
brightness(int what)
Pass-through method to underlying PGraphics object. |
void |
camera()
Pass-through method to underlying PGraphics object. |
void |
camera(float eyeX,
float eyeY,
float eyeZ,
float centerX,
float centerY,
float centerZ,
float upX,
float upY,
float upZ)
Pass-through method to underlying PGraphics object. |
void |
colorMode(int mode)
Pass-through method to underlying PGraphics object. |
void |
colorMode(int mode,
float max)
Pass-through method to underlying PGraphics object. |
void |
colorMode(int mode,
float maxX,
float maxY,
float maxZ)
Pass-through method to underlying PGraphics object. |
void |
colorMode(int mode,
float maxX,
float maxY,
float maxZ,
float maxA)
Pass-through method to underlying PGraphics object. |
void |
copy(int sx1,
int sy1,
int sx2,
int sy2,
int dx1,
int dy1,
int dx2,
int dy2)
Pass-through method to underlying PGraphics object. |
void |
copy(processing.core.PImage src,
int sx1,
int sy1,
int sx2,
int sy2,
int dx1,
int dy1,
int dx2,
int dy2)
Pass-through method to underlying PGraphics object. |
void |
curve(float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
float x4,
float y4)
Pass-through method to underlying PGraphics object. |
void |
curve(float x1,
float y1,
float z1,
float x2,
float y2,
float z2,
float x3,
float y3,
float z3,
float x4,
float y4,
float z4)
Pass-through method to underlying PGraphics object. |
void |
curveDetail(int detail)
Pass-through method to underlying PGraphics object. |
float |
curvePoint(float a,
float b,
float c,
float d,
float t)
Pass-through method to underlying PGraphics object. |
float |
curveTangent(float a,
float b,
float c,
float d,
float t)
Pass-through method to underlying PGraphics object. |
void |
curveTightness(float tightness)
Pass-through method to underlying PGraphics object. |
void |
curveVertex(float x,
float y)
Pass-through method to underlying PGraphics object. |
void |
curveVertex(float x,
float y,
float z)
Pass-through method to underlying PGraphics object. |
void |
directionalLight(float red,
float green,
float blue,
float nx,
float ny,
float nz)
Pass-through method to underlying PGraphics object. |
boolean |
displayable()
Pass-through method to underlying PGraphics object. |
abstract void |
draw()
Abstract method implemented by Layer subclasses to draw on the layer. |
void |
ellipse(float a,
float b,
float c,
float d)
Pass-through method to underlying PGraphics object. |
void |
ellipseMode(int mode)
Pass-through method to underlying PGraphics object. |
void |
emissive(float gray)
Pass-through method to underlying PGraphics object. |
void |
emissive(float x,
float y,
float z)
Pass-through method to underlying PGraphics object. |
void |
emissive(int rgb)
Pass-through method to underlying PGraphics object. |
void |
endCamera()
Pass-through method to underlying PGraphics object. |
void |
endRaw()
Pass-through method to underlying PGraphics object. |
void |
endRecord()
|
void |
endShape()
Pass-through method to underlying PGraphics object. |
void |
endShape(int mode)
Pass-through method to underlying PGraphics object. |
void |
fill(float gray)
Pass-through method to underlying PGraphics object. |
void |
fill(float gray,
float alpha)
Pass-through method to underlying PGraphics object. |
void |
fill(float x,
float y,
float z)
Pass-through method to underlying PGraphics object. |
void |
fill(float x,
float y,
float z,
float a)
Pass-through method to underlying PGraphics object. |
void |
fill(int rgb)
Pass-through method to underlying PGraphics object. |
void |
fill(int rgb,
float alpha)
Pass-through method to underlying PGraphics object. |
void |
filter(int kind)
Pass-through method to underlying PGraphics object. |
void |
filter(int kind,
float param)
Pass-through method to underlying PGraphics object. |
void |
frustum(float left,
float right,
float bottom,
float top,
float znear,
float zfar)
Pass-through method to underlying PGraphics object. |
processing.core.PImage |
get()
Pass-through method to underlying PGraphics object. |
int |
get(int x,
int y)
Pass-through method to underlying PGraphics object. |
processing.core.PImage |
get(int x,
int y,
int w,
int h)
Pass-through method to underlying PGraphics object. |
AppletLayers |
getContainer()
Get the containing AppletLayers object. |
processing.core.PApplet |
getParent()
Get the parent PApplet. |
float |
green(int what)
Pass-through method to underlying PGraphics object. |
void |
hint(int which)
Pass-through method to underlying PGraphics object. |
float |
hue(int what)
Pass-through method to underlying PGraphics object. |
void |
image(processing.core.PImage image,
float x,
float y)
Pass-through method to underlying PGraphics object. |
void |
image(processing.core.PImage image,
float x,
float y,
float c,
float d)
Pass-through method to underlying PGraphics object. |
void |
image(processing.core.PImage image,
float a,
float b,
float c,
float d,
int u1,
int v1,
int u2,
int v2)
Pass-through method to underlying PGraphics object. |
void |
imageMode(int mode)
Pass-through method to underlying PGraphics object. |
boolean |
isVisible()
Get the current visibility state of the layer. |
void |
keyPressed()
Override this method to process keyPressed events. |
void |
keyReleased()
Override this method to process keyReleased events. |
void |
keyTyped()
Override this method to process keyTyped events. |
int |
lerpColor(int c1,
int c2,
float amt)
Pass-through method to underlying PGraphics object. |
static int |
lerpColor(int c1,
int c2,
float amt,
int mode)
Pass-through method to underlying PGraphics object. |
void |
lightFalloff(float constant,
float linear,
float quadratic)
Pass-through method to underlying PGraphics object. |
void |
lights()
Pass-through method to underlying PGraphics object. |
void |
lightSpecular(float x,
float y,
float z)
Pass-through method to underlying PGraphics object. |
void |
line(float x1,
float y1,
float x2,
float y2)
Pass-through method to underlying PGraphics object. |
void |
line(float x1,
float y1,
float z1,
float x2,
float y2,
float z2)
Pass-through method to underlying PGraphics object. |
void |
loadPixels()
Pass-through method to underlying PGraphics object. |
void |
mask(int[] alpha)
Pass-through method to underlying PGraphics object. |
void |
mask(processing.core.PImage alpha)
Pass-through method to underlying PGraphics object. |
float |
modelX(float x,
float y,
float z)
Pass-through method to underlying PGraphics object. |
float |
modelY(float x,
float y,
float z)
Pass-through method to underlying PGraphics object. |
float |
modelZ(float x,
float y,
float z)
Pass-through method to underlying PGraphics object. |
void |
mouseClicked()
Override this method to process mouseClicked events. |
void |
mouseDragged()
Override this method to process mouseDragged events. |
void |
mouseMoved()
Override this method to process mouseMoved events. |
void |
mousePressed()
Override this method to process mousePressed events. |
void |
mouseReleased()
Override this method to process mouseReleased events. |
void |
noFill()
Pass-through method to underlying PGraphics object. |
void |
noLights()
Pass-through method to underlying PGraphics object. |
void |
normal(float nx,
float ny,
float nz)
Pass-through method to underlying PGraphics object. |
void |
noSmooth()
Pass-through method to underlying PGraphics object. |
void |
noStroke()
Pass-through method to underlying PGraphics object. |
void |
noTint()
Pass-through method to underlying PGraphics object. |
void |
ortho()
Pass-through method to underlying PGraphics object. |
void |
ortho(float left,
float right,
float bottom,
float top,
float near,
float far)
Pass-through method to underlying PGraphics object. |
void |
perspective()
Pass-through method to underlying PGraphics object. |
void |
perspective(float fovy,
float aspect,
float zNear,
float zFar)
Pass-through method to underlying PGraphics object. |
void |
point(float x,
float y)
Pass-through method to underlying PGraphics object. |
void |
point(float x,
float y,
float z)
Pass-through method to underlying PGraphics object. |
void |
pointLight(float red,
float green,
float blue,
float x,
float y,
float z)
Pass-through method to underlying PGraphics object. |
void |
popMatrix()
Pass-through method to underlying PGraphics object. |
void |
printCamera()
Pass-through method to underlying PGraphics object. |
void |
printMatrix()
Pass-through method to underlying PGraphics object. |
void |
printProjection()
Pass-through method to underlying PGraphics object. |
void |
pushMatrix()
Pass-through method to underlying PGraphics object. |
void |
quad(float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
float x4,
float y4)
Pass-through method to underlying PGraphics object. |
void |
rect(float x1,
float y1,
float x2,
float y2)
Pass-through method to underlying PGraphics object. |
void |
rectMode(int mode)
Pass-through method to underlying PGraphics object. |
float |
red(int what)
Pass-through method to underlying PGraphics object. |
void |
resetMatrix()
Pass-through method to underlying PGraphics object. |
void |
rotate(float angle)
Pass-through method to underlying PGraphics object. |
void |
rotate(float angle,
float vx,
float vy,
float vz)
Pass-through method to underlying PGraphics object. |
void |
rotateX(float angle)
Pass-through method to underlying PGraphics object. |
void |
rotateY(float angle)
Pass-through method to underlying PGraphics object. |
void |
rotateZ(float angle)
Pass-through method to underlying PGraphics object. |
float |
saturation(int what)
Pass-through method to underlying PGraphics object. |
void |
scale(float s)
Pass-through method to underlying PGraphics object. |
void |
scale(float sx,
float sy)
Pass-through method to underlying PGraphics object. |
void |
scale(float x,
float y,
float z)
Pass-through method to underlying PGraphics object. |
float |
screenX(float x,
float y)
Pass-through method to underlying PGraphics object. |
float |
screenX(float x,
float y,
float z)
Pass-through method to underlying PGraphics object. |
float |
screenY(float x,
float y)
Pass-through method to underlying PGraphics object. |
float |
screenY(float x,
float y,
float z)
Pass-through method to underlying PGraphics object. |
float |
screenZ(float x,
float y,
float z)
Pass-through method to underlying PGraphics object. |
void |
set(int x,
int y,
int c)
Pass-through method to underlying PGraphics object. |
void |
set(int dx,
int dy,
processing.core.PImage src)
Pass-through method to underlying PGraphics object. |
void |
setup()
Override this method to perform setup operations for this Layer. |
void |
setVisible(boolean visible)
Set the current visibility state of the layer. |
void |
shininess(float shine)
Pass-through method to underlying PGraphics object. |
void |
size(int w,
int h)
Method provided only to throw RuntimeException since calling size(w, h) in a layer is illegal. |
void |
size(int w,
int h,
java.lang.String renderer)
Method provided only to throw RuntimeException since calling size(w, h) in a layer is illegal. |
void |
size(int iwidth,
int iheight,
java.lang.String irenderer,
java.lang.String ipath)
Method provided only to throw RuntimeException since calling size(w, h) in a layer is illegal. |
void |
smooth()
Pass-through method to underlying PGraphics object. |
void |
specular(float gray)
Pass-through method to underlying PGraphics object. |
void |
specular(float x,
float y,
float z)
Pass-through method to underlying PGraphics object. |
void |
specular(int rgb)
Pass-through method to underlying PGraphics object. |
void |
sphere(float r)
Pass-through method to underlying PGraphics object. |
void |
sphereDetail(int res)
Pass-through method to underlying PGraphics object. |
void |
spotLight(float red,
float green,
float blue,
float x,
float y,
float z,
float nx,
float ny,
float nz,
float angle,
float concentration)
Pass-through method to underlying PGraphics object. |
void |
stroke(float gray)
Pass-through method to underlying PGraphics object. |
void |
stroke(float gray,
float alpha)
Pass-through method to underlying PGraphics object. |
void |
stroke(float x,
float y,
float z)
Pass-through method to underlying PGraphics object. |
void |
stroke(float x,
float y,
float z,
float a)
Pass-through method to underlying PGraphics object. |
void |
stroke(int rgb)
Pass-through method to underlying PGraphics object. |
void |
stroke(int rgb,
float alpha)
Pass-through method to underlying PGraphics object. |
void |
strokeCap(int cap)
Pass-through method to underlying PGraphics object. |
void |
strokeJoin(int join)
Pass-through method to underlying PGraphics object. |
void |
strokeWeight(float weight)
Pass-through method to underlying PGraphics object. |
void |
text(char c)
Pass-through method to underlying PGraphics object. |
void |
text(char c,
float x,
float y)
Pass-through method to underlying PGraphics object. |
void |
text(char c,
float x,
float y,
float z)
Pass-through method to underlying PGraphics object. |
void |
text(float num,
float x,
float y)
Pass-through method to underlying PGraphics object. |
void |
text(float num,
float x,
float y,
float z)
Pass-through method to underlying PGraphics object. |
void |
text(int num,
float x,
float y)
Pass-through method to underlying PGraphics object. |
void |
text(int num,
float x,
float y,
float z)
Pass-through method to underlying PGraphics object. |
void |
text(java.lang.String str)
Pass-through method to underlying PGraphics object. |
void |
text(java.lang.String str,
float x,
float y)
Pass-through method to underlying PGraphics object. |
void |
text(java.lang.String str,
float x,
float y,
float z)
Pass-through method to underlying PGraphics object. |
void |
text(java.lang.String str,
float x1,
float y1,
float x2,
float y2)
Pass-through method to underlying PGraphics object. |
void |
text(java.lang.String s,
float x1,
float y1,
float x2,
float y2,
float z)
Pass-through method to underlying PGraphics object. |
void |
textAlign(int align)
Pass-through method to underlying PGraphics object. |
void |
textAlign(int alignX,
int alignY)
Pass-through method to underlying PGraphics object. |
float |
textAscent()
Pass-through method to underlying PGraphics object. |
float |
textDescent()
Pass-through method to underlying PGraphics object. |
void |
textFont(processing.core.PFont which)
Pass-through method to underlying PGraphics object. |
void |
textFont(processing.core.PFont which,
float size)
Pass-through method to underlying PGraphics object. |
void |
textLeading(float leading)
Pass-through method to underlying PGraphics object. |
void |
textMode(int mode)
Pass-through method to underlying PGraphics object. |
void |
textSize(float size)
Pass-through method to underlying PGraphics object. |
void |
texture(processing.core.PImage image)
Pass-through method to underlying PGraphics object. |
void |
textureMode(int mode)
Pass-through method to underlying PGraphics object. |
float |
textWidth(char c)
Pass-through method to underlying PGraphics object. |
float |
textWidth(java.lang.String str)
Pass-through method to underlying PGraphics object. |
void |
tint(float gray)
Pass-through method to underlying PGraphics object. |
void |
tint(float gray,
float alpha)
Pass-through method to underlying PGraphics object. |
void |
tint(float x,
float y,
float z)
Pass-through method to underlying PGraphics object. |
void |
tint(float x,
float y,
float z,
float a)
Pass-through method to underlying PGraphics object. |
void |
tint(int rgb)
Pass-through method to underlying PGraphics object. |
void |
tint(int rgb,
float alpha)
Pass-through method to underlying PGraphics object. |
void |
translate(float tx,
float ty)
Pass-through method to underlying PGraphics object. |
void |
translate(float tx,
float ty,
float tz)
Pass-through method to underlying PGraphics object. |
void |
triangle(float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
Pass-through method to underlying PGraphics object. |
void |
updatePixels()
Pass-through method to underlying PGraphics object. |
void |
updatePixels(int x1,
int y1,
int x2,
int y2)
Pass-through method to underlying PGraphics object. |
void |
vertex(float x,
float y)
Pass-through method to underlying PGraphics object. |
void |
vertex(float x,
float y,
float z)
Pass-through method to underlying PGraphics object. |
void |
vertex(float x,
float y,
float u,
float v)
Pass-through method to underlying PGraphics object. |
void |
vertex(float x,
float y,
float z,
float u,
float v)
Pass-through method to underlying PGraphics object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public processing.core.PGraphics g
public processing.core.PApplet parent
public processing.core.PGraphics recorder
public int[] pixels
Constructor Detail |
---|
public Layer(processing.core.PApplet parent)
parent
- the PApplet to which this Layer belongspublic Layer(processing.core.PApplet parent, java.lang.String renderer)
parent
- the PApplet to which this Layer belongsrenderer
- the Processing renderer (JAVA2D, P2D, P3D) for this layer.Method Detail |
---|
public abstract void draw()
public void setup()
public void size(int w, int h)
w
- h
-
java.lang.RuntimeException
- always.public void size(int w, int h, java.lang.String renderer)
w
- h
- renderer
-
java.lang.RuntimeException
- always.public void size(int iwidth, int iheight, java.lang.String irenderer, java.lang.String ipath)
iwidth
- iheight
- irenderer
- ipath
-
java.lang.RuntimeException
- always.public processing.core.PApplet getParent()
public AppletLayers getContainer()
public boolean isVisible()
public void setVisible(boolean visible)
visible
- public void beginRecord(processing.core.PGraphics recorder)
public void endRecord()
public void loadPixels()
public void imageMode(int mode)
public void smooth()
public void noSmooth()
public void updatePixels()
public void updatePixels(int x1, int y1, int x2, int y2)
x1
- y1
- x2
- y2
- public int get(int x, int y)
x
- y
-
public processing.core.PImage get(int x, int y, int w, int h)
x
- y
- w
- h
-
public processing.core.PImage get()
public void set(int x, int y, int c)
x
- y
- c
- public void set(int dx, int dy, processing.core.PImage src)
dx
- dy
- src
- public void mask(int[] alpha)
alpha
- public void mask(processing.core.PImage alpha)
alpha
- public void filter(int kind)
kind
- public void filter(int kind, float param)
kind
- param
- public void copy(int sx1, int sy1, int sx2, int sy2, int dx1, int dy1, int dx2, int dy2)
sx1
- sy1
- sx2
- sy2
- dx1
- dy1
- dx2
- dy2
- public void copy(processing.core.PImage src, int sx1, int sy1, int sx2, int sy2, int dx1, int dy1, int dx2, int dy2)
src
- sx1
- sy1
- sx2
- sy2
- dx1
- dy1
- dx2
- dy2
- public static int blendColor(int c1, int c2, int mode)
c1
- c2
- mode
-
public void blend(int sx1, int sy1, int sx2, int sy2, int dx1, int dy1, int dx2, int dy2, int mode)
sx1
- sy1
- sx2
- sy2
- dx1
- dy1
- dx2
- dy2
- mode
- public void blend(processing.core.PImage src, int sx1, int sy1, int sx2, int sy2, int dx1, int dy1, int dx2, int dy2, int mode)
src
- sx1
- sy1
- sx2
- sy2
- dx1
- dy1
- dx2
- dy2
- mode
- public void hint(int which)
which
- public void beginShape()
public void beginShape(int kind)
kind
- public void normal(float nx, float ny, float nz)
nx
- ny
- nz
- public void textureMode(int mode)
mode
- public void texture(processing.core.PImage image)
image
- public void vertex(float x, float y)
x
- y
- public void vertex(float x, float y, float z)
x
- y
- z
- public void vertex(float x, float y, float u, float v)
x
- y
- u
- v
- public void vertex(float x, float y, float z, float u, float v)
x
- y
- z
- u
- v
- public void bezierVertex(float x2, float y2, float x3, float y3, float x4, float y4)
x2
- y2
- x3
- y3
- x4
- y4
- public void bezierVertex(float x2, float y2, float z2, float x3, float y3, float z3, float x4, float y4, float z4)
x2
- y2
- z2
- x3
- y3
- z3
- x4
- y4
- z4
- public void curveVertex(float x, float y)
x
- y
- public void curveVertex(float x, float y, float z)
x
- y
- z
- public void breakShape()
public final void endShape()
public void endShape(int mode)
mode
- public void point(float x, float y)
x
- y
- public void point(float x, float y, float z)
x
- y
- z
- public void line(float x1, float y1, float x2, float y2)
x1
- y1
- x2
- y2
- public void line(float x1, float y1, float z1, float x2, float y2, float z2)
x1
- y1
- z1
- x2
- y2
- z2
- public void triangle(float x1, float y1, float x2, float y2, float x3, float y3)
x1
- y1
- x2
- y2
- x3
- y3
- public void quad(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)
x1
- y1
- x2
- y2
- x3
- y3
- x4
- y4
- public void rectMode(int mode)
mode
- public void rect(float x1, float y1, float x2, float y2)
x1
- y1
- x2
- y2
- public void ellipseMode(int mode)
mode
- public void ellipse(float a, float b, float c, float d)
a
- b
- c
- d
- public void arc(float a, float b, float c, float d, float start, float stop)
a
- b
- c
- d
- start
- stop
- public void box(float size)
size
- public void box(float w, float h, float d)
w
- h
- d
- public void sphereDetail(int res)
res
- public void sphere(float r)
r
- public float bezierPoint(float a, float b, float c, float d, float t)
a
- b
- c
- d
- t
-
public float bezierTangent(float a, float b, float c, float d, float t)
a
- b
- c
- d
- t
-
public void bezierDetail(int detail)
detail
- public void bezier(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)
x1
- y1
- x2
- y2
- x3
- y3
- x4
- y4
- public void bezier(float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, float x4, float y4, float z4)
x1
- y1
- z1
- x2
- y2
- z2
- x3
- y3
- z3
- x4
- y4
- z4
- public float curvePoint(float a, float b, float c, float d, float t)
a
- b
- c
- d
- t
-
public float curveTangent(float a, float b, float c, float d, float t)
a
- b
- c
- d
- t
-
public void curveDetail(int detail)
detail
- public void curveTightness(float tightness)
tightness
- public void curve(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)
x1
- y1
- x2
- y2
- x3
- y3
- x4
- y4
- public void curve(float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, float x4, float y4, float z4)
x1
- y1
- z1
- x2
- y2
- z2
- x3
- y3
- z3
- x4
- y4
- z4
- public void image(processing.core.PImage image, float x, float y)
image
- x
- y
- public void image(processing.core.PImage image, float x, float y, float c, float d)
image
- x
- y
- c
- d
- public void image(processing.core.PImage image, float a, float b, float c, float d, int u1, int v1, int u2, int v2)
image
- a
- b
- c
- d
- u1
- v1
- u2
- v2
- public void textAlign(int align)
align
- public void textAlign(int alignX, int alignY)
alignX
- alignY
- public float textAscent()
public float textDescent()
public void textFont(processing.core.PFont which)
which
- public void textFont(processing.core.PFont which, float size)
which
- size
- public void textLeading(float leading)
leading
- public void textMode(int mode)
mode
- public void textSize(float size)
size
- public float textWidth(char c)
c
-
public float textWidth(java.lang.String str)
str
-
public void text(char c)
c
- public void text(char c, float x, float y)
c
- x
- y
- public void text(char c, float x, float y, float z)
c
- x
- y
- z
- public void text(java.lang.String str)
str
- public void text(java.lang.String str, float x, float y)
str
- x
- y
- public void text(java.lang.String str, float x, float y, float z)
str
- x
- y
- z
- public void text(java.lang.String str, float x1, float y1, float x2, float y2)
str
- x1
- y1
- x2
- y2
- public void text(java.lang.String s, float x1, float y1, float x2, float y2, float z)
s
- x1
- y1
- x2
- y2
- z
- public void text(int num, float x, float y)
num
- x
- y
- public void text(int num, float x, float y, float z)
num
- x
- y
- z
- public void text(float num, float x, float y)
num
- x
- y
- public void text(float num, float x, float y, float z)
num
- x
- y
- z
- public void translate(float tx, float ty)
tx
- ty
- public void translate(float tx, float ty, float tz)
tx
- ty
- tz
- public void rotate(float angle)
angle
- public void rotateX(float angle)
angle
- public void rotateY(float angle)
angle
- public void rotateZ(float angle)
angle
- public void rotate(float angle, float vx, float vy, float vz)
angle
- vx
- vy
- vz
- public void scale(float s)
s
- public void scale(float sx, float sy)
sx
- sy
- public void scale(float x, float y, float z)
x
- y
- z
- public void pushMatrix()
public void popMatrix()
public void resetMatrix()
public void applyMatrix(float n00, float n01, float n02, float n10, float n11, float n12)
n00
- n01
- n02
- n10
- n11
- n12
- public void applyMatrix(float n00, float n01, float n02, float n03, float n10, float n11, float n12, float n13, float n20, float n21, float n22, float n23, float n30, float n31, float n32, float n33)
n00
- n01
- n02
- n03
- n10
- n11
- n12
- n13
- n20
- n21
- n22
- n23
- n30
- n31
- n32
- n33
- public void printMatrix()
public void beginCamera()
public void endCamera()
public void camera()
public void camera(float eyeX, float eyeY, float eyeZ, float centerX, float centerY, float centerZ, float upX, float upY, float upZ)
eyeX
- eyeY
- eyeZ
- centerX
- centerY
- centerZ
- upX
- upY
- upZ
- public void printCamera()
public void ortho()
public void ortho(float left, float right, float bottom, float top, float near, float far)
left
- right
- bottom
- top
- near
- far
- public void perspective()
public void perspective(float fovy, float aspect, float zNear, float zFar)
fovy
- aspect
- zNear
- zFar
- public void frustum(float left, float right, float bottom, float top, float znear, float zfar)
left
- right
- bottom
- top
- znear
- zfar
- public void printProjection()
public float screenX(float x, float y)
x
- y
-
public float screenY(float x, float y)
x
- y
-
public float screenX(float x, float y, float z)
x
- y
- z
-
public float screenY(float x, float y, float z)
x
- y
- z
-
public float screenZ(float x, float y, float z)
x
- y
- z
-
public float modelX(float x, float y, float z)
x
- y
- z
-
public float modelY(float x, float y, float z)
x
- y
- z
-
public float modelZ(float x, float y, float z)
x
- y
- z
-
public void colorMode(int mode)
mode
- public void colorMode(int mode, float max)
mode
- max
- public void colorMode(int mode, float maxX, float maxY, float maxZ)
mode
- maxX
- maxY
- maxZ
- public void colorMode(int mode, float maxX, float maxY, float maxZ, float maxA)
mode
- maxX
- maxY
- maxZ
- maxA
- public void strokeWeight(float weight)
weight
- public void strokeJoin(int join)
join
- public void strokeCap(int cap)
cap
- public void noStroke()
public void stroke(int rgb)
rgb
- public void stroke(int rgb, float alpha)
rgb
- alpha
- public void stroke(float gray)
gray
- public void stroke(float gray, float alpha)
gray
- alpha
- public void stroke(float x, float y, float z)
x
- y
- z
- public void stroke(float x, float y, float z, float a)
x
- y
- z
- a
- public void noTint()
public void tint(int rgb)
rgb
- public void tint(int rgb, float alpha)
rgb
- alpha
- public void tint(float gray)
gray
- public void tint(float gray, float alpha)
gray
- alpha
- public void tint(float x, float y, float z)
x
- y
- z
- public void tint(float x, float y, float z, float a)
x
- y
- z
- a
- public void noFill()
public void fill(int rgb)
rgb
- public void fill(int rgb, float alpha)
rgb
- alpha
- public void fill(float gray)
gray
- public void fill(float gray, float alpha)
gray
- alpha
- public void fill(float x, float y, float z)
x
- y
- z
- public void fill(float x, float y, float z, float a)
x
- y
- z
- a
- public void ambient(int rgb)
rgb
- public void ambient(float gray)
gray
- public void ambient(float x, float y, float z)
x
- y
- z
- public void specular(int rgb)
rgb
- public void specular(float gray)
gray
- public void specular(float x, float y, float z)
x
- y
- z
- public void shininess(float shine)
shine
- public void emissive(int rgb)
rgb
- public void emissive(float gray)
gray
- public void emissive(float x, float y, float z)
x
- y
- z
- public void lights()
public void noLights()
public void ambientLight(float red, float green, float blue)
red
- green
- blue
- public void ambientLight(float red, float green, float blue, float x, float y, float z)
red
- green
- blue
- x
- y
- z
- public void directionalLight(float red, float green, float blue, float nx, float ny, float nz)
red
- green
- blue
- nx
- ny
- nz
- public void pointLight(float red, float green, float blue, float x, float y, float z)
red
- green
- blue
- x
- y
- z
- public void spotLight(float red, float green, float blue, float x, float y, float z, float nx, float ny, float nz, float angle, float concentration)
red
- green
- blue
- x
- y
- z
- nx
- ny
- nz
- angle
- concentration
- public void lightFalloff(float constant, float linear, float quadratic)
constant
- linear
- quadratic
- public void lightSpecular(float x, float y, float z)
x
- y
- z
- public void background(int rgb)
rgb
- public void background(int rgb, float alpha)
rgb
- alpha
- public void background(float gray)
gray
- public void background(float gray, float alpha)
gray
- alpha
- public void background(float x, float y, float z)
x
- y
- z
- public void background(float x, float y, float z, float a)
x
- y
- z
- a
- public void background(processing.core.PImage image)
image
- public final float alpha(int what)
what
-
public final float red(int what)
what
-
public final float green(int what)
what
-
public final float blue(int what)
what
-
public final float hue(int what)
what
-
public final float saturation(int what)
what
-
public final float brightness(int what)
what
-
public int lerpColor(int c1, int c2, float amt)
c1
- c2
- amt
-
public static int lerpColor(int c1, int c2, float amt, int mode)
c1
- c2
- amt
- mode
-
public void beginRaw(processing.core.PGraphics rawGraphics)
rawGraphics
- public void endRaw()
public boolean displayable()
public void mousePressed()
public void mouseReleased()
public void mouseClicked()
public void mouseDragged()
public void mouseMoved()
public void keyPressed()
public void keyReleased()
public void keyTyped()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |