Click or drag to resize

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: 19.00.00
Syntax
C#
public 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
C#
[Auto] void OnBlocked(PhotoEye sender, MeshObject load) {
    load.FadeToColor(Color.Red, 2);
}
See Also