-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplasma.html
51 lines (50 loc) · 1.49 KB
/
plasma.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!doctype html>
<html>
<head>
<title>PlasmaJS</title>
<style type="text/css">
body {
background-color: #222;
color: #ccf;
}
canvas {
background-color: #000;
}
</style>
</head>
<body>
<h2>PlasmaJS</h2>
<p>Testing PlasmaJS using a canvas.</p><br>
<button onclick="javascript:plasma.start();">Start</button>
<button onclick="javascript:plasma.stop();">Stop</button>
<button onclick="javascript:plasma.reset();">Reset</button>
<button onclick="javascript:plasma.clear();">Clear</button>
<button onclick="javascript:plasma.fullscreen();">Full Screen</button>
<br>
<canvas id="plasma-canvas" width="400" height="400"></canvas>
<div>
<input type="radio" id="radio1" name="palette"
onclick="javascript:plasma.setPalette('rainbow')" checked>
<label for="radio1">Rainbow</label>
<input type="radio" id="radio2" name="palette"
onclick="javascript:plasma.setPalette('nebula')">
<label for="radio2">Nebula</label>
<input type="radio" id="radio3" name="palette"
onclick="javascript:plasma.setPalette('fire')">
<label for="radio3">Fire</label>
<input type="radio" id="radio4" name="palette"
onclick="javascript:plasma.setPalette('bluegreen')">
<label for="radio4">BlueGreen</label>
<input type="radio" id="radio5" name="palette"
onclick="javascript:plasma.setPalette('rgb')">
<label for="radio5">RGB</label>
</div>
<script src="plasma.js"></script>
<script>
var plasma = new PlasmaJS({
canvasId: 'plasma-canvas',
palette: 'rainbow'
});
</script>
</body>
</html>