1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-29 19:20:39 +02:00

code comments

This commit is contained in:
Pomax
2020-09-19 14:16:00 -07:00
parent 7c530fee56
commit ad872f83c5
39 changed files with 306 additions and 117 deletions

View File

@@ -10,8 +10,10 @@ setup() {
draw() {
clear();
// draw the curve's polygon, but not the curve itself.
curve.drawSkeleton();
// sample the curve at a few points, and form a polygon with those points
noFill();
start();
for(let i=0, e=this.steps; i<=e; i++) {
@@ -20,6 +22,7 @@ draw() {
}
end();
// and for completelion, draw the curve's control points
curve.drawPoints();
setFill(`black`);