Files
havox/projects/drawing_curves/cPoint.js
2026-03-16 18:03:17 +00:00

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;}
}