## Getting started

The bricks_from_* series of functions creates 3D models of LEGO bricks from a variety of input formats.

## 3D mosaics

Begin with a brickr mosaic from an image. Rather than graphically rendering the mosaic using build_mosaic(), use bricks_from_mosaic(). This function takes two other inputs:

• mosaic_height is the number of bricks stacked at the mosaic’s highest point. The default is 6.
• highest_el specifies if ‘light’ or ‘dark’ color bricks should be the tallest in the model. The default is ‘light’.
demo_img = tempfile()

mosaic %>% build_mosaic()
mosaic %>%
rgl::par3d(userMatrix = rgl::rotate3d(custom_rotation, 0, 0, pi/4 ,1))