# NOT RUN {
library(thorn)
thorn("ikeda") # click on the shader to animate it
thorn("thorn") # you can also use the mouse wheel on this one
# four shaders ####
library(htmltools)
hw1 <- thorn("thorn-color", width = "50vw", height = "50vh")
hw2 <- thorn("ikeda", width = "50vw", height = "50vh")
hw3 <- thorn("sweet", width = "50vw", height = "50vh")
hw4 <- thorn("biomorph3", width = "50vw", height = "50vh")
if(interactive()){
browsable(
withTags(
div(
div(
style = "position:absolute; top:0;",
div(hw1, style="position:fixed; left:0;"),
div(hw2, style="position:fixed; left:50vw;")
),
div(
style = "position:absolute; top:50vh;",
div(hw3, style="position:fixed; left:0;"),
div(hw4, style="position:fixed; left:50vw;")
)
)
)
)
}
# }
Run the code above in your browser using DataLab