Description Usage Arguments Value See Also Examples
Create a chart of brick colors and sizes used in a brick mosaic or model.
1 | build_pieces(brick_obj)
|
brick_obj |
brickr mosaic or 3D model object. |
Plot object of required bricks by color and size.
Other Resources:
build_colors()
,
build_instructions()
,
build_pieces_table()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # Import a jpeg or png
demo_file <- system.file("extdata", "demo_img.jpg",
package = "brickr", mustWork = TRUE)
demo_image <- jpeg::readJPEG(demo_file)
#Create a mosaic oject
mosaic <- demo_image %>%
image_to_mosaic(img_size = 24)
#Rather than drawing the mosaic, use build_pieces_table() to draw piece chart
mosaic %>%
build_pieces()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.