clipping test
xml parsing and calculating sample color