UNPKG

scrawl-canvas

Version:
47 lines (36 loc) 1.68 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 013</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> - Particles test 013</h1> <h2>Seasons greetings</h2> <canvas id="mycanvas" width="600" height="600" data-scrawl-canvas data-base-background-color="navy" ></canvas> <p id="reportmessage"></p> <div class="testinfo"> <h4>Test purpose</h4> <ul> <li>Build a Christmas scene from a Shape entity and a Phrase entity along a quadratic line.</li> <li>Add an point emitter to the top of the tree (positioned along its path - the stars should float upwards, shrink and fade as they age.</li> <li>Add an area emitter to the tree Shape - these stars should very slowly fade in, then grow bigger (by updating one of the Star entity's radius attributes), then shrink and fade to the end of its life.</li> <li>Create a new Cell. In the cell setup a mini-scene consisting of a candle and its flame. The flame is a point emitter which also uses a blur filter.</li> <li>Create ten Picture entitys that use the Cell as their asset, and add them to the scene; these should use the tree entity's path to determine their position</li> </ul> <p><b>Touch test:</b> not required</p> <p><a href="../docs/demo/particles-013.html">Annotated code</a></p> </div> <script src="particles-013.js" type="module"></script> </body> </html>