exercise 15: varying color triangle