init'
This commit is contained in:
14
projects/drawing_curves/cPoint.js
Normal file
14
projects/drawing_curves/cPoint.js
Normal file
@@ -0,0 +1,14 @@
|
||||
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;}
|
||||
}
|
||||
Reference in New Issue
Block a user