Package rope.costume
Class R_Impact
java.lang.Object
rope.core.Rope
rope.core.BigBang
rope.core.R_Graphic
rope.costume.R_Impact
- All Implemented Interfaces:
R_Constants
,R_Constants_Colour
-
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
build()
Build the structure network with the default paramater is there is no specific settingvoid
int
diam()
float
get_fill()
float
int
float
int
float
int
int
int
get_lines_circle
(int index) return circleget_lines_circle_branch
(int index) get_lines_circle_branch
(int index, boolean only_visible_is) get_lines_main
(int index) int
get_mode()
int
int
int[]
vec2[]
int[]
int[]
growth_factor_spiral
(float growth) boolean
heart_is()
heart_is
(boolean is) normal()
void
pixel_density_is
(boolean is) Overwrite the R_Graphic function to set pixel density the line dynamicilypos()
pos
(float x, float y) float
radius()
set_angle_main
(float angle) set_density
(float density) set_density
(float x, float y) set_diam
(int diameter) set_fill
(int fill) set_fill
(int x, int y) set_growth_circle
(int distribution) set_growth_circle
(int distribution, float min, float max) by default min and max is 0, the value is like normal value, must be set with small value, is better like -2 to 2, after that's can give a strange result.set_growth_main
(int distribution) set_growth_main
(int distribution, float min, float max) by default min and max is 0, the value is like normal value, must be set with small value, is better like -2 to 2, after that's can give a strange result.set_iter_circle
(int iter) set_iter_main
(int iter) set_line_mode
(int mode) void
set_mute_circle
(int circle_index, int line_index, boolean state) void
set_mute_main
(int main_index, int line_index, boolean state) set_num_circle
(int num) set_num_main
(int num) void
set_pixel_evolution
(int type, int level, int step) void
set_pixel_evolution
(int type, int level_min, int level_max, int step_min, int step_max) void
set_pixel_mode_abscissa
(int type, int level) void
set_pixel_mode_ordinate
(int type, int level) set_pixels_colour
(int... colour) set_stroke
(int stroke) set_stroke
(int x, int y) set_thickness
(float thickness) set_thickness
(float x, float y) void
void
show_all_polygons
(int mode) void
void
show_lines_branch
(int index) an other way to show circle, not like circle but by branch from main pie slidevoid
void
show_lines_circle
(int index) void
show_lines_circle
(int index, int start, int end) void
void
void
show_lines_main
(int index) void
show_lines_main
(int start, int end) void
show_lines_main
(int index, int start, int end) void
void
show_polygon
(R_Shape shape) void
void
show_polygon_external
(int mode) void
void
show_polygon_heart
(int mode) void
void
show_polygons
(int mode) void
show_polygons_from
(ArrayList<R_Shape> list, int mode) spiral()
void
update()
utils for the puppet case with node management.void
update_pixels_is
(boolean is) void
Must be use all the time not only where there a changementvoid
use_gradient
(boolean is) void
use_gradient_density
(boolean is) void
use_gradient_density
(boolean is, float start, float end) void
use_gradient_fill
(boolean is) void
use_gradient_fill
(boolean is, int start, int end) Apply a fill gradient on all strokeweight from the center to the exterior shapevoid
use_gradient_stroke
(boolean is) void
use_gradient_stroke
(boolean is, int start, int end) Apply a stroke gradient on all strokeweight from the center to the exterior shapevoid
use_gradient_thickness
(boolean is) void
use_gradient_thickness
(boolean is, float start, float end) Apply a thickness gradient on all strokeweight from the center to the exterior shapeboolean
void
use_mute_is
(boolean is) Methods inherited from class rope.core.R_Graphic
arc, arc, arc, arc, aspect, aspect, background, background, background, background, background, background, beginContour, beginDraw, beginShape, beginShape, bezierVertex, bezierVertex, bezierVertex, bezierVertex, bezierVertex, bezierVertex, box, box, box, circle, circle, clear, colorMode, colorMode, colorMode, colorMode, colorMode, colorMode, colorMode, createGraphics, curveVertex, curveVertex, curveVertex, curveVertex, curveVertex, curveVertex, ellipse, ellipse, ellipse, ellipse, ellipseMode, ellipseMode, endContour, endDraw, endShape, endShape, fill, fill, fill, fill, fill, fill, fill_is, fill_is, get, get_renderer, get_renderer, image, image, image, image, image, line, line, line, line, loadPixels, loadShader, noFill, noStroke, pass_graphic, plot, plot, plot, plot, plot_x2, plot_x2, point, point, point, point, pop, popMatrix, push, pushMatrix, quadraticVertex, quadraticVertex, quadraticVertex, quadraticVertex, quadraticVertex, quadraticVertex, rect, rect, rect, rect, rect, rect, rectMode, rectMode, renderer_P2D, renderer_P3D, rotate, rotateX, rotateXY, rotateXYZ, rotateXZ, rotateY, rotateYZ, rotateZ, scale, scale, scale, set, set, set, shader, shearX, shearY, sphere, sphereDetail, sphereDetail, square, square, stroke, stroke, stroke, stroke, stroke, stroke, stroke_is, stroke_is, strokeWeight, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, textAlign, textAlign, textFont, textFont, textSize, thickness, translate, translate, translate, triangle, triangle, triangle, updatePixels, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex
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, 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_Impact
public R_Impact(processing.core.PApplet pa, int diameter) -
R_Impact
public R_Impact(processing.core.PApplet pa, int x, int y, int diameter)
-
-
Method Details
-
pos
-
pos
-
set_num_main
-
set_iter_main
-
set_angle_main
-
set_diam
-
set_growth_main
by default min and max is 0, the value is like normal value, must be set with small value, is better like -2 to 2, after that's can give a strange result. with use this value to find a random value to multiblie the original main arg- Parameters:
distribution
- it's a type of distrubution where 0 is lineare / choice : -1, 0 or 1min
- it's good option to use negative valuemax
- it's good option to use positive value- Returns:
-
set_growth_main
-
heart_is
- Parameters:
is
- set if if the shape heart must be use on the first level of the main line- Returns:
-
set_num_circle
-
set_iter_circle
-
set_growth_circle
-
set_growth_circle
by default min and max is 0, the value is like normal value, must be set with small value, is better like -2 to 2, after that's can give a strange result. with use this value to find a random value to multiblie the original circle arg- Parameters:
distribution
- it's a type of distrubution where 0 is linearemin
- it's good option to use negative valuemax
- it's good option to use positive value- Returns:
-
growth_factor_spiral
-
spiral
-
normal
-
update_pixels_is
public void update_pixels_is(boolean is) -
pixel_density_is
public void pixel_density_is(boolean is) Overwrite the R_Graphic function to set pixel density the line dynamicily- Overrides:
pixel_density_is
in classBigBang
-
update
public void update()utils for the puppet case with node management. May be it's possible to refactor with the option build_is(boolean is) ??? -
update_preset
public void update_preset()Must be use all the time not only where there a changement -
get_line_mode
public int get_line_mode()- Returns:
- the line mode 0 is normal, 1 is for pixel x1, 2 pixel x2
-
radius
public float radius()- Returns:
- the calculated value of the real farest point of the center
-
diam
public int diam()- Returns:
- the value pass to set_diam() or constructor
-
pos
-
get_mode
public int get_mode() -
get_growth_spiral
public float get_growth_spiral() -
get_growth_main
public float get_growth_main() -
get_growth_main_ratio
-
get_growth_main_distribution
public int get_growth_main_distribution() -
get_num_main
public int get_num_main() -
get_iter_main
public int get_iter_main() -
get_angle_main
public float get_angle_main() -
heart_is
public boolean heart_is() -
get_thickness
-
get_density
-
get_stroke
-
get_fill
-
get_pixels_colour
public int[] get_pixels_colour() -
get_growth_circle_ratio
-
get_growth_circle_distribution
public int get_growth_circle_distribution() -
get_growth_circle
public float get_growth_circle() -
get_num_circle
public int get_num_circle() -
get_iter_circle
public int get_iter_circle() -
get_size_main
public int[] get_size_main() -
get_size_circle
public int[] get_size_circle() -
get_lines
-
get_lines_main
-
get_lines_circle
return circle -
get_lines_circle_branch
-
get_lines_circle_branch
- Parameters:
index
- select wich main branch you want addonly_visible_is
- if it's true add only the visible line- Returns:
-
get_lines_heart
-
get_nodes
-
get_nodes_main
-
get_all_polygons
-
get_polygon_external
-
get_polygon_heart
-
get_polygons
-
get_polygon_array_heart
-
build
public void build()Build the structure network with the default paramater is there is no specific setting -
build_polygon
public void build_polygon() -
set_mute_main
public void set_mute_main(int main_index, int line_index, boolean state) -
set_mute_circle
public void set_mute_circle(int circle_index, int line_index, boolean state) -
use_mute_is
public void use_mute_is(boolean is) -
use_mute_is
public boolean use_mute_is() -
set_stroke
- Parameters:
stroke
- to set the stroke color, of line, pixel and polygon- Returns:
-
set_fill
- Parameters:
fill
- to set the fill color polygone- Returns:
-
set_thickness
- Parameters:
thickness
- to set strokeWeight- Returns:
-
set_density
- Parameters:
density
- to set pixel lin density- Returns:
-
set_pixels_colour
-
set_stroke
- Parameters:
x
- use for minimum and to set stroke()y
- only for the second parameter in case the gradient is used- Returns:
- this
-
set_fill
- Parameters:
x
- use for minimum and to set fill()y
- only for the second parameter in case the gradient is used- Returns:
- this
-
set_thickness
- Parameters:
x
- use for minimum and to set strokeWeight()y
- only for the second parameter in case the gradient is used- Returns:
- this
-
set_density
- Parameters:
x
- use for minimum and to set density pixel line()y
- only for the second parameter in case the gradient is used- Returns:
- this
-
set_line_mode
-
set_pixel_evolution
public void set_pixel_evolution(int type, int level, int step) - Parameters:
level
- num of pixel after the pixel rootstep
- space between the pixel
-
set_pixel_evolution
public void set_pixel_evolution(int type, int level_min, int level_max, int step_min, int step_max) - Parameters:
level_min
- num min of pixel after the pixel rootlevel_max
- num max of pixel after the pixel rootstep_min
- space min between the pixelstep_max
- space max between the pixel
-
set_pixel_mode_abscissa
public void set_pixel_mode_abscissa(int type, int level) -
set_pixel_mode_ordinate
public void set_pixel_mode_ordinate(int type, int level) -
use_gradient
public void use_gradient(boolean is) -
use_gradient_density
public void use_gradient_density(boolean is, float start, float end) -
use_gradient_density
public void use_gradient_density(boolean is) -
use_gradient_thickness
public void use_gradient_thickness(boolean is, float start, float end) Apply a thickness gradient on all strokeweight from the center to the exterior shape- Parameters:
is
- set if the gradient must be applystart
- thickness minimum for the strokeWeightend
- thickness maximum for the strokeWeight
-
use_gradient_thickness
public void use_gradient_thickness(boolean is) -
use_gradient_stroke
public void use_gradient_stroke(boolean is, int start, int end) Apply a stroke gradient on all strokeweight from the center to the exterior shape- Parameters:
is
- set if the gradient must be applystart
- stroke for colorend
- stroke for color
-
use_gradient_stroke
public void use_gradient_stroke(boolean is) -
use_gradient_fill
public void use_gradient_fill(boolean is, int start, int end) Apply a fill gradient on all strokeweight from the center to the exterior shape- Parameters:
is
- set if the gradient must be applystart
- fill for colorend
- fill for color
-
use_gradient_fill
public void use_gradient_fill(boolean is) -
show_lines
public void show_lines() -
show_lines_main
public void show_lines_main() -
show_lines_main
public void show_lines_main(int start, int end) - Parameters:
start
-end
-
-
show_lines_main
public void show_lines_main(int index) - Parameters:
index
-
-
show_lines_main
public void show_lines_main(int index, int start, int end) - Parameters:
index
-start
-end
-
-
show_lines_circle
public void show_lines_circle() -
show_lines_circle
public void show_lines_circle(int index, int start, int end) -
show_lines_circle
public void show_lines_circle(int index) -
show_lines_branch
public void show_lines_branch(int index) an other way to show circle, not like circle but by branch from main pie slide -
show_lines_heart
public void show_lines_heart() -
show_all_polygons
public void show_all_polygons() -
show_all_polygons
public void show_all_polygons(int mode) -
show_polygon_heart
public void show_polygon_heart(int mode) -
show_polygon_heart
public void show_polygon_heart() -
show_polygons
public void show_polygons() -
show_polygons
public void show_polygons(int mode) -
show_polygon_external
public void show_polygon_external(int mode) -
show_polygon_external
public void show_polygon_external() -
show_polygons_from
-
show_polygon
- Parameters:
shape
-
-
show_nodes
public void show_nodes()
-