Create an icon definition on an atlas image

use_icon_definition(
  x = 0,
  y = 0,
  width = 128,
  height = 128,
  anchor_x = (width/2),
  anchor_y = 128,
  mask = TRUE
)

Arguments

x

The x position of the icon on the atlas image.

y

The y position of the icon on the atlas image.

width

The width of the icon on the atlas image.

height

The height of the icon on the atlas image.

anchor_x

The horizontal position of the icon anchor.

anchor_y

the vertical position of the icon anchor.

mask

whether icon is treated as a transparency mask, if TRUE, user defined color is applied, if FALSE, pixel color from the image is applied