chickadee » hypergiant » make-animation

make-animation TYPE FRAMES FRAME-RATEprocedure

An animation is an opaque type that describes an animation sequence, as given in a sprite sheet. The TYPE may be one of #:once or #:loop, which respectively define animations that are only ever played once, or that loop. FRAMES is a list of integers, that define subsequent frames in the given animation, as ordered in the sprite sheet (or sheets) that is to be associated with the animation (index on the sprite sheet from left to right, top to bottom). FRAME-RATE is the desired speed that the animation should be played at, given in seconds between frames.

For a convenient way of defining multiple animations, see make-animation-alist.