红包
来源:互联网 发布:java获取小数点后两位 编辑:程序博客网 时间:2024/05/17 04:47
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
<title>红包</title>
<style>
body{text-align:center;padding-top:3em;}
</style>
</head>
<body>
<canvas width="650" height="478"></canvas>
<script>
(function(){
var cvs=document.querySelector("canvas"),
g=cvs.getContext("2d");
g.lineWidth=2;
//红包
g.beginPath();
g.fillStyle = '#CC0000';
g.fillRect(30,30,330,640);
g.fillStyle = 'yellow';
g.closePath();
g.beginPath();
g.fillStyle = 'red';
g.fillRect(30,30,330,70);
g.closePath();
g.beginPath();
g.fillStyle = 'red';
g.moveTo(30,100);
g.lineTo(190,130);
g.lineTo(360,100);
g.fill();
g.closePath();
g.beginPath();
g.arc(190,130,50,0,Math.PI*2,true);
g.fillStyle = 'yellow';
g.closePath();
g.fill();
})();
</script>
</body>
</html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
<title>红包</title>
<style>
body{text-align:center;padding-top:3em;}
</style>
</head>
<body>
<canvas width="650" height="478"></canvas>
<script>
(function(){
var cvs=document.querySelector("canvas"),
g=cvs.getContext("2d");
g.lineWidth=2;
//红包
g.beginPath();
g.fillStyle = '#CC0000';
g.fillRect(30,30,330,640);
g.fillStyle = 'yellow';
g.closePath();
g.beginPath();
g.fillStyle = 'red';
g.fillRect(30,30,330,70);
g.closePath();
g.beginPath();
g.fillStyle = 'red';
g.moveTo(30,100);
g.lineTo(190,130);
g.lineTo(360,100);
g.fill();
g.closePath();
g.beginPath();
g.arc(190,130,50,0,Math.PI*2,true);
g.fillStyle = 'yellow';
g.closePath();
g.fill();
})();
</script>
</body>
</html>
0 0
- 红包!!?
- 红包
- “红包”
- 红包!红包!
- 红包快手-秒抢微信红包
- 红包博弈论
- 墨子红包
- 红包算法
- 红包来袭!!!
- 红包算法
- 红包算法
- 春节红包
- 红包算法
- 红包倒计时
- 红包模糊
- 抢红包
- 微信摇一摇红包
- 抢红包
- linux 下使用man查看命令帮助时 [] <>什么含义
- gradle maven私服构建aar
- RSC-010, ERROR, [Reference to non-standard resource type found.]
- asp中文乱码
- Jar文件JarFile的读写操作
- 红包
- linux中内存泄漏的检测(三)定制化的new/delete
- Arch Linux安装笔记(3)图形界面篇
- 应该为自己整包而努力了,固定项目来源需要整包的能力
- CTCI系列--1.1 判断一个字符串中的字符是否唯一(C语言)
- Java Character类
- ARM启动文件2440init.s分析
- struts2框架架构流程
- 在linux下挂载ISO镜像文件