Skip to content

Commit 2f334df

Browse files
committed
Fixed a typo and normalized example syntax slightly
1 parent de8fb15 commit 2f334df

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,12 +332,12 @@ For 3D graphs, you'll often want to move the camera around. For simplicity, the
332332
By default the camera is positioned to face the X/Y plane at a distance of 3.5 units, which gives the default viewport a slight margin.
333333

334334
```javascript
335-
.camera{{
335+
.camera({
336336
orbit: 3.5, // Distance from the center
337337
phi: τ/4, // Longitude angle in XZ, in radians, relative to 0 degrees on the X axis
338338
theta: 0, // Latitude angle towards Y, in radians, relative to the XZ plane.
339339
lookAt: [0, 0, 0], // Point of focus in space
340-
}};
340+
})
341341
```
342342

343343
Primitives
@@ -356,7 +356,7 @@ Axis
356356
tickScale: 10, // Integer denoting the base for recursive division. 2 = binary, 10 = decimal
357357
arrow: true, // Whether to include an arrow on the axis
358358
size: .07, // Size of the arrow relative to the stage
359-
});
359+
})
360360
```
361361

362362
Bezier Curve
@@ -417,7 +417,7 @@ Grid
417417
ticks: [ 10, 10 ], // Approximate number of ticks on axis (ticks are spaced at sensible units).
418418
tickUnit: [ 1, 1], // Base unit for ticks on each axis. Set to π e.g. to space ticks at multiples of π.
419419
tickScale: [ 10, 10 ], // Integer denoting the base for recursive division on each axis. 2 = binary, 10 = decimal
420-
});
420+
})
421421
```
422422

423423
Surface

0 commit comments

Comments
 (0)