File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -822,7 +822,7 @@ function curves(p5, fn){
822822 * `splineTangent()` calculates coordinates along a tangent line using four
823823 * points p0, p1, p2, p3. It expects points in the same order as the
824824 * <a href="#/p5/spline">spline()</a> function. `splineTangent()` works one
825- * axis at a time.Passing the points' x-coordinates returns the x-component of
825+ * axis at a time. Passing the points' x-coordinates returns the x-component of
826826 * the tangent vector; passing the points' y-coordinates returns the y-component.
827827 * The first parameter, `a`, is the coordinate of point p0.
828828 *
@@ -847,7 +847,7 @@ function curves(p5, fn){
847847 * <div>
848848 * <code>
849849 * function setup() {
850- * createCanvas(220, 160 );
850+ * createCanvas(120, 120 );
851851 * describe('A black spline on a gray canvas. A red dot moves along the curve on its own. A short line shows the tangent direction at the dot.');
852852 * }
853853 *
You can’t perform that action at this time.
0 commit comments