@@ -473,7 +473,7 @@ function light(p5, fn){
473473 * three parameters, `v1`, `v2`, and `v3`, set the light’s color using the
474474 * current <a href="#/p5/colorMode">colorMode()</a>. The last parameter,
475475 * `direction` sets the light’s direction using a
476- * <a href="#/p5.Geometry ">p5.Geometry </a> object. For example,
476+ * <a href="#/p5.Vector ">p5.Vector </a> object. For example,
477477 * `directionalLight(255, 0, 0, lightDir)` creates a red `(255, 0, 0)` light
478478 * that shines in the direction the `lightDir` vector points.
479479 *
@@ -488,7 +488,7 @@ function light(p5, fn){
488488 * parameter, `color`, sets the light’s color using a
489489 * <a href="#/p5.Color">p5.Color</a> object or an array of color values. The
490490 * second parameter, `direction`, sets the light’s direction using a
491- * <a href="#/p5.Color ">p5.Color </a> object. For example,
491+ * <a href="#/p5.Vector ">p5.Vector </a> object. For example,
492492 * `directionalLight(myColor, lightDir)` creates a light that shines in the
493493 * direction the `lightDir` vector points with the color value of `myColor`.
494494 *
0 commit comments