UNPKG

scrawl-canvas

Version:
50 lines (41 loc) 1.73 kB
<!DOCTYPE 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 004</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 004</h1> <h2>Emit particles along the length of a path</h2> <canvas id="mycanvas" width="600" height="400" data-scrawl-canvas data-base-background-color="aliceblue" ></canvas> <p id="reportmessage"></p> <div class="testinfo"> <h4>Test purpose</h4> <ul> <li>Create a Bezier entity along which the Emitter can generate particles, together with user-controlled Wheel entitys to shape the curve.</li> <li>Create a particle world object, a Star entity, and a particle Emitter entity using them.</li> <li>Check that the Emitter entity generates particles along the entire length of the Bezier curve.</li> <li>Create additional, non-user-interactive shape-based entitys (Line, Oval); clone the Emitter entity (and its artefact), assigning each to the new entitys.</li> <li>Check that the cloned Emitter entity generate particles along the entire length of the Line and Oval paths.</li> </ul> <p><b>Touch test:</b> should work as expected. Known issue: moving the pins is inconsistent (because pins are too small on device screens?)</p> <p><a href="../docs/demo/particles-004.html">Annotated code</a></p> </div> <script src="particles-004.js" type="module"></script> </body> </html>