diff --git a/src/webgl/light.js b/src/webgl/light.js index e16c789d16..15de085dc6 100644 --- a/src/webgl/light.js +++ b/src/webgl/light.js @@ -861,25 +861,30 @@ p5.prototype.spotLight = function( * createCanvas(100, 100, WEBGL); * } * function draw() { - * background(0); + * background(200); * noStroke(); * - * ambientLight(150, 0, 0); - * translate(-25, 0, 0); - * ambientMaterial(250); - * sphere(20); + * ambientLight(255, 0, 0); + * translate(-30, 0, 0); + * ambientMaterial(255); + * sphere(13); * * noLights(); - * ambientLight(0, 150, 0); - * translate(50, 0, 0); - * ambientMaterial(250); - * sphere(20); + * translate(30, 0, 0); + * ambientMaterial(255); + * sphere(13); + * + * ambientLight(0, 255, 0); + * translate(30, 0, 0); + * ambientMaterial(255); + * sphere(13); * } * * * * @alt - * Two spheres showing different colors + * Three white spheres. Each appears as a different + * color due to lighting. */ p5.prototype.noLights = function() { this._assert3d('noLights');