getting color scheme from user selected rectangle
merged