RUI Studio Help

Toggle switch

Bind a bool, click to flip; optional transition frames.

Off-frame and on-frame images are required, plus a bool variable, or the switch is not exported. Transition frames 2–4 are optional.

  • Enable Transition animation and pack at least one transition frame, or the device will not play the middle frames.
  • Rotation 0/90/180/270. Vertical placement swaps width and height.
  • “Preview on state” on the canvas shows the transition. Do not confuse it with a full-page effect-demo refresh.

Duration is milliseconds on the panel. Export subtracts JPG/BMP/PNG draw time, so the device may feel slightly different from the preview.