Glimmr Canvas Animation

version 1/111030 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Fader overlay display rule

    Last element display rule for a fader overlay (called the present fader) (this is the default fader display rule):
        repeat with track running through animation-active fade animation tracks:
            if the target-fader of the track is the present fader:
                let fade-reel be the fader-reel of the target-fader of the track;
                let anim-target be the animation-target of the track;
                let cyclic-frame be current-frame of the track - (cycles completed of the track * cycle-length of the track);
                let next-fade be the easing of the track applied to the cyclic-frame and the cycle-length of the track and the start-x of the track and the delta-x of the track;
                if next-fade > the number of entries of the fade-reel, now next-fade is the number of entries of the fade-reel;
                if next-fade < 1, now next-fade is 1;
                repeat with win running through g-present graphics g-windows:
                    if the anim-target is win:[target is a window]
                        update fade-reel to next-fade for win;
                        #if utilizing animation debugging;
                        say "[>console][CA][Present fader] (frame [current-frame of the track]): Fader overlay for [win] (full window) updated using fade-reel entry [next-fade], [entry next-fade of the fade-reel].[<]";
                        #end if;
                    otherwise if the anim-target is the associated canvas of win:[target is a canvas]
                        update fade-reel to next-fade for anim-target in win;
                        #if utilizing animation debugging;
                        say "[>console][CA][Present fader] (frame [current-frame of the track]): Fader overlay for [anim-target] ([win]) updated using fade-reel entry [next-fade], [entry next-fade of the fade-reel].[<]";
                        #end if;
                    otherwise if the associated canvas of win is the associated canvas of the anim-target:[target is a g-element]
                        update fade-reel to next-fade for anim-target in win;
                        #if utilizing animation debugging;
                        say "[>console][CA][Present fader] (frame [current-frame of the track]): Fader overlay for [anim-target] ([associated canvas of win], [win]) updated using fade-reel entry [next-fade], [entry next-fade of the fade-reel].[<]";
                        #end if.