canvas画布涂鸦特效代码下载
1. 引入CSS
<link rel="stylesheet" href="css/css.css" />
2. 引入JS
<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script><script src="js/index.js" type="text/javascript" charset="utf-8"></script>
3. HTML代码
<div class="wrapper"> <canvas class="cavs" width="700" height="400"></canvas> <ul class="btn-list"> <li><input type="color" id='colorChange'></li> <li><input type="button" id='cleanBoard' value="清屏"></li> <li><input type="button" id='eraser' value="橡皮"></li> <li><input type="button" id='rescind' value="撤销"></li> <li><input type="range" id='lineRuler' value="线条" min="1" max="20"></li> </ul> </div>