Added segment detect

Segment detect based on colour under mouse pointer and triggered by
mouse move or click.