fabric_drawing {fabricerin} | R Documentation |
Create a canvas element for drawing
Description
Create a canvas element for drawing
Usage
fabric_drawing(
cid,
cwidth = 800,
cheight = 600,
cfill = "#FFFFFF",
drawingWidth = 2,
gumSize = 10
)
Arguments
cid |
the id of the canvas element |
cwidth |
the width of the canvas element |
cheight |
the height of the canvas element |
cfill |
the color of the canvas element. Default to #FFFFFF (white) |
drawingWidth |
the width of the drawing output. Default to 2 |
gumSize |
specify the size of the gum. Defaults to 10 |
Value
an HTML canvas element
Examples
if (interactive()) {
ui <- fluidPage(
h1("Draw some stuff here"),
fabric_drawing(cid = "canvas1")
)
server <- function(input, output) {}
shinyApp(ui = ui, server = server)
}
[Package fabricerin version 0.1.2 Index]