scrawl-canvas
Version:
Version 8.9.4 - 19 Nov 2022
69 lines (55 loc) • 1.82 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 031</title>
<link href="css/normalize.css" rel="stylesheet" />
<link href="css/tests.css" rel="stylesheet" />
<style>
canvas {
background-color: lemonchiffon;
}
.canvas-container {
width: 400px;
height: 400px;
min-width: 200px;
min-height: 200px;
max-width: 800px;
max-height: 800px;
}
</style>
</head>
<body>
<h1><a href="index.html">Scrawl-canvas v8</a> - Canvas test 031</h1>
<h2>Cell generation and processing order - kaleidoscope clock</h2>
<h3>This canvas is resizable - drag the bottom right corner to change its dimensions.</h3>
<div class="canvas-container">
<canvas
id="mycanvas"
data-scrawl-canvas
data-is-responsive="true"
data-base-width="400"
data-base-height="400"
data-fit="cover"
data-base-background-color="honeydew"
></canvas>
</div>
<p id="reportmessage"></p>
<div class="testinfo">
<h4>Test purpose</h4>
<ul>
<li>Create new Cell wrappers in the Canvas wrapper</li>
<li>Add dedicated entity objects to each Cell's Group object</li>
<li>Build and display a clock face</li>
<li>Build and display a Kaleidoscope background</li>
<li>Update the order in which Cells compile their displays, and show their displays</li>
<li>Animate the scene so it displays the local time</li>
</ul>
<p><b>Touch test:</b> canvas should be resizable</p>
<p><a href="../docs/demo/canvas-031.html">Annotated code</a></p>
</div>
<script src="canvas-031.js" type="module"></script>
</body>
</html>