Helpfull code about html5 canvas for you.