matt-dray / pixeltrix

:space_invader::computer_mouse: R package: make pixel art interactively in a plot window, get a matrix, make a gif
Other
21 stars 0 forks source link

Allow for simple animations #13

Closed matt-dray closed 1 year ago

matt-dray commented 1 year ago

Allow for drawing frames of an animation, e.g. frame_pixels(). Perhaps the function starts with click_pixels(), stores the output matrix in a list, then reopens the plotting window with that matrix with edit_pixels(), and so on. Might have to pre-specify the number of frames, or ask the user if they want to continue.

The output list has an element per frame of the animation. You should be able to pass this to animate_pixels() to produce a little gif.