i have pet chickens, i make drawings, and i write software of questionable usefulness. that's pretty much the extent of my personality. ask me about array programming, decker, or anything, really.


lokeloski
@lokeloski asked:

I made a button to export images and was using a simple code:

on click do
f:card.image.copy[]
write[f]
end

The result used to be a .gif that kept the moving patterns playing, I could see the multiple frames exported in the macOS Preview.
However, it suddenly stopped working and now only exports the first frame, resulting in a static image. Any idea what might have caused this?

Decker has four animated pattern slots (index 28, 29, 30, and 31, at the bottom of the palette toolbar in 1-bit mode) which can each be configured to reference sequences of 1-8 other non-animated patterns.

If you export an image which contains animated patterns, it will save an animated GIF with a number of frames determined by the least common multiple of the lengths of the animated pattern sequences, to allow them all to loop properly.

If you export an image which doesn't contain animated patterns, you'll get a GIF with a single frame.

write[] needs an explicit series of "flat" frames to produce animated GIFs.


You must log in to comment.