scrawl-canvas
Version:
Version 8.9.4 - 19 Nov 2022
50 lines (40 loc) • 1.42 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 Particles 005</title>
<link href="css/normalize.css" rel="stylesheet" />
<link href="css/tests.css" rel="stylesheet" />
<style>
canvas {
margin: 0 auto;
}
</style>
</head>
<body>
<h1><a href="index.html">Scrawl-canvas v8</a> - Particles test 005</h1>
<h2>Emit particles from inside an artefact's area</h2>
<h3>The entitys are draggable</h3>
<canvas
id="mycanvas"
width="600"
height="400"
data-scrawl-canvas
></canvas>
<p id="reportmessage"></p>
<div class="testinfo">
<h4>Test purpose</h4>
<ul>
<li>Create a shape and Phrase entity to act as areas within which Particles will be generated.</li>
<li>Create a world object and Emitter entity to generate particles in the phrase entity.</li>
<li>Clone the Emitter entity, updating it so that it uses the shape entity for its particle generation area.</li>
<li>Check that particle generation responds as expected when dragging the area entitys around the canvas.</li>
</ul>
<p><b>Touch test:</b> should work as expected</p>
<p><a href="../docs/demo/particles-005.html">Annotated code</a></p>
</div>
<script src="particles-005.js" type="module"></script>
</body>
</html>