Building an LED matrix to plot mathematical curves
You can refer the open source hardware project Facecandy. Try modifying for your needs.Visit this link 
https://github.com/scanlime/fadecandy



edit:  the picture makes this answer less link-only