inst/test_files/test_sketch.R

#| load_library("p5")
#| load_script("test_sketch_2.R")

setup <- function() {
    createCanvas(300, 300)
}

draw <- function() {
    circle(150, 150, 30)
    noLoop()
}

Try the sketch package in your browser

Any scripts or data that you put into this service are public.

sketch documentation built on Oct. 23, 2022, 5:07 p.m.