Skip to content

Commit

Permalink
Merge pull request #7092 from davepagurek/fix/orbitcontrol
Browse files Browse the repository at this point in the history
Fix more <code>s in reference
  • Loading branch information
Qianqianye authored Jun 12, 2024
2 parents ac3715a + 328dddf commit 9b9b5da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/webgl/interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import * as constants from '../core/constants';
* `orbitControl()` within the <a href="#/p5/draw">draw()</a> function allows
* the user to change the camera’s position:
*
* <code>
* ```js
* function draw() {
* background(200);
*
Expand All @@ -25,7 +25,7 @@ import * as constants from '../core/constants';
*
* // Rest of sketch.
* }
* </code>
* ```
*
* Left-clicking and dragging or swipe motion will rotate the camera position
* about the center of the sketch. Right-clicking and dragging or multi-swipe
Expand All @@ -47,7 +47,7 @@ import * as constants from '../core/constants';
* changing the behaviors set with `options`. The object can have the
* following properties:
*
* <code>
* ```js
* let options = {
* // Setting this to false makes mobile interactions smoother by
* // preventing accidental interactions with the page while orbiting.
Expand All @@ -61,7 +61,7 @@ import * as constants from '../core/constants';
* };
*
* orbitControl(1, 1, 1, options);
* </code>
* ```
*
* @method orbitControl
* @for p5
Expand Down

0 comments on commit 9b9b5da

Please sign in to comment.