scrawl-canvas
Version:
Version 8.9.4 - 19 Nov 2022
65 lines (52 loc) • 1.45 kB
HTML
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Demo Canvas 054</title>
<link href="css/normalize.css" rel="stylesheet" />
<link href="css/tests.css" rel="stylesheet" />
<style>
.canvas-container {
overflow: hidden;
resize: both;
border: 1px solid black;
width: 400px;
height: 400px;
min-height: 200px;
min-width: 200px;
max-height: 600px;
max-width: 600px;
}
.controls {
grid-template-columns: 1fr 2fr 1fr 2fr;
}
</style>
</head>
<body>
<h1><a href="index.html">Scrawl-canvas v8</a> - Canvas test 054</h1>
<h2>Animated contour lines: map a complex gradient to NoiseAsset output</h2>
<h3>Resize the canvas by dragging its bottom right corner</h3>
<div class="canvas-container">
<canvas
id="mycanvas"
data-scrawl-canvas
data-is-responsive="true"
data-base-width="600"
data-base-height="600"
data-fit="cover"
></canvas>
</div>
<p id="reportmessage"></p>
<div class="testinfo">
<h4>Test purpose</h4>
<ul>
<li>...</li>
</ul>
<p><b>Touch test:</b> canvas should be resizable</p>
<p><a href="../docs/demo/canvas-054.html">Annotated code</a></p>
</div>
<script src="canvas-054.js" type="module"></script>
</body>
</html>