public class R_Shape extends R_Image implements R_Constants
Modifier and Type | Field and Description |
---|---|
vec3 |
angle |
vec3[] |
final_pts |
vec3 |
pos |
vec3[] |
pts |
vec3 |
size |
int |
summits |
ALPHA, BLANK, BRIGHTNESS, CARTESIAN, CENTER, CHAOS, CLOSE, CORNER, CORNERS, COS, DIAMETER, DRAW, DYNAMIC, EQUATION, EULER, FIT, FLUID, G, GOLD_ANGLE, GOLD_NUMBER, GRAVITY, HUE, MAGNETIC, MAX_FLOAT, MAX_INT, MIN_FLOAT, MIN_INT, MIX, NONE, NOTHING, NULL, OPEN, ORDER, PERLIN, PHI, PI, PIXEL, POLAR, RADIUS, RAND, ROOT2, SATURATION, SCALE, SIN, STAR, STATIC, TAN, TAU, TRIG_0, TRIG_1, TRIG_2, TRIG_3, TRIG_4, TWO_PI
ABRICOT, ACAJOU, AMARANTE, AMBRE, ARGENT, AUBERGINE, AZUR, BIS, BISTRE, BLACK, BLANC, BLEU, BLOND, BLOOD, BLUE, BOUTEILLE, BRIQUE, BRONZE, BROWN, CAERULEUM, CAFE, CANARD, CANELLE, CAPUCINE, CARMIN, CARMINE, CAROTTE, CELESTE, CERISE, CHAMOIS, CHARTREUSE, CHOCOLAT, CIEL, CITROUILLE, COBALT, COFFEE, COLOMBIN, CORAIL, CYAN, EVEQUE, FRANCE, FUSCHIA, GOLD, GRAY, GRAY_MEDIUM, GREEN, GRENAT, GRIS, GRIS_MOYEN, GUEULES, IMPERIAL, JAUNE, LAPIS_LAZULI, LAVANDE, LILAS, LIME, LIN, LUNE, MAGENTA, MANDARINE, MARRON, MAUVE, MIMOSA, MOON, MOUNTBATTEN, NANKIN, NAPLE, NOIR, NOISETTE, NUIT, OCRE, OCRE_JAUNE, OCRE_ROUGE, OLIVE, OR, ORANGE, OUTREMER, PAYNE, PERLE, PERROQUET, PINK, PISTACHE, POURPRE, PRUNE, PURPLE, RED, ROSE, ROUGE, SANG, SAPIN, SAUGE, SEPIA, SHAKUDOU, SILVER, SINOPLE, SMALT, SOURIS, TAUPE, TILLEUL, TURQUOISE, VERMILLON, VERT, VERT_D_EAU, VERT_DE_GRIS, VESSIE, VIOLET, WHITE, YELLOW, ZINZOLIN
Constructor and Description |
---|
R_Shape(processing.core.PApplet pa) |
R_Shape(processing.core.PApplet pa,
int summits) |
R_Shape(processing.core.PApplet pa,
int summits,
processing.core.PGraphics other) |
R_Shape(processing.core.PApplet pa,
processing.core.PGraphics other) |
Modifier and Type | Method and Description |
---|---|
float |
angle_x() |
void |
angle_x(float value)
ANGLE
|
float |
angle_y() |
void |
angle_y(float value) |
float |
angle_z() |
void |
angle_z(float value) |
vec3 |
angle() |
void |
angle(float x,
float y,
float z) |
void |
angle(vec angle) |
void |
beginShape()
beginShape + endShape
|
void |
beginShape(int kind,
processing.core.PGraphics other) |
void |
beginShape(processing.core.PGraphics other)
shape
v 0.2.0
|
void |
bezierVertex(float x2,
float y2,
float x3,
float y3,
float x4,
float y4) |
void |
bezierVertex(float x2,
float y2,
float z2,
float x3,
float y3,
float z3,
float x4,
float y4,
float z4) |
void |
bezierVertex(float x2,
float y2,
float z2,
float x3,
float y3,
float z3,
float x4,
float y4,
float z4,
processing.core.PGraphics other) |
void |
bezierVertex(float x2,
float y2,
float x3,
float y3,
float x4,
float y4,
processing.core.PGraphics other)
BEZIER VERTEX
|
void |
bezierVertex(vec a,
vec b,
vec pos) |
void |
bezierVertex(vec a,
vec b,
vec pos,
processing.core.PGraphics other) |
void |
curveVertex(float x,
float y) |
void |
curveVertex(float x,
float y,
float z) |
void |
curveVertex(float x,
float y,
float z,
processing.core.PGraphics other) |
void |
curveVertex(float x,
float y,
processing.core.PGraphics other) |
void |
curveVertex(vec pos) |
void |
curveVertex(vec pos,
processing.core.PGraphics other) |
void |
endShape() |
void |
endShape(int mode) |
void |
endShape(int mode,
processing.core.PGraphics other) |
void |
endShape(processing.core.PGraphics other) |
vec3 |
get_final_point(int target) |
vec3[] |
get_final_points() |
vec3 |
get_point(int target) |
vec3[] |
get_points() |
int |
get_summits() |
void |
line(float x1,
float y1,
float x2,
float y2) |
void |
line(float x1,
float y1,
float z1,
float x2,
float y2,
float z2) |
void |
line(ivec a,
ivec b) |
void |
line(vec a,
vec b) |
void |
point(float x,
float y) |
void |
point(float x,
float y,
float z) |
void |
point(ivec pos) |
void |
point(vec pos) |
void |
pop() |
vec3 |
pos() |
void |
pos(float p) |
void |
pos(float x,
float y) |
void |
pos(float x,
float y,
float z) |
void |
pos(ivec pos) |
void |
pos(vec pos) |
void |
push()
push + pop
|
void |
quadraticVertex(float cx,
float cy,
float x3,
float y3) |
void |
quadraticVertex(float cx,
float cy,
float cz,
float x3,
float y3,
float z3) |
void |
quadraticVertex(float cx,
float cy,
float cz,
float x3,
float y3,
float z3,
processing.core.PGraphics other) |
void |
quadraticVertex(float cx,
float cy,
float x3,
float y3,
processing.core.PGraphics other)
QUADRATIC VERTEX
|
void |
quadraticVertex(vec a,
vec b) |
void |
quadraticVertex(vec a,
vec b,
processing.core.PGraphics other) |
void |
rectMode(int mode) |
boolean |
reset_is() |
void |
reset_is(boolean is) |
void |
rotate(float angle) |
void |
rotateX(float angle) |
void |
rotateY(float angle) |
void |
rotateZ(float angle) |
vec3 |
size() |
void |
size(float s) |
void |
size(float w,
float h) |
void |
size(float w,
float h,
float d) |
void |
size(ivec size) |
void |
size(vec size) |
void |
square(float x,
float y,
float extent) |
void |
translate(float x,
float y) |
void |
translate(float x,
float y,
float z) |
void |
translate(vec v) |
void |
triangle(float x1,
float y1,
float x2,
float y2,
float x3,
float y3) |
void |
triangle(ivec a,
ivec b,
ivec c) |
void |
triangle(vec a,
vec b,
vec c) |
boolean |
use_pos_is() |
void |
use_pos_is(boolean is) |
void |
vertex(float[] v) |
void |
vertex(float[] v,
processing.core.PGraphics other) |
void |
vertex(float x,
float y) |
void |
vertex(float x,
float y,
float z) |
void |
vertex(float x,
float y,
float u,
float v) |
void |
vertex(float x,
float y,
float z,
float u,
float v) |
void |
vertex(float x,
float y,
float z,
float u,
float v,
processing.core.PGraphics other) |
void |
vertex(float x,
float y,
float u,
float v,
processing.core.PGraphics other) |
void |
vertex(float x,
float y,
float z,
processing.core.PGraphics other) |
void |
vertex(float x,
float y,
processing.core.PGraphics other)
vertex
v 0.2.0
|
void |
vertex(vec v) |
void |
vertex(vec2 v,
vec2 uv) |
void |
vertex(vec2 coord,
vec2 uv,
processing.core.PGraphics other) |
void |
vertex(vec3 v,
vec2 uv) |
void |
vertex(vec3 coord,
vec2 uv,
processing.core.PGraphics other) |
void |
vertex(vec coord,
processing.core.PGraphics other) |
get_renderer, get_renderer, pass_graphic, renderer_P3D, set, set, set, set, set
random_next_gaussian, random_next_gaussian, random_next_gaussian, random_next_gaussian, version
public vec3 pos
public vec3 size
public vec3 angle
public int summits
public vec3[] pts
public vec3[] final_pts
public R_Shape(processing.core.PApplet pa)
pa
- public R_Shape(processing.core.PApplet pa, processing.core.PGraphics other)
pa
- other
- public R_Shape(processing.core.PApplet pa, int summits)
pa
- summits
- public R_Shape(processing.core.PApplet pa, int summits, processing.core.PGraphics other)
pa
- summits
- other
- public void use_pos_is(boolean is)
is
- public void reset_is(boolean is)
is
- public void pos(float p)
p
- public void pos(float x, float y)
x
- y
- public void pos(float x, float y, float z)
x
- y
- z
- public void pos(ivec pos)
pos
- public void pos(vec pos)
pos
- public void size(float s)
s
- public void size(float w, float h)
w
- h
- public void size(float w, float h, float d)
w
- h
- d
- public void size(ivec size)
size
- public void size(vec size)
size
- public void angle_x(float value)
public void angle_y(float value)
public void angle_z(float value)
public void angle(float x, float y, float z)
x
- y
- z
- public void angle(vec angle)
pos
- public vec3 angle()
public float angle_x()
public float angle_y()
public float angle_z()
public boolean use_pos_is()
public boolean reset_is()
public vec3 pos()
public vec3 size()
public int get_summits()
public vec3[] get_points()
public vec3 get_point(int target)
target
- public vec3[] get_final_points()
public vec3 get_final_point(int target)
target
- public void beginShape(processing.core.PGraphics other)
public void beginShape(int kind, processing.core.PGraphics other)
public void endShape(processing.core.PGraphics other)
public void endShape(int mode, processing.core.PGraphics other)
public void vertex(float x, float y, processing.core.PGraphics other)
public void vertex(float x, float y, float z, processing.core.PGraphics other)
public void vertex(float[] v, processing.core.PGraphics other)
public void vertex(float x, float y, float u, float v, processing.core.PGraphics other)
public void vertex(float x, float y, float z, float u, float v, processing.core.PGraphics other)
public void vertex(vec coord, processing.core.PGraphics other)
public void vertex(vec v)
v
- public void bezierVertex(float x2, float y2, float x3, float y3, float x4, float y4, processing.core.PGraphics other)
public void bezierVertex(float x2, float y2, float z2, float x3, float y3, float z3, float x4, float y4, float z4, processing.core.PGraphics other)
public void quadraticVertex(float cx, float cy, float x3, float y3, processing.core.PGraphics other)
public void quadraticVertex(float cx, float cy, float cz, float x3, float y3, float z3, processing.core.PGraphics other)
public void curveVertex(float x, float y, float z, processing.core.PGraphics other)
x
- y
- z
- other
- public void curveVertex(float x, float y, processing.core.PGraphics other)
public void curveVertex(vec pos, processing.core.PGraphics other)
public void curveVertex(vec pos)
public void point(vec pos)
pos
- x,y,z-coordinate of the pointpublic void point(ivec pos)
pos
- x,y,z-coordinate of the pointpublic void push()
public void pop()
public void translate(float x, float y, float z)
x
- y
- z
- public void translate(float x, float y)
x
- y
- public void translate(vec v)
v
- 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 beginShape()
public void endShape()
public void endShape(int mode)
public void vertex(float x, float y)
x
- x-coordinate of the vertexy
- y-coordinate of the vertexpublic void vertex(float x, float y, float z)
x
- x-coordinate of the vertexy
- y-coordinate of the vertexz
- z-coordinate of the vertexpublic void vertex(float[] v)
v
- 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
- the x-coordinate of the 1st control pointy2
- the y-coordinate of the 1st control pointx3
- the x-coordinate of the 2nd control pointy3
- the y-coordinate of the 2nd control pointx4
- the x-coordinate of the anchor pointy4
- the y-coordinate of the anchor pointpublic void bezierVertex(float x2, float y2, float z2, float x3, float y3, float z3, float x4, float y4, float z4)
x2
- the x-coordinate of the 1st control pointy2
- the y-coordinate of the 1st control pointz2
- the z-coordinate of the 1st control pointx3
- the x-coordinate of the 2nd control pointy3
- the y-coordinate of the 2nd control pointz3
- the z-coordinate of the 2nd control pointx4
- the x-coordinate of the anchor pointy4
- the y-coordinate of the anchor pointz4
- the z-coordinate of the anchor pointpublic void quadraticVertex(float cx, float cy, float x3, float y3)
cx
- the x-coordinate of the control pointcy
- the y-coordinate of the control pointx3
- the x-coordinate of the anchor pointy3
- the y-coordinate of the anchor pointpublic void quadraticVertex(float cx, float cy, float cz, float x3, float y3, float z3)
cx
- the x-coordinate of the control pointcy
- the y-coordinate of the control pointcz
- the z-coordinate of the control pointx3
- the x-coordinate of the anchor pointy3
- the y-coordinate of the anchor pointz3
- the z-coordinate of the anchor pointpublic void curveVertex(float x, float y)
x
- the x-coordinate of the vertexy
- the y-coordinate of the vertexpublic void curveVertex(float x, float y, float z)
x
- the x-coordinate of the vertexy
- the y-coordinate of the vertexz
- the z-coordinate of the vertexpublic void point(float x, float y)
x
- x-coordinate of the pointy
- y-coordinate of the pointpublic void point(float x, float y, float z)
x
- x-coordinate of the pointy
- y-coordinate of the pointz
- z-coordinate of the pointpublic void line(float x1, float y1, float x2, float y2)
x1
- x-coordinate of the first pointy1
- y-coordinate of the first pointx2
- x-coordinate of the second pointy2
- y-coordinate of the second pointpublic void line(float x1, float y1, float z1, float x2, float y2, float z2)
z1
- z-coordinate of the first pointz2
- z-coordinate of the second pointpublic void triangle(float x1, float y1, float x2, float y2, float x3, float y3)
x1
- x-coordinate of the first pointy1
- y-coordinate of the first pointx2
- x-coordinate of the second pointy2
- y-coordinate of the second pointx3
- x-coordinate of the third pointy3
- y-coordinate of the third pointPApplet.beginShape()
public void square(float x, float y, float extent)
x
- x-coordinate of the rectangle by defaulty
- y-coordinate of the rectangle by defaultextent
- width and height of the rectangle by defaultpublic void rectMode(int mode)
mode
- either CORNER, CORNERS, CENTER, or RADIUS