Hi milad,

take a look at this java applet may it waht you want [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=415.0]Dispersion of light with prism[/url]  ;)