File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,9 @@ class Camera {
159159 * // Point the camera at the origin.
160160 * cam.lookAt(0, 0, 0);
161161 *
162+ * // Set the camera.
163+ * setCamera(cam);
164+ *
162165 * describe(
163166 * 'A white cube on a gray background. The text "eyeY: -400" is written in black beneath it.'
164167 * );
@@ -180,7 +183,7 @@ class Camera {
180183 * fill(0);
181184 *
182185 * // Display the value of eyeY, rounded to the nearest integer.
183- * text(`eyeX : ${round(cam.eyeY)}`, 0, 55);
186+ * text(`eyeY : ${round(cam.eyeY)}`, 0, 55);
184187 * }
185188 * </code>
186189 * </div>
@@ -2197,6 +2200,9 @@ class Camera {
21972200 * // Point it at the origin.
21982201 * cam.lookAt(0, 0, 0);
21992202 *
2203+ * // Set the camera.
2204+ * setCamera(cam);
2205+ *
22002206 * describe(
22012207 * 'A white cube drawn against a gray background. The cube appears to move when the user presses certain keys.'
22022208 * );
@@ -2450,6 +2456,9 @@ class Camera {
24502456 * // Copy cam1's configuration.
24512457 * cam2.set(cam1);
24522458 *
2459+ * // Set the camera.
2460+ * setCamera(cam2);
2461+ *
24532462 * describe(
24542463 * 'A white cube drawn against a gray background. The camera slowly moves forward. The camera resets when the user double-clicks.'
24552464 * );
@@ -3458,7 +3467,7 @@ function camera(p5, fn){
34583467 if ( ! ( this . _renderer instanceof RendererGL ) ) {
34593468 throw new Error ( 'linePerspective() must be called in WebGL mode.' ) ;
34603469 }
3461- this . _renderer . linePerspective ( enable ) ;
3470+ return this . _renderer . linePerspective ( enable ) ;
34623471 } ;
34633472
34643473
You can’t perform that action at this time.
0 commit comments