Package rope.pixo

Class R_Pix

All Implemented Interfaces:
R_Constants, R_Constants_Colour
Direct Known Subclasses:
R_Pixo

public class R_Pix extends Rope
  • Constructor Details

    • R_Pix

      public R_Pix()
    • R_Pix

      public R_Pix(int x, int y, int width, int height)
  • Method Details

    • set_entry

      public void set_entry(int entry)
      Use to define the entry point of the pixel in the pixel array
      Parameters:
      entry -
    • set_entry

      public void set_entry(int x, int y, int width, int height)
      Use to define the entry point of the pixel from x, y coordinate in the pixel array
      Parameters:
      x -
      y -
      width -
      height -
    • get_entry

      public int get_entry()
      Returns:
    • id

      public void id(int id)
      Parameters:
      id -
    • id

      public int id()
    • pos

      public void pos(float x, float y)
      Parameters:
      x -
      y -
    • pos

      public void pos(float x, float y, float z)
      Parameters:
      x -
      y -
      z -
    • pos

      public vec3 pos()
      Returns:
      a copy of the position in x, y and z
    • x

      public float x()
    • y

      public float y()
    • z

      public float z()
    • w

      public float w()
    • x

      public void x(float x)
      Parameters:
      x -
    • y

      public void y(float y)
      Parameters:
      y -
    • z

      public void z(float z)
      Parameters:
      z -
    • w

      public void w(float w)
      Parameters:
      w -
    • fill

      public void fill(int fill)
      Parameters:
      fill - set colour of the pixel
    • fill

      public int fill()
      Returns:
      colour of the pixel
    • copy

      public R_Pix copy()
      Returns:
      copy of herself