纳金网

标题: Color To (Animation Behavior) [打印本页]

作者: Asen    时间: 2011-10-15 10:38
标题: Color To (Animation Behavior)






               Color To (Animation Behavior)
              









           Summary
         

           Animates the color of the Text or Material to a set value over time.
         





               Category
              


              Latest Behaviors
            




               Author
              


              Gavin Kistner
            




               Difficulty
              


              (Reference)
            




               Time to Complete
              


              5 Minutes
            








           Downloads
         


            Click Here
           
           to download the associated files.
         


            (This document covers version 2.0.4 of the 'Color To' behavior, current as of 2005-Apr-20)
           

            Description
           


             The
            
              Pulse?
            
             option causes the color to immediately animate back to the original color once it has reached the end value.
            
            The
            
             Revert?
            
            option causes the color to animate back to the original color once the ‘opposite’ event occurs. For example, if the
            
             Start Change (Forward)
            
            action is invoked as the result of an ‘onMouseDown’ event on someObject, the
            
             Start Change (Reverse)
            
            action will automatically be set to***n ‘onMouseUp’ for the same object. The following event pairs are recognized:
            
             onMouseOver  <->  onMouseOut
  onGroupedMouseOver  <->  onGroupedMouseOut
         onMouseDown  <->  onMouseUp
   onMiddleMouseDown  <->  onMiddleMouseUp
           onKeyDown  <->  onKeyUp
        onMouseClick  <->  onMouseClick
     onMouseDblClick  <->  onMouseDblClick
            

             Events which are their own opposite (e.g. onMouseClick) will reverse the next time the event occurs. Events which have no opposite (e.g. onLoadError) will ignore the
            
              Revert?
            
             option.
            

             If
            
              Pulse?
            
             is checked, the
            
              Revert?
            
             option is ignored.
            


            Basic Properties
           



              Destination Color
            

              The color to end at.
            

              Transition Time (sec)
            

              Amount of time in seconds that it will take for the end color to be reached.
            



            Advanced Properties
           



              Change When
            

              When should the parent start changing color?
            

              Trigger Key
            

              If 'Change When' is 'Key Down', the name of the key to watch for.
            

              Revert?
            

              Revert changes when opposite event occurs?
            

              Pulse?
            

              Return to original value when done? (Only if 'Revert?' is off.)
            



            Actions
           



              Start Change (Forward)
            

              Begin/resume changing the color towards the destination.
            

              Start Change (Reverse)
            

              Begin/resume reverting the color back to the original.
            

              Stop Color Change
            

              Stop (pause) the color change.
            

              Toggle Playback
            

              If the animation is***nning, stop it; otherwise, start it (in the direction last headed).
            



            Events
           



              Start
            

              Fires when the 'Start Change (Forward)' action is invoked.
            

              Reverse
            

              Fires when the 'Start Change (Reverse)' action is invoked.
            

              Stop
            

              Fires when the 'Stop Color Change' action is invoked, or when the change finishes.
            

              Pulse
            

              Fires when the color reverses 'direction' (if 'Pulse?' is chosen).
            



            Demonstration
           




              View Demonstration Project
            




              Download Project File
            




作者: 奇    时间: 2012-3-31 23:25
顶!学习了!阅!

作者: 菜刀吻电线    时间: 2012-8-12 00:35
已阵亡的 蝶 随 风 舞 说过  偶尔按一下 CTRL A 会发现 世界还有另一面

作者: 奇    时间: 2012-8-15 23:42
都闪开,介个帖子,偶来顶

作者: tc    时间: 2012-8-24 00:13
不错哦,谢谢楼主

作者: 奇    时间: 2012-11-30 23:20
“再次路过……”我造一个-----特别路过





欢迎光临 纳金网 (http://go.narkii.com/club/) Powered by Discuz! X2.5