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.
Allow for drawing frames of an animation, e.g.
frame_pixels()
. Perhaps the function starts withclick_pixels()
, stores the output matrix in a list, then reopens the plotting window with that matrix withedit_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.