-
Notifications
You must be signed in to change notification settings - Fork 3
/
test.html
79 lines (75 loc) · 3.59 KB
/
test.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>IPyWidget export</title>
</head>
<body>
<!-- Load require.js. Delete this if your page already loads require.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@jupyter-widgets/html-manager@^1.0.1/dist/embed-amd.js" crossorigin="anonymous"></script>
<script type="application/vnd.jupyter.widget-state+json">
{
"version_major": 2,
"version_minor": 0,
"state": {
"843b22226e39438c862671a855d6dfcb": {
"model_name": "LayoutModel",
"model_module": "@jupyter-widgets/base",
"model_module_version": "2.0.0",
"state": {}
},
"dcc1dd7225c241058a4a410f112ce9e4": {
"model_name": "BraketModel",
"model_module": "evince",
"model_module_version": "^0.36.0",
"state": {
"_dom_classes": [],
"ao": [
1
],
"bg_color": [
0.0,
0.0,
0.0
],
"fragment_shader": "uniform vec3 user_color;\nuniform float time;\n\nvarying vec2 vUv;\nvarying vec3 pos;\nvarying vec3 tex;\nvarying float q;\nvarying float csI;\nvarying float csR;\nvarying float cs0;\nvarying float cs1;\nvarying float cs2;\nvarying float cs;\n\nvoid main() {\n\n vec2 p = vUv;\n float q = tex[0]*tex[0] +tex[1]*tex[1] +tex[2]*tex[2] ;\n float cs0 = 3.5958688509193428*exp(-2.0*q);\n float cs1 = 27.121741319920488*tex[0]*tex[1]*tex[2]*exp(-2.0*q);\n float cs2 = 6.7804353299801221*tex[0]*exp(-2.0*q);\n float csI = -1.0*cs0*sin(0.250000*time) + -1.0*cs1*sin(1.000000*time) + -1.0*cs2*sin(1.500000*time) ;\n float csR = cs0*cos(0.250000*time) + cs1*cos(1.000000*time) + cs2*cos(1.500000*time) ;\n gl_FragColor = gl_FragColor + vec4(csR, csI, -1.0*csR, .1);\n}",
"layout": "IPY_MODEL_843b22226e39438c862671a855d6dfcb",
"pos": [],
"surf": []
}
},
"ec8b6946c6cc4aa9b79d90752886b282": {
"model_name": "LayoutModel",
"model_module": "@jupyter-widgets/base",
"model_module_version": "2.0.0",
"state": {}
},
"5243465fd94347f69177430173ebf018": {
"model_name": "BraketModel",
"model_module": "evince",
"model_module_version": "^0.36.0",
"state": {
"_dom_classes": [],
"ao": [
1
],
"bg_color": [
0.0,
0.0,
0.0
],
"fragment_shader": "uniform vec3 user_color;\nuniform float time;\n\nvarying vec2 vUv;\nvarying vec3 pos;\nvarying vec3 tex;\nvarying float q;\nvarying float csI;\nvarying float csR;\nvarying float cs0;\nvarying float cs1;\nvarying float cs2;\nvarying float cs;\n\nvoid main() {\n\n vec2 p = vUv;\n float q = tex[0]*tex[0] +tex[1]*tex[1] +tex[2]*tex[2] ;\n float cs0 = 3.5958688509193428*exp(-2.0*q);\n float cs1 = 27.121741319920488*tex[0]*tex[1]*tex[2]*exp(-2.0*q);\n float cs2 = 6.7804353299801221*tex[0]*exp(-2.0*q);\n float csI = -1.0*cs0*sin(0.250000*time) + -1.0*cs1*sin(1.000000*time) + -1.0*cs2*sin(1.500000*time) ;\n float csR = cs0*cos(0.250000*time) + cs1*cos(1.000000*time) + cs2*cos(1.500000*time) ;\n gl_FragColor = gl_FragColor + vec4(csR, csI, -1.0*csR, .1);\n}",
"layout": "IPY_MODEL_ec8b6946c6cc4aa9b79d90752886b282",
"pos": [],
"surf": []
}
}
}
}
</script>
<script type="application/vnd.jupyter.widget-view+json">
{"version_major": 2, "version_minor": 0, "model_id": "5243465fd94347f69177430173ebf018"}
</script>
</body>
</html>