use_icon_definition: Create an icon definition on an atlas image

View source: R/icons.R

use_icon_definitionR Documentation

Create an icon definition on an atlas image

Description

Create an icon definition on an atlas image

Usage

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


deckgl documentation built on March 7, 2023, 5:37 p.m.