Skip to content

Commit 9cd8444

Browse files
authored
Merge pull request #7778 from LalitNarayanYadav/patch-4
Fix typo in directionalLight reference (dev-2.0 branch) #7743
2 parents 9b2743c + 746c1ad commit 9cd8444

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webgl/light.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)