scrawl-canvas
Version:
Version 8.9.4 - 19 Nov 2022
51 lines (39 loc) • 1.83 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 005</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 005</h1>
<h2>Cell-locked, and Entity-locked, gradients<br />Animating gradients by delta, and by tween<br />Trigger canvas hover and drag UX</h2>
<h3>Drag and drop the entitys around the canvas</h3>
<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>
<p>Drag and drop the entitys to test that their gradients change and animate as expected</p>
<ul>
<li>Setup a a variety of linear and radial gradients</li>
<li>Create and clone block and wheel entitys to use the gradients in various ways</li>
<li>Check that the gradients appear in the entitys as expected - in particular that entity-locked gradients are completely displayed within their entity</li>
<li>For Cell-locked gradients, check that when a drag operation starts, the gradient changes to match it's entity's position in the cell</li>
<li>For Entity-locked gradients, check that the gradient remains stable within the entity when the drag operation starts and ends</li>
<li>Check that gradient animation actions operate as expected</li>
</ul>
<p><b>Touch test:</b> should work as expected</p>
<p><a href="../docs/demo/canvas-005.html">Annotated code</a></p>
</div>
<script src="canvas-005.js" type="module"></script>
</body>
</html>