Package rope.core
Class R_Graphic
java.lang.Object
rope.core.Rope
rope.core.BigBang
rope.core.R_Graphic
- All Implemented Interfaces:
R_Constants
,R_Constants_Colour
- Direct Known Subclasses:
Crope
,R_Bloc
,R_Brick_SVG
,R_Costume_Pict
,R_Face
,R_Impact
,R_Line2D
,R_Megabloc
,R_Mol
,R_Pattern
,R_Polyhedron
,R_Shape
,R_SVG
-
Field Summary
Fields inherited from interface rope.core.R_Constants
ARC, BEGIN, BEZIER_VERTEX, BLANK, BOTTOM, BOX, BREAK, CARTESIAN, CENTER, CHAOS, CHOICE, CHORD, CIRCULAR, CLOSE, CLOUD, CORNER, CORNERS, COS, CROSS, CROSS_BOX_2, CROSS_BOX_3, CROSS_RECT, CUBE_LINE, CURVE_VERTEX, DECAGON, DIAGONAL, DIAMETER, DODECAGON, DOWN, DRAW, DXF, DYNAMIC, EAST, ELLIPSE, END, EQUATION, EULER, FIRST, FIT, FLOWER, FLUID, FX2D, G, GOLD_ANGLE, GOLD_NUMBER, GRAVITY, HALF, HALF_PI, HENDECAGON, HEPTAGON, HEXAGON, HORIZONTAL, HOUSE, HPI, ICOSI_DODECAHEDRON_LINE, IMAGE, JAVA2D, LANDSCAPE, LAST, LEAF, LEFT, LINE, LINEAR, MAD, MAGNETIC, MAX_FLOAT, MAX_INT, MIN_FLOAT, MIN_INT, MIX, NEXT, NONAGON, NONE, NORMAL, NORTH, NORTH_EAST, NORTH_WEST, NOTCH, NOTHING, NULL, OCTOGON, OCTOHEDRON_LINE, OPEN, ORDER, P2D, P3D, PDF, PENTAGON, PERLIN, PHI, PI, PIE, PIXEL, POINT, POLAR, POLYGON, PORTRAIT, POW, PREVIOUS, QPI, QUADRATIC_VERTEX, QUARTER_PI, RADIUS, RAND, RECT, REPEAT, RHOMBIC_COSI_DODECAHEDRON_SMALL_LINE, RIGHT, ROOT, ROOT2, RUN, SCALE, SEED, SHAPE, SIDE, SIN, SKY, SOUTH, SOUTH_EAST, SOUTH_WEST, SPAN, SPHERE, SPHERE_HIGH, SPHERE_LOW, SPHERE_MEDIUM, SPIRAL, SQUARE, STAR, STAR_3D, START, STATIC, STOP, SVG, TAN, TAU, TETRAHEDRON, TETRAHEDRON_LINE, TEXT, TOP, TREE, TRIANGLE, TWO_PI, UP, VERSION, VERTEX, VERTICAL, VIRUS, WALK, WEST
Fields inherited from interface rope.core.R_Constants_Colour
ABRICOT, ABYSSE, ACAJOU, ALPHA, AMARANTE, AMBRE, ANSI_BLACK, ANSI_BLACK_BACKGROUND, ANSI_BLUE, ANSI_BLUE_BACKGROUND, ANSI_CYAN, ANSI_CYAN_BACKGROUND, ANSI_GREEN, ANSI_GREEN_BACKGROUND, ANSI_PURPLE, ANSI_PURPLE_BACKGROUND, ANSI_RED, ANSI_RED_BACKGROUND, ANSI_RESET, ANSI_WHITE, ANSI_WHITE_BACKGROUND, ANSI_YELLOW, ANSI_YELLOW_BACKGROUND, ARGB, ARGENT, AUBERGINE, AZUR, BIS, BISTRE, BLACK, BLANC, BLEU, BLOND, BLOOD, BLUE, BOUTEILLE, BRIGHTNESS, BRIQUE, BRONZE, BROWN, CACHOU, CAERULEUM, CAFE, CANARD, CANELLE, CAPUCINE, CARMIN, CARMINE, CAROTTE, CELESTE, CERISE, CHAMOIS, CHARTREUSE, CHOCOLAT, CIEL, CITROUILLE, COBALT, COFFEE, COLOMBIN, CORAIL, CYAN, ELEPHANT, EVEQUE, FRANCE, FUSCHIA, GOLD, GRADIENT, GRADIENT_BRIGHTNESS, GRADIENT_HUE, GRADIENT_SATURATION, GRAY, GRAY_MEDIUM, GREEN, GRENAT, GRIS, GRIS_MOYEN, GUEULES, HSB, HUE, 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, PALETTE, PAYNE, PERLE, PERROQUET, PINK, PISTACHE, POURPRE, PRUNE, PURPLE, RAINBOW, RED, RGB, RGBA, ROSE, ROUGE, SANG, SAPIN, SATURATION, SAUGE, SEPIA, SHAKUDOU, SILVER, SINOPLE, SMALT, SOURIS, SPECTRUM, TAUPE, TENEBRE, TILLEUL, TURQUOISE, VERMILLON, VERT, VERT_D_EAU, VERT_DE_GRIS, VESSIE, VIOLET, WHITE, YELLOW, ZINZOLIN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
arc
(float px, float py, float sx, float sy, float start, float stop) void
arc
(float px, float py, float sx, float sy, float start, float stop, int mode) void
void
void
aspect
(int fill, int stroke, float thickness) void
aspect
(int fill, int stroke, float thickness, processing.core.PGraphics other) check if any PGraphics is active, and if it's a case work ont itvoid
background
(float gray) void
background
(float gray, float alpha) void
background
(float x, float y, float z) void
background
(float x, float y, float z, float a) void
background
(int colour) void
background
(int colour, float alpha) void
BEGIN_CONTOUR / END_CONTOURvoid
void
This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
beginShape
(int kind) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
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 VERTEXvoid
bezierVertex
(vec a, vec b, vec pos) void
bezierVertex
(vec a, vec b, vec pos, processing.core.PGraphics other) void
box
(float size) void
box
(float x, float y, float z) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
void
circle
(float px, float py, float diam) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
void
clear()
clone Processing function() clearvoid
colorMode
(int mode) void
colorMode
(int mode, float max) void
colorMode
(int mode, float max_x, float max_y, float max_z) void
colorMode
(int mode, float max_x, float max_y, float max_z, float max_a) void
void
void
processing.core.PGraphics
createGraphics
(float x, float y, String type) 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
ellipse
(float px, float py, float sx, float sy) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
void
void
int
void
ellipseMode
(int mode) void
void
endDraw()
void
endShape()
This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
endShape
(int mode) void
fill
(float gray) void
fill
(float gray, float alpha) void
fill
(float x, float y, float z) void
fill
(float x, float y, float z, float a) void
fill
(int rgb) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
fill
(int rgb, float alpha) boolean
fill_is()
void
fill_is
(boolean is) int
get
(int x, int y) get_renderer
(processing.core.PGraphics graph) void
image
(processing.core.PImage img) IMAGEvoid
image
(processing.core.PImage img, float a, float b) void
image
(processing.core.PImage img, float a, float b, float c, float d) void
image
(processing.core.PImage img, float a, float b, float c, float d, int u1, int v1, int u2, int v2) void
void
line
(float x1, float y1, float x2, float y2) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
line
(float x1, float y1, float z1, float x2, float y2, float z2) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
void
void
processing.opengl.PShader
loadShader
(String path) void
noFill()
This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
noStroke()
This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
pass_graphic
(processing.core.PGraphics other) void
plot
(int index, int c) void
plot
(int x, int y, int c) void
close to Processing function set()void
close to Processing function set()void
plot_x2
(int x, int y, int colour) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
point
(float x, float y) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
point
(float x, float y, float z) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
void
void
pop()
This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
push()
This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
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 VERTEXvoid
quadraticVertex
(vec a, vec b) void
quadraticVertex
(vec a, vec b, processing.core.PGraphics other) void
rect
(float px, float py, float sx, float sy) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
rect
(float px, float py, float sx, float sy, float r) void
rect
(float px, float py, float sx, float sy, float tl, float tr, float br, float bl) void
void
void
int
rectMode()
void
rectMode
(int mode) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itboolean
boolean
void
rotate
(float angle) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
rotateX
(float angle) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
void
void
void
rotateY
(float angle) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
void
rotateZ
(float angle) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
scale
(float s) Increases or decreases the size of a shape by expanding and contracting vertices.void
scale
(float x, float y) Not recommended for use in 3D, because the z-dimension is just scaled by 1, since there's no way to know what else to scale it by.void
scale
(float x, float y, float z) void
set
(int x, int y, int c) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
void
void
shader
(processing.opengl.PShader shader) SHADERvoid
shearX
(float angle) see Processing informationvoid
shearY
(float angle) see Processing informationvoid
sphere
(float radius) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
sphereDetail
(int res) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
sphereDetail
(int ures, int vres) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
square
(float x, float y, float extent) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
void
stroke
(float gray) void
stroke
(float gray, float alpha) void
stroke
(float x, float y, float z) void
stroke
(float x, float y, float z, float a) void
stroke
(int rgb) This Processing clone method, add check if any PGraphics is active, and if it's a case work on itvoid
stroke
(int rgb, float alpha) boolean
void
stroke_is
(boolean is) void
strokeWeight
(float thickness) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
text
(char[] chars, int start, int stop, float x, float y) void
text
(char[] chars, int start, int stop, float x, float y, float z) void
text
(char c, float x, float y) void
text
(char c, float x, float y, float z) void
void
text
(float f_num, float x, float y) void
text
(float f_num, float x, float y, float z) void
void
text
(int i_num, float x, float y) void
text
(int i_num, float x, float y, float z) void
void
void
Same as above but with a z coordinate.void
void
void
void
textAlign
(int alignX) TEXTvoid
textAlign
(int alignX, int alignY) void
textFont
(processing.core.PFont which) void
textFont
(processing.core.PFont which, float size) void
textSize
(float size) void
thickness
(float thickness) This method is like strokeWeight of Processingvoid
translate
(float x, float y) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
translate
(float x, float y, float z) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
void
triangle
(float x1, float y1, float x2, float y2, float x3, float y3) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itvoid
void
void
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) void
void
void
void
void
void
Methods inherited from class rope.core.BigBang
alpha, blue, brightness, color, color, color, color, createFont, createFont, createFont, getColorMode, getColorMode, green, hue, lerpColor, loadImage, longest_String, longest_String, longest_String_pixel, longest_String_pixel, longest_String_pixel, longest_String_pixel, longest_String_pixel, longest_String_pixel, noise, noiseSeed, pass_processing, pixel_density_is, pixel_density_is, red, saturation, save_BMP, save_frame, save_frame, save_frame, save_frame, sketchPath, sketchPath, start_PDF, start_PDF, start_PDF, width_char, width_char, width_char, width_String, width_String, width_String
Methods inherited from class rope.core.Rope
abs, abs, abs, abs, abs, abs, abs, abs, add, add, add, add, add, add, all, all, any, any, atan, barycenter, barycenter, barycenter, binary, binary, binary, binary, ceil, ceil, ceil, ceil, clamp, clamp, clamp, clamp, compare, compare, compare, compare, compare, compare, compare, compare, constrain, constrain, cos, cross, d_bell, d_cbrt, d_cos, d_normal, d_pow, d_sigmoid, d_sin, d_sqrt, dist, dist, dist, dist, dist, div, div, div, div, div, div, equal, equal, equal, equal, equal, equal, equal, equal, extension, extension_is, file_name, floor, floor, floor, floor, fract, fract, fract, fract, get_os, get_os_family, getColorMode, getColorMode, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, hex, hex, hex, hex, in_line, in_line, in_polygon, in_polygon, in_polygon, in_polygon, in_segment, in_segment, index_pixel_array, lessThan, lessThan, lessThan, lessThan, lessThan, lessThan, lessThan, lessThan, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, map, map, map, map, max, max, max, max, max, max, max, max, min, min, min, min, min, min, min, min, mix, mix, mix, mix, mod, mod, mod, mod, mod, mod, mod, mult, mult, mult, mult, mult, mult, only, only, pow, print_array, print_err, print_err_tempo, print_out, print_tempo, projection, projection, projection, projection, projection, projection, projection, projection, random, random, random_next_gaussian, random_next_gaussian, random_next_gaussian, reverse, reverse, reverse, reverse, reverse, reverse, reverse, reverse, reverse, round, round, round, round, sign, sign, sign, sign, sign, sign, sign, sign, sin, smoothstep, smoothstep, smoothstep, smoothstep, split, split, sq, sqrt, step, step, step, step, sub, sub, sub, sub, sub, sub, to_cartesian_2D, to_cartesian_2D, to_cartesian_2D, to_cartesian_3D, to_cartesian_3D, to_cartesian_3D, truncate, truncate, unbinary, unhex
-
Constructor Details
-
R_Graphic
public R_Graphic(processing.core.PApplet pa) -
R_Graphic
public R_Graphic(processing.core.PApplet pa, processing.core.PGraphics other)
-
-
Method Details
-
renderer_P3D
public boolean renderer_P3D()- Returns:
- true if the graphic constext is is P3D, else return fase
-
renderer_P2D
public boolean renderer_P2D() -
get_renderer
- Overrides:
get_renderer
in classBigBang
- Returns:
- String of the the graphic contexts
-
get_renderer
- Overrides:
get_renderer
in classRope
- Parameters:
graph
- pass the graphics context like P3D, P2D...- Returns:
- return the String name of the graphic context
-
pass_graphic
public void pass_graphic(processing.core.PGraphics other) - Parameters:
other
- PGraphics rendering art work
-
createGraphics
-
clear
public void clear()clone Processing function() clear -
colorMode
public void colorMode(int mode, float max_x, float max_y, float max_z, float max_a) - Parameters:
mode
- type color environment RGB or HSBmax_x
- float max value for X componentmax_y
- float max value for Y componentmax_z
- float max value for Z componentmax_a
- float max value for alpha component
-
colorMode
-
colorMode
-
colorMode
-
colorMode
public void colorMode(int mode) -
colorMode
public void colorMode(int mode, float max) -
colorMode
public void colorMode(int mode, float max_x, float max_y, float max_z) -
shader
public void shader(processing.opengl.PShader shader) SHADER -
loadShader
-
image
public void image(processing.core.PImage img) IMAGE -
image
-
image
public void image(processing.core.PImage img, float a, float b) -
image
public void image(processing.core.PImage img, float a, float b, float c, float d) -
image
public void image(processing.core.PImage img, float a, float b, float c, float d, int u1, int v1, int u2, int v2) -
background
public void background(int colour) -
background
public void background(int colour, float alpha) -
background
public void background(float gray) -
background
public void background(float gray, float alpha) -
background
public void background(float x, float y, float z) -
background
public void background(float x, float y, float z, float a) -
get
public int get(int x, int y) -
set
public void set(int x, int y, int c) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
x
- position to set pixely
- position to set pixelc
- int color pixel
-
set
- Parameters:
pos
- vec2 position to set pixelc
- int color pixel
-
set
- Parameters:
pos
- ivec2 position to set pixelc
- int color pixel
-
plot
close to Processing function set()- Parameters:
pos
-c
-
-
plot
close to Processing function set()- Parameters:
pos
-c
-
-
plot
public void plot(int x, int y, int c) -
plot
public void plot(int index, int c) -
plot_x2
This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
pos
- position to set pixelcolour
- int color pixel
-
plot_x2
public void plot_x2(int x, int y, int colour) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
x
- position to set pixely
- position to set pixelcolour
- int color pixel
-
loadPixels
public void loadPixels() -
updatePixels
public void updatePixels() -
beginDraw
public void beginDraw() -
endDraw
public void endDraw() -
point
public void point(float x, float y) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
x
- x-coordinate of the pointy
- y-coordinate of the point
-
point
public void point(float x, float y, float z) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
x
- x-coordinate of the pointy
- y-coordinate of the pointz
- z-coordinate of the point
-
point
- Parameters:
pos
- x,y,z-coordinate of the point
-
point
- Parameters:
pos
- x,y,z-coordinate of the point
-
line
public void line(float x1, float y1, float x2, float y2) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
x1
- x-coordinate of the first pointy1
- y-coordinate of the first pointx2
- x-coordinate of the second pointy2
- y-coordinate of the second point
-
line
public void line(float x1, float y1, float z1, float x2, float y2, float z2) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
z1
- z-coordinate of the first pointz2
- z-coordinate of the second point
-
line
- Parameters:
a
- vec position of a pointb
- vec position of b point
-
line
- Parameters:
a
- ivec position of a pointb
- ivec position of b point
-
triangle
- Parameters:
a
- ivec position of a summitb
- ivec position of b summitc
- ivec position of c summit
-
triangle
- Parameters:
a
- vec position of a summitb
- vec position of b summitc
- vec position of c summit
-
triangle
public void triangle(float x1, float y1, float x2, float y2, float x3, float y3) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
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 point- See Also:
-
PApplet.beginShape()
-
rectMode
public void rectMode(int mode) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
mode
- either CORNER, CORNERS, CENTER, or RADIUS
-
rectMode
public int rectMode() -
arc
-
arc
-
arc
public void arc(float px, float py, float sx, float sy, float start, float stop) -
arc
public void arc(float px, float py, float sx, float sy, float start, float stop, int mode) -
ellipse
public void ellipse(float px, float py, float sx, float sy) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
px
- float value for the ellipse positionpy
- float value for the ellipse positionsx
- float value for the ellipse sizesy
- float value for the ellipse size
-
ellipse
-
ellipse
-
ellipse
-
ellipseMode
public void ellipseMode(int mode) -
ellipseMode
public int ellipseMode() -
circle
public void circle(float px, float py, float diam) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
px
- float value for the ellipse positionpy
- float value for the ellipse positiondiam
- float value for the ellipse size
-
circle
-
square
public void square(float x, float y, float extent) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
x
- x-coordinate of the rectangle by defaulty
- y-coordinate of the rectangle by defaultextent
- width and height of the rectangle by default
-
square
- Parameters:
pos
- vec value for position, vec2 or vec3 is accepted for x,y and z coordinateextent
- float value for side size of the rect / square
-
rect
public void rect(float px, float py, float sx, float sy) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
px
- float value for positionpy
- float value for positionsx
- float value for sizesy
- float value for size
-
rect
public void rect(float px, float py, float sx, float sy, float r) -
rect
public void rect(float px, float py, float sx, float sy, float tl, float tr, float br, float bl) -
rect
-
rect
-
rect
-
box
public void box(float x, float y, float z) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
x
- float value for sizey
- float value for sizez
- float value for size
-
box
public void box(float size) -
box
-
sphere
public void sphere(float radius) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
radius
- float value for sphere radius
-
sphereDetail
public void sphereDetail(int res) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
res
- int value for details sphere rendering
-
sphereDetail
public void sphereDetail(int ures, int vres) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
ures
- int value for sphere details renderingvres
- int value for sphere details rendering
-
fill
public void fill(int rgb) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
rgb
- in value for the stroke color
-
fill
public void fill(int rgb, float alpha) -
fill
public void fill(float gray) -
fill
public void fill(float gray, float alpha) -
fill
public void fill(float x, float y, float z) -
fill
public void fill(float x, float y, float z, float a) -
noFill
public void noFill()This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it -
fill_is
public void fill_is(boolean is) -
fill_is
public boolean fill_is() -
stroke
public void stroke(int rgb) This Processing clone method, add check if any PGraphics is active, and if it's a case work on it- Parameters:
rgb
- in value for the stroke color
-
stroke
public void stroke(int rgb, float alpha) -
stroke
public void stroke(float gray) -
stroke
public void stroke(float gray, float alpha) -
stroke
public void stroke(float x, float y, float z) -
stroke
public void stroke(float x, float y, float z, float a) -
noStroke
public void noStroke()This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it -
stroke_is
public void stroke_is(boolean is) -
stroke_is
public boolean stroke_is() -
strokeWeight
public void strokeWeight(float thickness) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
thickness
- float value for the strokeWeight
-
thickness
public void thickness(float thickness) This method is like strokeWeight of Processing- Parameters:
thickness
- float value for the strokeWeight
-
aspect
public void aspect(int fill, int stroke, float thickness) -
aspect
public void aspect(int fill, int stroke, float thickness, processing.core.PGraphics other) check if any PGraphics is active, and if it's a case work ont it- Parameters:
fill
- int value for color fillstroke
- int value for color strokethickness
- float value for the strokeWeightother
- is your PGRaphics to render your art work
-
push
public void push()This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it -
pushMatrix
public void pushMatrix()This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it -
pop
public void pop()This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it -
popMatrix
public void popMatrix()This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it -
translate
public void translate(float x, float y, float z) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
x
- float value to translate in xy
- float value to translate in yz
- float value to translate in z
-
translate
public void translate(float x, float y) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
x
- float value to translate in xy
- float value to translate in y
-
translate
- Parameters:
v
- vec value for translation in x,y or x,y, z
-
rotate
public void rotate(float angle) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
angle
- float value in radiant for rotation
-
rotateX
public void rotateX(float angle) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
angle
- float value in radiant for rotation
-
rotateY
public void rotateY(float angle) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
angle
- float value in radiant for rotation
-
rotateZ
public void rotateZ(float angle) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
angle
- float value in radiant for rotation
-
rotateXY
- Parameters:
rot
- vec2 radiant value for the rotation
-
rotateXZ
- Parameters:
rot
- vec2 radiant value for the rotation
-
rotateYZ
- Parameters:
rot
- vec2 radiant value for the rotation
-
rotateXYZ
- Parameters:
rot
- vec3 radiant value for the rotation
-
scale
public void scale(float s) Increases or decreases the size of a shape by expanding and contracting vertices. Objects always scale from their relative origin to the coordinate system. Scale values are specified as decimal percentages. For example, the function call scale(2.0) increases the dimension of a shape by 200%. Transformations apply to everything that happens after and subsequent calls to the function multiply the effect. For example, calling scale(2.0) and then scale(1.5) is the same as scale(3.0). If scale() is called within draw(), the transformation is reset when the loop begins again. Using this function with the z parameter requires using P3D as a parameter for size(), as shown in the third example above. This function can be further controlled with pushMatrix( and popMatrix(.- Parameters:
s
- float value to scale
-
scale
public void scale(float x, float y) Not recommended for use in 3D, because the z-dimension is just scaled by 1, since there's no way to know what else to scale it by.- Parameters:
x
- percentage to scale the object in the x-axisy
- percentage to scale the object in the y-axis
-
scale
public void scale(float x, float y, float z) - Parameters:
x
- percentage to scale the object in the x-axisy
- percentage to scale the object in the y-axisz
- percentage to scale the object in the z-axis
-
shearX
public void shearX(float angle) see Processing information- Parameters:
angle
- float radiant value for shear
-
shearY
public void shearY(float angle) see Processing information- Parameters:
angle
- float radiant value for shear
-
beginContour
public void beginContour()BEGIN_CONTOUR / END_CONTOUR -
endContour
public void endContour() -
beginShape
public void beginShape()This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it -
beginShape
public void beginShape(int kind) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
kind
- type of rendering
-
endShape
public void endShape()This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it -
endShape
public void endShape(int mode) - Parameters:
mode
- type of rendering
-
vertex
public void vertex(float x, float y, processing.core.PGraphics other) - Parameters:
x
- float value for coordinatey
- float value for coordinateother
- PGraphics rendering
-
vertex
public void vertex(float x, float y, float z, processing.core.PGraphics other) - Parameters:
x
- float value for coordinatey
- float value for coordinatez
- float value for coordinateother
- PGraphics rendering
-
vertex
public void vertex(float[] v, processing.core.PGraphics other) - Parameters:
v
- array value for coordinateother
- PGraphics rendering
-
vertex
public void vertex(float x, float y, float u, float v, processing.core.PGraphics other) - Parameters:
x
- float value for coordinatey
- float value for coordinateu
- float value for uvv
- float value for uvother
- PGraphics rendering
-
vertex
public void vertex(float x, float y, float z, float u, float v, processing.core.PGraphics other) - Parameters:
x
- float value for coordinatey
- float value for coordinatez
- float value for coordinateu
- float value for uvv
- float value for uvother
- PGraphics rendering
-
vertex
- Parameters:
coord
- vec position for the vertexother
- PGraphics rendering
-
vertex
- Parameters:
coord
- vec2 position for the vertexuv
- vec uv for the vertexother
- PGraphics rendering
-
vertex
- Parameters:
coord
- vec3 position for the vertexuv
- vec uv for the vertexother
- PGraphics rendering
-
vertex
- Parameters:
v
- vec position for the vertex
-
vertex
- Parameters:
v
-uv
-
-
vertex
- Parameters:
v
-uv
-
-
vertex
public void vertex(float x, float y) - Parameters:
x
- x-coordinate of the vertexy
- y-coordinate of the vertex
-
vertex
public void vertex(float x, float y, float z) - Parameters:
x
- x-coordinate of the vertexy
- y-coordinate of the vertexz
- z-coordinate of the vertex
-
vertex
public void vertex(float[] v) - Parameters:
v
- array value for coordinate
-
vertex
public void vertex(float x, float y, float u, float v) - Parameters:
x
- float value for coordinatey
- float value for coordinateu
- float value for uvv
- float value for uv
-
vertex
public void vertex(float x, float y, float z, float u, float v) - Parameters:
x
- float value for coordinatey
- float value for coordinatez
- float value for coordinateu
- float value for uvv
- float value for uv
-
bezierVertex
public void bezierVertex(float x2, float y2, float x3, float y3, float x4, float y4, processing.core.PGraphics other) BEZIER VERTEX -
bezierVertex
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) -
bezierVertex
-
bezierVertex
-
bezierVertex
public void bezierVertex(float x2, float y2, float x3, float y3, float x4, float y4) - Parameters:
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 point
-
bezierVertex
public void bezierVertex(float x2, float y2, float z2, float x3, float y3, float z3, float x4, float y4, float z4) - Parameters:
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 point
-
quadraticVertex
public void quadraticVertex(float cx, float cy, float x3, float y3, processing.core.PGraphics other) QUADRATIC VERTEX -
quadraticVertex
public void quadraticVertex(float cx, float cy, float cz, float x3, float y3, float z3, processing.core.PGraphics other) -
quadraticVertex
-
quadraticVertex
-
quadraticVertex
public void quadraticVertex(float cx, float cy, float x3, float y3) - Parameters:
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 point
-
quadraticVertex
public void quadraticVertex(float cx, float cy, float cz, float x3, float y3, float z3) - Parameters:
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 point
-
curveVertex
public void curveVertex(float x, float y, float z, processing.core.PGraphics other) - Parameters:
x
-y
-z
-other
-
-
curveVertex
public void curveVertex(float x, float y, processing.core.PGraphics other) -
curveVertex
-
curveVertex
-
curveVertex
public void curveVertex(float x, float y) - Parameters:
x
- the x-coordinate of the vertexy
- the y-coordinate of the vertex
-
curveVertex
public void curveVertex(float x, float y, float z) - Parameters:
x
- the x-coordinate of the vertexy
- the y-coordinate of the vertexz
- the z-coordinate of the vertex
-
textAlign
public void textAlign(int alignX) TEXT -
textAlign
public void textAlign(int alignX, int alignY) - Parameters:
alignX
- horizontal alignment, either LEFT, CENTER, or RIGHTalignY
- vertical alignment, either TOP, BOTTOM, CENTER, or BASELINE
-
textFont
public void textFont(processing.core.PFont which) -
textFont
public void textFont(processing.core.PFont which, float size) - Parameters:
size
- the size of the letters in units of pixels
-
textSize
public void textSize(float size) -
text
public void text(char c, float x, float y) -
text
public void text(char c, float x, float y, float z) -
text
-
text
public void text(char[] chars, int start, int stop, float x, float y) -
text
Same as above but with a z coordinate. -
text
public void text(char[] chars, int start, int stop, float x, float y, float z) -
text
-
text
public void text(int i_num, float x, float y) -
text
public void text(int i_num, float x, float y, float z) -
text
public void text(float f_num, float x, float y) -
text
public void text(float f_num, float x, float y, float z) -
text
-
text
-
text
-
text
-
text
-