Skip to content

Commit f9f6840

Browse files
committed
Updated README to add optional parameters
1 parent 39b460a commit f9f6840

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,9 @@ Double-click on a geom and hold `Ctrl` to apply forces (right) and torques (left
4848

4949
Press `ESC` to quit.
5050
Other key bindings are shown in the overlay menu (almost similar to `mujoco-py`).
51+
52+
# Optional Parameters
53+
54+
- `title`: set the title of the window, for example: `viewer = mujoco_viewer.MujocoViewer(model, data, title='My Demo')` (defaults to `mujoco-python-viewer`).
55+
- `width`: set the window width, for example: `viewer = mujoco_viewer.MujocoViewer(model, data, width=300)` (defaults to full screen's width).
56+
- `height`: set the window height, for example: `viewer = mujoco_viewer.MujocoViewer(model, data, height=300)` (defaults to full screen's height).

0 commit comments

Comments
 (0)