Skip to content

Instantly share code, notes, and snippets.

@tmshv
Created May 10, 2016 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmshv/ebbbe8c8f8b5b0c5af49dc4a2f0d3aae to your computer and use it in GitHub Desktop.
Save tmshv/ebbbe8c8f8b5b0c5af49dc4a2f0d3aae to your computer and use it in GitHub Desktop.
Rect in Processing
class Rectangle {
PVector lt;
float width;
float height;
Rectangle(PVector lt, float width, float height){
this.lt = lt;
this.width = width;
this.height = height;
}
void draw(){
//rect();
}
}
void setup(){
Rectangle rect = new Rectangle(new PVector(), 10, 10);
rect.draw();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment