1 Star 0 Fork 1

hikerw / css3动画

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
line.html 553 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')
let ctx = canvas.getContext('2d')
console.log(ctx)
ctx.beginPath()
ctx.moveTo(20,20)
ctx.lineTo(20,300)
ctx.lineTo(300,300)
ctx.strokeStyle='#F4EA29'
ctx.lineWidth=14
// ctx.lineCap ='round'
// ctx.lineJoin = 'round'
ctx.miterLimit=3
ctx.closePath()
ctx.stroke()
</script>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
CSS
1
https://gitee.com/wangziwl/css3-animation.git
git@gitee.com:wangziwl/css3-animation.git
wangziwl
css3-animation
css3动画
master

搜索帮助