calculate brightness of selected pixel to define scope color