Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Point {
- PVector Location = new PVector(0, 0);
- float Xpos;
- float Ypos;
- int Pointcol = 0;
- Point(float x, float y) {
- Xpos = x;
- Ypos = y;
- Location = new PVector(Xpos, Ypos);
- if (Xpos<=150) {
- Pointcol = 255;
- }
- }
- void display() {
- stroke(Pointcol);
- point(Location.x, Location.y);
- }
- void textualise() {
- fill(0);
- textSize(10);
- text((Location.x)-384, Location.x+50, Location.y);
- text((Location.y)-512, Location.x, Location.y);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement