Creates an ShinyGadget to control kart in simulation.
1 | kartsim_control(direction, width = 32, height = 32, circuit = 1)
|
direction |
A function |
width |
Width of captured image. |
height |
Height of captured image. |
circuit |
The circuit index, valid values: 1 or 2. #' @examples library(kartsim) if (interactive()) kartsim_control(function(image) "right") |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.