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
4 changes: 2 additions & 2 deletions src/webgl/light.js
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ function light(p5, fn){
* 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 All @@ -488,7 +488,7 @@ function light(p5, fn){
* parameter, `color`, sets the light’s color using a
* <a href="#/p5.Color">p5.Color</a> object or an array of color values. The
* second parameter, `direction`, sets the light’s direction using a
* <a href="#/p5.Color">p5.Color</a> object. For example,
* <a href="#/p5.Vector">p5.Vector</a> object. For example,
* `directionalLight(myColor, lightDir)` creates a light that shines in the
* direction the `lightDir` vector points with the color value of `myColor`.
*
Expand Down