15 lines
299 B
JavaScript
15 lines
299 B
JavaScript
class cPoint{
|
|
constructor(x,y) {this.x = x; this.y=y;}
|
|
|
|
drawPoint(){
|
|
strokeWeight(14);
|
|
stroke(255, 200);
|
|
|
|
point(this.x, this.y);
|
|
}
|
|
get getX(){return this.x;}
|
|
get getY(){return this.y;}
|
|
set changeX(_x){this.x = _x;}
|
|
set changeY(_y){this.y = _y;}
|
|
}
|