Material material = new LightFilter.Material();
material.setDiffuseColor(toColorRGB(arr[0], argName+"[1]"));
material.setOpacity(Caster.toFloatValue(arr[1]));
return material;
}
throw new FunctionException(ThreadLocalPageContext.get(), "ImageFilter", 3, "parameters", "use the following format [color,opacity]");
}
throw new FunctionException(ThreadLocalPageContext.get(), "ImageFilter", 3, "parameters", "use the following format [\"color,opacity\"] or [{color='#cc0033',opacity=0.5}]");
}