Axiom.Graphics.CompositorScriptLoader.ParseClearColor C# (CSharp) Method

ParseClearColor() static private method

static private ParseClearColor ( Axiom.Graphics.CompositorScriptContext context, string args ) : ColorEx
context Axiom.Graphics.CompositorScriptContext
args string
return Axiom.Core.ColorEx
		static ColorEx ParseClearColor( CompositorScriptContext context, string[] args )
		{
			if ( args.Length != 4 )
			{
				LogError( context, "A color value must consist of 4 floating point numbers" );
				return ColorEx.Black;
			}
			else
			{
				float r = ParseFloat( context, args[ 0 ] );
				float g = ParseFloat( context, args[ 0 ] );
				float b = ParseFloat( context, args[ 0 ] );
				float a = ParseFloat( context, args[ 0 ] );

				return new ColorEx( a, r, g, b );
			}
		}