BBGamelib.CCTintTo.update C# (CSharp) Method

update() public method

public update ( float t ) : void
t float
return void
		public override void update (float t)
		{
			CCRGBAProtocol tn = (CCRGBAProtocol)_target;
			tn.color = new Color32 ((byte)Mathf.RoundToInt(_from.r + (_to.r - _from.r) * t),
			                        (byte)Mathf.RoundToInt(_from.g + (_to.g - _from.g) * t),
			                        (byte)Mathf.RoundToInt(_from.b + (_to.b - _from.b) * t), 1);
		}