Better implementation of starfield by following canvas demo.