Package rope.svg

Class R_SVG

All Implemented Interfaces:
R_Constants, R_Constants_Colour

public class R_SVG extends R_Graphic
  • Constructor Details

    • R_SVG

      public R_SVG(processing.core.PApplet pa, String path, String folder_brick_name)
      CONSTRUCTOR
    • R_SVG

      public R_SVG(processing.core.PApplet pa, String path)
  • Method Details

    • build

      public void build(String path_import, String path_brick)
      PUBLIC METHOD
    • build

      public void build()
    • get_name

      public String get_name()
    • draw

      public void draw()
      METHOD to draw all the SVG
    • draw

      public void draw(int ID)
    • draw

      public void draw(String layer_or_group_name)
    • pos

      public void pos(float x)
      POS
    • pos

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

      public void pos(float x, float y, float z)
    • pos

      public void pos(vec pos_raw)
    • scaling

      public void scaling(float x)
      SCALE
    • scaling

      public void scaling(float x, float y)
    • scaling

      public void scaling(float x, float y, float z)
    • scaling

      public void scaling(vec scale_raw)
    • scaling

      public void scaling(boolean translation, float x)
    • scaling

      public void scaling(boolean translation, float x, float y)
    • scaling

      public void scaling(boolean translation, float x, float y, float z)
    • scaling

      public void scaling(boolean translation, vec scale_raw)
    • jitter

      public void jitter(float x)
      JITEER
    • jitter

      public void jitter(int x, int y)
    • jitter

      public void jitter(int x, int y, int z)
    • jitter

      public void jitter(vec jitter_raw)
    • start

      public void start()
    • stop

      public void stop()
    • opacity

      public void opacity(float a_fill, float a_stroke)
      opacity
    • opacityStroke

      public void opacityStroke(float a)
    • opacityFill

      public void opacityFill(float a)
    • noFill

      public void noFill()
      fill
      Overrides:
      noFill in class R_Graphic
    • fill

      public void fill(int c)
      Description copied from class: R_Graphic
      This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it
      Overrides:
      fill in class R_Graphic
      Parameters:
      c - in value for the stroke color
    • fill

      public void fill(float value)
      Overrides:
      fill in class R_Graphic
    • fill

      public void fill(float value, float alpha)
      Overrides:
      fill in class R_Graphic
    • fill

      public void fill(float x, float y, float z)
      Overrides:
      fill in class R_Graphic
    • fill

      public void fill(float x, float y, float z, float a)
      Overrides:
      fill in class R_Graphic
    • fill

      public void fill(vec v)
    • noStroke

      public void noStroke()
      stroke
      Overrides:
      noStroke in class R_Graphic
    • stroke

      public void stroke(int c)
      Description copied from class: R_Graphic
      This Processing clone method, add check if any PGraphics is active, and if it's a case work on it
      Overrides:
      stroke in class R_Graphic
      Parameters:
      c - in value for the stroke color
    • stroke

      public void stroke(float value)
      Overrides:
      stroke in class R_Graphic
    • stroke

      public void stroke(float value, float a)
      Overrides:
      stroke in class R_Graphic
    • stroke

      public void stroke(float x, float y, float z)
      Overrides:
      stroke in class R_Graphic
    • stroke

      public void stroke(float x, float y, float z, float a)
      Overrides:
      stroke in class R_Graphic
    • stroke

      public void stroke(vec v)
    • strokeWeight

      public void strokeWeight(float x)
      strokeWeight
      Overrides:
      strokeWeight in class R_Graphic
      Parameters:
      x - float value for the strokeWeight
    • original_style

      public void original_style(boolean fill, boolean stroke)
      original style
    • original_fill

      public void original_fill(boolean fill)
    • original_stroke

      public void original_stroke(boolean stroke)
    • fill_factor

      public void fill_factor(float x, float y, float z, float a)
      fill factor use value from '0' to '1' is better !
    • stroke_factor

      public void stroke_factor(float x, float y, float z, float a)
    • fill_factor

      public void fill_factor(vec4 f)
    • stroke_factor

      public void stroke_factor(vec4 f)
    • add_def

      public void add_def(int target, vec3... value)
      PERMANENTE CHANGE This change modify the original points
    • num_brick

      public int num_brick()
      return quantity of brick
    • list_svg_vec

      public vec3[] list_svg_vec(int target)
      list
    • folder_brick_name

      public String folder_brick_name()
      method to return different definition about the brick
    • brick_name_list

      public String[] brick_name_list()
    • brick_name

      public String brick_name(int target)
    • family_brick

      public String[] family_brick()
    • family_brick

      public String family_brick(int target)
    • kind_brick

      public String[] kind_brick()
    • kind_brick

      public String kind_brick(int target)
    • width

      public float width()
      Canvas SVG
    • height

      public float height()
    • canvas

      public vec2 canvas()
    • width_brick

      public float width_brick(int target)
      Canvas brick SVG
    • height_brick

      public float height_brick(int target)
    • canvas_brick

      public vec2 canvas_brick(int target)
    • mode

      public void mode(int mode)
      SETTING
    • reset

      public void reset()
      DRAW
    • name_brick_SVG

      public String[] name_brick_SVG(ArrayList<R_Brick_SVG> list_brick)
      INFO
    • kind_brick_SVG

      public String[] kind_brick_SVG(ArrayList<R_Brick_SVG> list_brick)
    • family_brick_SVG

      public String[] family_brick_SVG(ArrayList<R_Brick_SVG> list_brick)