r-lib / ragg

Graphic Devices Based on AGG
https://ragg.r-lib.org
Other
172 stars 24 forks source link

affine transformation feature #157

Closed trevorld closed 6 months ago

trevorld commented 6 months ago
library("piecepackr")
envir <- game_systems()
dice <-  c("d4", "numeral", "d8", "d10_percentile", "d10", "d12", "d20")
cfg <- paste0("dice_", dice)
grid.piece("die_face", suit = c(1:6, 1), rank = 1:7,
           cfg = cfg, envir = envir, x = 1:7, y = 1,
           default.units = "in", op_scale = 0.5)

image

trevorld commented 6 months ago

A quick Github search suggests that at least {ggblend} and {xdvir} also use this feature.