Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
"Fix typo in directionalLight reference (main branch)" - #7743
  • Loading branch information
LalitNarayanYadav authored Apr 25, 2025
commit 72882324512339450c128fa03b4c882f95d38c0e
2 changes: 1 addition & 1 deletion src/webgl/light.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ p5.prototype.specularColor = function (v1, v2, v3) {
* three parameters, `v1`, `v2`, and `v3`, set the light’s color using the
* current <a href="#/p5/colorMode">colorMode()</a>. The last parameter,
* `direction` sets the light’s direction using a
* <a href="#/p5.Geometry">p5.Geometry</a> object. For example,
* <a href="#/p5.Vector">p5.Vector</a> object. For example,
* `directionalLight(255, 0, 0, lightDir)` creates a red `(255, 0, 0)` light
* that shines in the direction the `lightDir` vector points.
*
Expand Down