使用html5的canvas和javascript创建一个绘图程序的示例代码