simple calculation of pixel colors implemented