We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f384979 commit a396abcCopy full SHA for a396abc
channelsplit-material-blotterjs/script.js
@@ -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