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 );
}
}