Try sorting by luminance

Function Luminance(extends c as Color) As double
   'return c.red/255.0*0.30 + c.green/255.0*0.59 + c.blue/255.0*0.11
   ' premultiplied as don't think compiler does
   return c.red * 0.001176470588 + c.green * 0.00231372549 + c.blue *  
0.000431372549
End Function

Note if you want to present the resulting list visually starting from  
a different point than the beginning, put all the values in an array,  
work out the starting index for your desired colour and treat the  
array as a ring buffer.

Thought I'd point out the (carmine) bleeding obvious ;-)

regards

Andy
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to