yihui / animation

A gallery of animations in statistics and utilities to create animations
https://yihui.org/animation/
206 stars 60 forks source link

wish: type option for devices #112

Open ugroempi opened 6 years ago

ugroempi commented 6 years ago

There is a demo for using CairoPNG. It would also be nice to be able to use the type="cairo" option with the devices instead (exists at least for bmp, png, jpeg and tiff).

Best, Ulrike

yulijia commented 6 years ago

Where is the demo?

ugroempi commented 6 years ago

It's demo(use_Cairo) in the package.

trevorld commented 3 years ago

Once #135 is merged you should be able to specify a custom 'ani.dev' function that uses the type = "cairo" option i.e. for the "png" device one may do:

ani.dev = function(filename, width, height, res = NA) grDevices::png(filename, width, height, res = res, type = "cairo")