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