# NOT RUN {
#This creates a 1x3 red brick.
demo_excel <- tibble::tribble(
~Level, ~"1", ~"2", ~"3", ~user_color, ~LEGO_color,
"A", 1, 1, 1, 1, "Bright red"
)
demo_excel %>%
bricks_from_excel() %>%
build_bricks()
rgl::clear3d()
#To change the pieces, import a second table in the same shape, but with piece IDs.
demo_pieces <- tibble::tribble(
~Level, ~"1", ~"2", ~"3",
"A", "w4", "c1", "w2"
)
demo_excel %>%
bricks_from_excel(piece_table = demo_pieces) %>%
build_bricks()
rgl::clear3d()
# }
Run the code above in your browser using DataLab