Displaying colored rectangle