Click or drag to resize

TweenFactoryTween Method (Object, Color, Color, Single, FuncSingle, Single, ActionITweenColor, ActionITweenColor)

Start and add a Color tween

Namespace:  DigitalRuby.WeatherMaker
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public static ColorTween Tween(
	Object key,
	Color start,
	Color end,
	float duration,
	Func<float, float> scaleFunc,
	Action<ITween<Color>> progress,
	Action<ITween<Color>> completion = null
)

Parameters

key
Type: SystemObject
Key
start
Type: Color
Start value
end
Type: Color
End value
duration
Type: SystemSingle
Duration in seconds
scaleFunc
Type: SystemFuncSingle, Single
Scale function
progress
Type: SystemActionITweenColor
Progress handler
completion (Optional)
Type: SystemActionITweenColor
Completion handler

Return Value

Type: ColorTween
ColorTween
See Also