Axiom.Core.ColorEx.Saturate C# (CSharp) Method

Saturate() public method

Clamps color value to the range [0, 1]
public Saturate ( ) : void
return void
		public void Saturate()
		{
			r = Utility.Clamp( r, 1.0f, 0.0f );
			g = Utility.Clamp( g, 1.0f, 0.0f );
			b = Utility.Clamp( b, 1.0f, 0.0f );
			a = Utility.Clamp( a, 1.0f, 0.0f );
		}