Package rope.costume

Class R_Costume

All Implemented Interfaces:
R_Constants, R_Constants_Colour

public class R_Costume extends R_Shape
  • Constructor Details

    • R_Costume

      public R_Costume(processing.core.PApplet pa)
    • R_Costume

      public R_Costume(processing.core.PApplet pa, int type)
    • R_Costume

      public R_Costume(processing.core.PApplet pa, String costume_text)
  • Method Details

    • load_pict

      public void load_pict(String path)
      load image for the costume, only SVG or PNG
      Parameters:
      path -
    • pass_graphic

      public void pass_graphic(processing.core.PGraphics other)
      Overrides:
      pass_graphic in class R_Graphic
      Parameters:
      other - PGraphics rendering art work
    • set_text

      public void set_text(String costume_text)
    • set_name

      public void set_name(String name)
    • set_type

      public void set_type(int type)
    • set_node

      public void set_node(int node)
    • set_mutation

      public void set_mutation(int mutation)
    • set_summit

      public void set_summit(int summits)
    • set_num

      public void set_num(int num)
    • set_align

      public void set_align(int align)
    • set_ratio

      public void set_ratio(float... ratio)
    • set_strength

      public void set_strength(float... strength)
    • set_pair

      public void set_pair(vec2... pair)
    • is_3D

      public void is_3D(boolean is_3D)
    • is_vertex

      public void is_vertex(boolean is_vertex)
    • get_fill

      public int get_fill()
    • get_stroke

      public int get_stroke()
    • get_thickness

      public float get_thickness()
    • get_name

      public String get_name()
    • get_type

      public int get_type()
    • get_node

      public int get_node()
    • get_mutation

      public int get_mutation()
    • get_summit

      public int get_summit()
    • get_num

      public int get_num()
    • get_ratio

      public float[] get_ratio()
    • get_strength

      public float[] get_strength()
    • get_pair

      public vec2[] get_pair()
    • is_3D

      public boolean is_3D()
    • is_vertex

      public boolean is_vertex()
    • fill_is

      public boolean fill_is()
    • stroke_is

      public boolean stroke_is()
    • alpha_is

      public boolean alpha_is()
    • fill_is

      public void fill_is(boolean fill_is)
    • stroke_is

      public void stroke_is(boolean stroke_is)
    • alpha_is

      public void alpha_is(boolean alpha_is)
    • aspect_is

      public void aspect_is(boolean fill_is, boolean stroke_is, boolean alpha_is)
    • init_bool_aspect

      public void init_bool_aspect()
    • aspect

      public void aspect(int fill, int stroke, float thickness)
      Overrides:
      aspect in class R_Graphic
    • aspect

      public void aspect(int fill, int stroke, float thickness, R_Costume costume)
    • aspect

      public void aspect(int fill, int stroke, float thickness, int costume)
    • aspect

      public void aspect(vec fill, vec stroke, float thickness)
    • aspect

      public void aspect(vec fill, vec stroke, float thickness, R_Costume costume)
    • aspect

      public void aspect(vec fill, vec stroke, float thickness, int costume)
    • show

      public void show()
      It the main method, it's here where the choice what must be shown among the various objects in the collection
      Overrides:
      show in class R_Shape
    • show

      public void show(vec3 pos, vec3 size, vec rot)
      It the main method, it's here where the choice what must be shown among the various objects in the collection
      Parameters:
      pos -
      size -
      rot -