JavaScript/canvas/彩色线条

来自康健生活
Kangkk​(留言 | 贡献)2025年4月30日 (三) 11:44的版本 (→eq 1)

test

eq 1

<!DOCTYPE html>

<head>
  <meta charset="UTF-8">
  <title>CodePen - Imagination</title>
  <link rel="stylesheet" href="./style.css">

</head>
<body>
<!-- partial:index.partial.html -->
<canvas></canvas></body>
html,
body {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

body {
	margin: 0;
	padding: 0;
	color: #fff;
	background-color: #000;
}

canvas {
	-webkit-tap-highlight-color: transparent;
	tap-highlight-color: transparent;
	-webkit-user-select: none;
	user-select: none;
	cursor: pointer;
}
// Imagination by @neave

window.requestAnimationFrame =
	window.requestAnimationFrame