Skip to content

Commit

Permalink
Update gui_system.md
Browse files Browse the repository at this point in the history
  • Loading branch information
neozhaoliang authored Sep 23, 2022
1 parent 2ded7f6 commit 69e30bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/lang/articles/visualization/gui_system.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ gui = ti.GUI(res, title, fast_gui=True)

For this mode to work, ensure that the data passed into `gui.set_image()` is in a display-compatible format. In other words, If it is a Taichi field, ensure that it is one of the following:

- A scalar field `ti.field(dtype, shape) `
- a vector field `ti.field(3, dtype, shape)` compatible with RGB format
- a vector field `ti.field(3, dtype, shape)` compatible with RGB format.
- a vector field `ti.field(4, dtype, shape)` compatible with RGBA format.

Note that `dtype` must be `ti.f32`, `ti.f64`, or `ti.u8`.
Expand Down

0 comments on commit 69e30bb

Please sign in to comment.