-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkumonoito.html
159 lines (131 loc) · 4.7 KB
/
kumonoito.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<!DOCTYPE HTML>
<meta charset="utf-8"/>
<!------------------------------------------------------------------------------
Copyright (c) 2011 Antoine Santo Aka NoNameNo
This File is part of the CODEF project.
More info : http://codef.santo.fr
Demo gallery http://www.wab.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
------------------------------------------------------------------------------>
<!--
蜘
蛛
の
糸
|
グ
レ
ェ
-->
<html>
<head>
<style>
h1 {
text-align: center;
}
p.天 {
text-align: right;
}
</style>
<font color="grey">
<a href="https://en.wikipedia.org/wiki/The_Spider%27s_Thread">
<h1>
蜘<br>
蛛<br>
の<br>
糸<br>
</h1>
</a>
<a href="http://gaps.artkiver.com/">
<p class="天">天</p>
</a>
</font>
<script src="https://reviktra.neocities.org/codef_core.js"></script>
<script src="https://reviktra.neocities.org/codef_3d.js"></script>
<script>
var mycanvas;
var my3d;
var myobj = new Array();
var myobjvert = new Array();
myobjvert=[
{x:-1, y:1, z: 1},
{x: -1, y:-1, z: 1},
{x: 1, y:-1, z: 1},
{x: 1, y:1, z: 1},
{x: 1, y:1, z: -1},
{x: 1, y:-1, z: -1},
{x: -1, y:-1, z: -1},
{x: -1, y:1, z: -1},
];
myobj=[
{p1:0, p2:1, p3:2, params:new MeshLambertMaterial({ color: 0x00aaff, shading: SmoothShading})},
{p1:0, p2:2, p3:3, params:new MeshLambertMaterial({ color: 0x00aaff, shading: SmoothShading})},
{p1:3, p2:2, p3:5, params:new MeshLambertMaterial({ color: 0x00aaff, shading: SmoothShading})},
{p1:3, p2:5, p3:4, params:new MeshLambertMaterial({ color: 0x00aaff, shading: SmoothShading})},
{p1:4, p2:5, p3:6, params:new MeshLambertMaterial({ color: 0x00aaff, shading: SmoothShading})},
{p1:4, p2:6, p3:7, params:new MeshLambertMaterial({ color: 0x00aaff, shading: SmoothShading})},
{p1:7, p2:6, p3:1, params:new MeshLambertMaterial({ color: 0x00aaff, shading: SmoothShading})},
{p1:7, p2:1, p3:0, params:new MeshLambertMaterial({ color: 0x00aaff, shading: SmoothShading})},
];
mylines=new Array();
function init(){
mycanvas=new canvas(666,666,"main");
my3d=new codef3D(mycanvas, 10, 40, 1, 1600 );
my3d.faces(myobjvert,myobj, false, true );
// this value could be turned into a variable and turned into an effect. To effect hue or shade or colour.
my3d.addAmbiLight(0x888888);
my3d.addDirLight(0,0,50,0xffffff);
var i=0;
for(var j=0; j<Math.PI/2;j+=0.02){
mylines[i]=new canvas(640,1);
my3d.group.rotation.y+=0.02;
my3d.draw();
mycanvas.drawPart(mylines[i],0,0,3,420,200,1);
mycanvas.clear();;
i++;
}
go();
}
var n=0;
var oldn=0;
var n2=0;
var oldn2=0;
function go(){
mycanvas.clear();
oldn=n;
oldn2=n2;
// the i value corresponds to the vertical height of the effect in pixels. The larger the value, the higher the column.
for(var i=0; i<333; i++){
mylines[parseInt(((Math.sin(n)+1)*100)+(Math.sin(n2)+1)*50)%mylines.length].draw(mycanvas,444,i);
n+=0.01;
n2+=0.03;
}
n=oldn+0.03;
n2=oldn2-0.02;
requestAnimFrame( go );
}
</script>
</head>
<body onLoad="init();" bgcolor='#000000'>
<br>
<br>
<center><div id="main"></div><br><br><a href="javascript:window.location='view-source:'+window.location"></a></center>
</body>
</html>
<font color="white"><a href="https://twitter.com/hiwearespiders">
地<br>
獄</font></a>