interface CanvasAnimationAttribute {
    attribute: string;
    color?: boolean;
    delta?: number;
    done?: number;
    from?: number | Color;
    parent: object;
    to: number | Color;
}

Properties

attribute: string

The attribute name being animated

color?: boolean

Is this a color animation that applies to RGB channels

delta?: number

The computed delta between to and from

done?: number

The amount of the total delta which has been animated

from?: number | Color

An initial value of the attribute, otherwise parent[attribute] is used

parent: object

The object within which the attribute is stored

to: number | Color

The destination value of the attribute