Package rope.costume

Class R_Impact

All Implemented Interfaces:
R_Constants, R_Constants_Colour

public class R_Impact extends R_Graphic
  • 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

      public R_Impact pos(float x, float y)
    • pos

      public R_Impact pos(vec2 pos)
    • set_num_main

      public R_Impact set_num_main(int num)
    • set_iter_main

      public R_Impact set_iter_main(int iter)
    • set_angle_main

      public R_Impact set_angle_main(float angle)
    • set_diam

      public R_Impact set_diam(int diameter)
    • set_growth_main

      public R_Impact 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. 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 1
      min - it's good option to use negative value
      max - it's good option to use positive value
      Returns:
    • set_growth_main

      public R_Impact set_growth_main(int distribution)
    • heart_is

      public R_Impact heart_is(boolean is)
      Parameters:
      is - set if if the shape heart must be use on the first level of the main line
      Returns:
    • set_num_circle

      public R_Impact set_num_circle(int num)
    • set_iter_circle

      public R_Impact set_iter_circle(int iter)
    • set_growth_circle

      public R_Impact set_growth_circle(int distribution)
    • set_growth_circle

      public R_Impact 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. 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 lineare
      min - it's good option to use negative value
      max - it's good option to use positive value
      Returns:
    • growth_factor_spiral

      public R_Impact growth_factor_spiral(float growth)
    • spiral

      public R_Impact spiral()
    • normal

      public R_Impact 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 class BigBang
    • 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

      public vec2 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

      public vec2 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

      public vec2 get_thickness()
    • get_density

      public vec2 get_density()
    • get_stroke

      public ivec2 get_stroke()
    • get_fill

      public ivec2 get_fill()
    • get_pixels_colour

      public int[] get_pixels_colour()
    • get_growth_circle_ratio

      public vec2 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

      public ArrayList<R_Line2D> get_lines()
    • get_lines_main

      public ArrayList<R_Puppet2D> get_lines_main(int index)
    • get_lines_circle

      public ArrayList<R_Line2D> get_lines_circle(int index)
      return circle
    • get_lines_circle_branch

      public ArrayList<R_Line2D> get_lines_circle_branch(int index)
    • get_lines_circle_branch

      public ArrayList<R_Line2D> get_lines_circle_branch(int index, boolean only_visible_is)
      Parameters:
      index - select wich main branch you want add
      only_visible_is - if it's true add only the visible line
      Returns:
    • get_lines_heart

      public ArrayList<R_Puppet2D> get_lines_heart()
    • get_nodes

      public ArrayList<R_Node> get_nodes()
    • get_nodes_main

      public ArrayList<R_Node> get_nodes_main()
    • get_all_polygons

      public ArrayList<R_Shape> get_all_polygons()
    • get_polygon_external

      public ArrayList<R_Shape> get_polygon_external()
    • get_polygon_heart

      public ArrayList<R_Shape> get_polygon_heart()
    • get_polygons

      public ArrayList<R_Shape> get_polygons()
    • get_polygon_array_heart

      public vec2[] 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

      public R_Impact set_stroke(int stroke)
      Parameters:
      stroke - to set the stroke color, of line, pixel and polygon
      Returns:
    • set_fill

      public R_Impact set_fill(int fill)
      Parameters:
      fill - to set the fill color polygone
      Returns:
    • set_thickness

      public R_Impact set_thickness(float thickness)
      Parameters:
      thickness - to set strokeWeight
      Returns:
    • set_density

      public R_Impact set_density(float density)
      Parameters:
      density - to set pixel lin density
      Returns:
    • set_pixels_colour

      public R_Impact set_pixels_colour(int... colour)
    • set_stroke

      public R_Impact set_stroke(int x, int y)
      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

      public R_Impact set_fill(int x, int y)
      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

      public R_Impact set_thickness(float x, float y)
      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

      public R_Impact set_density(float x, float y)
      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

      public R_Impact set_line_mode(int mode)
    • set_pixel_evolution

      public void set_pixel_evolution(int type, int level, int step)
      Parameters:
      level - num of pixel after the pixel root
      step - 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 root
      level_max - num max of pixel after the pixel root
      step_min - space min between the pixel
      step_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 apply
      start - thickness minimum for the strokeWeight
      end - 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 apply
      start - stroke for color
      end - 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 apply
      start - fill for color
      end - 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

      public void show_polygons_from(ArrayList<R_Shape> list, int mode)
    • show_polygon

      public void show_polygon(R_Shape shape)
      Parameters:
      shape -
    • show_nodes

      public void show_nodes()