MeshObjectFadeToColor Method |
Changes the color over a given time.
This method blocks the current script until the transition is complete.
Namespace: Demo3D.VisualsAssembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntaxpublic void FadeToColor(
Color color,
double seconds
)
Parameters
- color Color
- The color to transition to.
- seconds Double
- How long the transition should take to complete in seconds.
Example[Auto] void OnBlocked(PhotoEye sender, MeshObject load) {
load.FadeToColor(Color.Red, 2);
}
See Also