Description Usage Arguments Examples
Adds a grid to show the parts of the image to be replaced by tiles
1  | collage_grid(img, size = 10, grid_col = "white")
 | 
img | 
 image  | 
size | 
 pixel size  | 
grid_col | 
 color to use for the grid  | 
1 2 3 4 5 6 7 8 9 10 11 12 13  | ## Not run: 
  img <- image_read( sample_image() )
  # a grid of 10x10 tiles
  collage_grid( img, size = 10, grid_col = "white" )
  # a grid with 10 lines
  collage_grid( img, size = lines_cut(img, 10) )
  # a grid with 10 columns
  collage_grid( img, size = columns_cut(img, 10) )
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.