Skip to content

Commit 5ee34c3

Browse files
authored
Update light.js
1 parent be8ae0e commit 5ee34c3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/webgl/light.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,20 +72,18 @@ import * as constants from '../core/constants';
7272
* @example
7373
* <div>
7474
* <code>
75-
*
76-
* function setup(){
75+
* function setup() {
7776
* createCanvas(100,100,WEBGL);
7877
* camera(0,-100,300);
7978
* }
80-
* function draw(){
79+
* function draw() {
8180
* background(230);
8281
* ambientMaterial(237,34,93); //Pink Material
8382
* ambientLight(mouseY);
8483
* //As you move the mouse up to down it changes from no ambient light to full ambient light.
8584
* rotateY(millis()/2000);
8685
* box(100);
8786
* }
88-
*
8987
* </code>
9088
* </div>
9189
* @alt

0 commit comments

Comments
 (0)