scrawl-canvas
Version:
Version 8.9.4 - 19 Nov 2022
45 lines (34 loc) • 1.44 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 014</title>
<link href="css/normalize.css" rel="stylesheet" />
<link href="css/tests.css" rel="stylesheet" />
</head>
<body>
<h1><a href="index.html">Scrawl-canvas v8</a> - Canvas test 014</h1>
<h2>Line, Quadratic and Bezier entitys - control lock alternatives</h2>
<canvas
id="mycanvas"
width="600"
height="600"
data-scrawl-canvas
data-base-background-color="aliceblue"
></canvas>
<p id="reportmessage"></p>
<div class="testinfo">
<h4>Test purpose</h4>
<ul>
<li>Create linear, quadratic and bezier Shape entitys</li>
<li>Position them on the canvas by a variety of different means - (draggable) pivots, paths, mouse</li>
<li>Kill and resurrect several entitys to make sure they remove themselves entirely from the Scrawl-canvas system, and cleanly recreate themselves from saved packets</li>
</ul>
<p><b>Touch test:</b> should work as expected. Known issues: the arrow doesn't always return to the line on touchend; moving the pins is inconsistent (because pins are too small on device screens?)</p>
<p><a href="../docs/demo/canvas-014.html">Annotated code</a></p>
</div>
<script src="canvas-014.js" type="module"></script>
</body>
</html>