【技术文章博客】火山PC画板使用详解
一、布局如下图
https://www.lkuaiy.com/image/editor/15993629227092.png
https://www.lkuaiy.com/image/editor/15993629296980.png
二、创建变量
https://www.lkuaiy.com/image/editor/15993629353878.png
三、初始化画笔
https://www.lkuaiy.com/image/editor/15993629441218.png
四、各功能实现
①添加单击事件
按钮上右键添加事件
https://www.lkuaiy.com/image/editor/15993629509950.png
https://www.lkuaiy.com/image/editor/15993629567525.png
②画直线
https://www.lkuaiy.com/image/editor/15993629656002.png
③画椭圆
https://www.lkuaiy.com/image/editor/15993629711496.png
④画弧线
https://www.lkuaiy.com/image/editor/15993629783265.png
⑤画饼
https://www.lkuaiy.com/image/editor/15993629853479.png
⑥画矩形
https://www.lkuaiy.com/image/editor/15993629925483.png
⑦写文本
https://www.lkuaiy.com/image/editor/15993629981793.png
五、画画功能
①添加触发事件
画板上右键不加
https://www.lkuaiy.com/image/editor/15993630066938.png
https://www.lkuaiy.com/image/editor/15993630136349.png
②代码
https://www.lkuaiy.com/image/editor/15993630212370.png
https://www.lkuaiy.com/image/editor/15993630299038.png
六、演示效果
https://www.lkuaiy.com/image/editor/15993630372767.gif
例子下载:下载
我就想问 火山PC 哪来的 快快快 推广火山,义不容辞 推广火山义不容辞 推广火山,义不容辞 推广火山义不容辞 每日一顶:)
页:
[1]