html中globalAlpha示例
来源:互联网 发布:适合学生党的淘宝店铺 编辑:程序博客网 时间:2024/06/05 20:27
<!DOCTYPE html><html><head><meta charset="utf-8"/><title>globalAlpha</title><script>function draw(id){var context=document.getElementById('canvas').getContext('2d');context.fillStyle='#fd0;'context.fillRect(0,0,75,75);context.fillStyle = '#6c0';context.fillRect(75,0,75,75);context.fillStyle='#09f';context.fillRect(0,75,75,75);context.fillStyle='#f30';context.fillRect(75,75,75,75);context.fillStyle='#fff';context.globalAlpha=0.3;for(var i=0;i<7;i++){context.beginPath();context.arc(75,75,10+10*i,0,Math.PI*2,true);context.fill();}}</script></head><body onload="draw('canvas');"><h1>globalAlpha</h1><canvas id="canvas" width="400" height="300"/></body></html>
阅读全文
0 0
- html中globalAlpha示例
- HTML 5 canvas globalAlpha 属性
- html中strokeStyle示例
- html中linewidth示例
- html中linecap示例
- html中lineJoin示例
- html中transform示例
- html中settransform示例
- html中对于fillstyle示例
- html5之globalAlpha
- html 示例
- html示例
- html中table中动态添加单元格示例
- Canvas globalAlpha透明度属性(转)
- Dephi中获取webbrowser选取区域的html代码示例
- html中上下左右拖拉横线控制div宽度示例
- HTML 5 中Web SQL 的使用示例
- html中上下左右拖拉横线控制div宽度示例
- 删除桌面hummingbird neighborhood图标
- Spring MVC之@RequestBody, @ResponseBody 作用
- (105)创建函数
- Mybatis的逆向工程
- Solr服务的搭建
- html中globalAlpha示例
- 【JSOI2011】bzoj4710 分特产
- 自勉
- IFrame的使用
- 信号量
- 在win7中chm打不开的多种解决方法
- 管理用户配置文件++查询用户配置文件+修改用户配置文件+删除用户配置文件
- LINUX发展趣文
- C++多态:深入虚函数,理解晚绑定