From 69e30bb824d089d5e4a89913e46851912afbce3d Mon Sep 17 00:00:00 2001 From: Zhao Liang Date: Fri, 23 Sep 2022 17:05:25 +0800 Subject: [PATCH] Update gui_system.md --- docs/lang/articles/visualization/gui_system.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/lang/articles/visualization/gui_system.md b/docs/lang/articles/visualization/gui_system.md index 8369bd72d6346..e2f39d6c11fea 100644 --- a/docs/lang/articles/visualization/gui_system.md +++ b/docs/lang/articles/visualization/gui_system.md @@ -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`.