Skip to content

Commit a396abc

Browse files
authored
Create script.js
1 parent f384979 commit a396abc

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
var text = new Blotter.Text('Shoyeb', {
2+
size:200,
3+
padding:80,
4+
})
5+
6+
var material = new Blotter.ChannelSplitMaterial();
7+
material.uniforms.uOffset.value = 0.05;
8+
material.uniforms.uRotation.value = 50;
9+
material.uniforms.uApplyBlur.value = 1;
10+
material.uniforms.uAnimateNoise.value = .3;
11+
12+
var blotter = new Blotter(material, {
13+
texts: text
14+
})
15+
16+
var scope = blotter.forText(text);
17+
18+
scope.appendTo(document.body);
19+
20+
document.onmousemove = moveIt;
21+
22+
function moveIt(event){
23+
material.uniforms.uOffset.value = (event.clientX * .0001);
24+
material.uniforms.uRotation.value = (event.clientX * .1);
25+
}
26+

0 commit comments

Comments
 (0)