-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexample.html
More file actions
53 lines (48 loc) · 1.27 KB
/
example.html
File metadata and controls
53 lines (48 loc) · 1.27 KB
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
52
53
<!-- https://github.com/Azkun/balatroShader -->
<!-- |\ _,,,---,,_
ZZZzz /,`.-'`' -. ;-;;,_
|,4- ) )-,_. ,\ ( `'-'
'---''(_/--' `-'\_) qwkuns -->
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>balatroShader Demo</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: #111;
margin: 0;
color: white;
font-family: Arial, sans-serif;
}
#loader {
width: 100vw;
height: 100vh;
background: #222;
border-radius: 12px;
display: flex;
justify-content: center;
align-items: center;
}
</style>
</head>
<body id="loader">
<script src="balatroShader.js"></script>
<script>
const fx = new BalatroShader({
container: "#loader",
colours: { c1: "#DE443B", c2: "#006BB4", c3: "#162325" },
speed: 1.4,
contrast: 2,
spinAmount: 0.5,
pixelSizeFac: 1000,
spinEase: 0.5
});
</script>
</body>
</html>