Glimmr Canvas Animation

version 1/111030 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Parameterized reel invocation phrases

    To animate (track - an animation track) as a parameterized reel animation targeting (P - a value of kind K valued property) of (targ - an object) at (interv - a number) with a/-- duration of/-- (len - a number) frame/frames, randomized and/or cycling:
        let P1 be P converted to a number;
        now the animation-target of the track is targ;
        if the targ provides the property display status:
            now the display status of the targ is g-active;
        if targ has property number P1:
            now the property-storage of the track is P1;
            let X be the text which relates to P1 by the property-naming relation;
            now the property-name-storage of the track is X;
        if randomized:
            now the track is animation-randomized;
        otherwise:
            now the track is not animation-randomized;
        if cycling:
            now the track is cycling;
        otherwise:
            now the track is not cycling;
        now the cycle-length of the track is the reel-length appropriate to the track and the property-name-storage of the track;
        set up track as a parameterized reel with duration len;
        animate the track at interv[ ms per frame].
            
    To animate (track - an animation track) as a parameterized reel animation targeting (P - a value of kind K valued property) of (targ - an object) at (interv - a number), randomized and/or cycling:
        let P1 be P converted to a number;
        now the animation-target of the track is targ;
        if the targ provides the property display status:
            now the display status of the targ is g-active;
        if targ has property number P1:
            now the property-storage of the track is P1;
            let X be the text which relates to P1 by the property-naming relation;
            now the property-name-storage of the track is X;
        if randomized:
            now the track is animation-randomized;
        otherwise:
            now the track is not animation-randomized;
        if cycling:
            now the track is cycling;
        otherwise:
            now the track is not cycling;
        now the cycle-length of the track is the reel-length appropriate to the track and the property-name-storage of the track;
        set up track as a parameterized reel with duration cycle-length of the track;
        animate the track at interv[ ms per frame].