init'
This commit is contained in:
13
projects/drawing_curves/cLine.js
Normal file
13
projects/drawing_curves/cLine.js
Normal file
@@ -0,0 +1,13 @@
|
||||
class cLine{
|
||||
constructor(p1, p2){
|
||||
this.p1 = p1;
|
||||
this.p2 = p2;
|
||||
}
|
||||
|
||||
drawLine(){
|
||||
stroke(255, 50);
|
||||
strokeWeight(3);
|
||||
|
||||
line(this.p1.x, this.p1.y, this.p2.x, this.p2.y);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user