Package rope.mesh

Class R_Megabloc

All Implemented Interfaces:
R_Constants, R_Constants_Colour

public class R_Megabloc extends R_Graphic
  • Constructor Details

    • R_Megabloc

      public R_Megabloc(processing.core.PApplet pa)
  • Method Details

    • set

      public void set(int width, int height)
    • set_magnetism

      public void set_magnetism(int magnetism)
    • fill

      public void fill(int fill)
      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:
      fill - in value for the stroke color
    • fill

      public boolean fill(int index, int fill)
    • stroke

      public void stroke(int stroke)
      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:
      stroke - in value for the stroke color
    • stroke

      public boolean stroke(int index, int stroke)
    • thickness

      public void thickness(float thickness)
      Description copied from class: R_Graphic
      This method is like strokeWeight of Processing
      Overrides:
      thickness in class R_Graphic
      Parameters:
      thickness - float value for the strokeWeight
    • thickness

      public boolean thickness(int index, float thickness)
    • clear

      public void clear()
    • size

      public int size()
    • add

      public void add(R_Bloc bloc)
    • add

      public void add(R_Bloc[] blocs)
    • get_magnetism

      public int get_magnetism()
    • get_width

      public int get_width()
    • get_height

      public int get_height()
    • get

      public ArrayList<R_Bloc> get()
    • get

      public R_Bloc get(int index)
    • remove

      public boolean remove(int index)
    • show

      public void show()
    • show

      public void show(processing.core.PGraphics other)