1 Star 0 Fork 1

hikerw / css3动画

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
canvas.html 500 Bytes
一键复制 编辑 原始数据 按行查看 历史
hikerw 提交于 2020-09-07 17:53 . canvas
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<canvas id="canvas" width="600" height="600"></canvas>
</body>
<script type="text/javascript">
let canvas = document.getElementById('canvas')
console.log([canvas])
let ctx = canvas.getContext('2d')
console.log(ctx)
ctx.rect(50,50,300,300)
ctx.fillStyle='#F4EA29'
ctx.fill()
ctx.lineWidth = 10
ctx.strokeStyle = 'azure'
ctx.stroke()
ctx.clearRect(50,50,100,100)
</script>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
CSS
1
https://gitee.com/wangziwl/css3-animation.git
git@gitee.com:wangziwl/css3-animation.git
wangziwl
css3-animation
css3动画
master

搜索帮助