added Color alpha support for calculation