- 最后登录
- 2024-6-3
- 注册时间
- 2009-10-16
- 阅读权限
- 100
- 积分
- 18803
  
- 纳金币
- 17488
- 精华
- 1
|
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
|
|