polylux icon indicating copy to clipboard operation
polylux copied to clipboard

Animate with Cetz

Open kescobo opened this issue 3 months ago • 2 comments

Attempting to deal with a similar use case as #157, though with some additional functionality, could it be possible to use polylux animations with cetz drawings (related discussion on cetz repo)?

I tried

#slide(title: [Packages])[
  #cetz.canvas({
    import cetz.draw: *
    content((0,0), [#only(1)[#image("assets/decision-tree_1.png")]])
    // Draw a circle and place its "west" anchor at the origin.
    circle((0,0), anchor: "west")
  }) 
]

but no dice. I don't understand the internals of either package enough to have a sense of what to do.

kescobo avatar Mar 29 '24 15:03 kescobo