ImageScript v4.0.0
    Preparing search index...

    InterfaceAnimationCanvasOptions

    Options of Animation's constructor: the canvas size and the loop count

    interface AnimationCanvasOptions {
        height?: number;
        loopCount?: number;
        width?: number;
    }

    Hierarchy (View Summary)

    Index
    height?: number

    The canvas height in pixels, like width

    The frames' bottom edge (the largest yOffset + height)

    loopCount?: number

    How many times to repeat the animation: Infinity loops forever, 0 plays once, 1 plays twice, ... Anything else throws: a RangeError unless it is an integer from 0 or Infinity, a TypeError unless it is a number

    Infinity

    width?: number

    The canvas width in pixels (a fraction is truncated, like the size of an image): frames (or the parts of them) outside the canvas aren't encoded

    The frames' right edge (the largest xOffset + width), following the frames until a canvas size is set