File tree 1 file changed +15
-10
lines changed
1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -861,25 +861,30 @@ p5.prototype.spotLight = function(
861
861
* createCanvas(100, 100, WEBGL);
862
862
* }
863
863
* function draw() {
864
- * background(0 );
864
+ * background(200 );
865
865
* noStroke();
866
866
*
867
- * ambientLight(150 , 0, 0);
868
- * translate(-25 , 0, 0);
869
- * ambientMaterial(250 );
870
- * sphere(20 );
867
+ * ambientLight(255 , 0, 0);
868
+ * translate(-30 , 0, 0);
869
+ * ambientMaterial(255 );
870
+ * sphere(13 );
871
871
*
872
872
* noLights();
873
- * ambientLight(0, 150, 0);
874
- * translate(50, 0, 0);
875
- * ambientMaterial(250);
876
- * sphere(20);
873
+ * translate(30, 0, 0);
874
+ * ambientMaterial(255);
875
+ * sphere(13);
876
+ *
877
+ * ambientLight(0, 255, 0);
878
+ * translate(30, 0, 0);
879
+ * ambientMaterial(255);
880
+ * sphere(13);
877
881
* }
878
882
* </code>
879
883
* </div>
880
884
*
881
885
* @alt
882
- * Two spheres showing different colors
886
+ * Three white spheres. Each appears as a different
887
+ * color due to lighting.
883
888
*/
884
889
p5 . prototype . noLights = function ( ) {
885
890
this . _assert3d ( 'noLights' ) ;
You can’t perform that action at this time.
0 commit comments