-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpixel.html
More file actions
220 lines (194 loc) · 7.09 KB
/
pixel.html
File metadata and controls
220 lines (194 loc) · 7.09 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
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pixel Realm | YNG3</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
body {
background: #000;
margin: 0;
overflow: hidden;
font-family: 'Courier New', monospace;
}
#pixel-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: grid;
grid-template-columns: repeat(80, 1fr);
grid-template-rows: repeat(45, 1fr);
gap: 0;
z-index: 0;
}
.pixel {
width: 100%;
height: 100%;
background: #000;
transition: background 0.1s ease;
}
.content-overlay {
position: relative;
z-index: 10;
color: white;
text-align: center;
padding: 2rem;
background: rgba(0,0,0,0.7);
margin: 2rem;
border: 1px solid rgba(255,255,255,0.1);
}
h1 {
font-size: 3rem;
margin-bottom: 1rem;
text-transform: uppercase;
letter-spacing: 0.5rem;
}
.pixel-text {
font-size: 1.5rem;
margin: 1rem 0;
line-height: 2;
}
.controls {
display: flex;
justify-content: center;
gap: 1rem;
margin-top: 2rem;
flex-wrap: wrap;
}
button {
background: transparent;
color: white;
border: 1px solid white;
padding: 0.5rem 1rem;
cursor: pointer;
transition: all 0.3s ease;
font-family: 'Courier New', monospace;
}
button:hover {
background: white;
color: black;
}
.dimension-info {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
margin: 2rem 0;
}
.dimension-card {
border: 1px solid rgba(255,255,255,0.2);
padding: 1rem;
background: rgba(0,0,0,0.5);
}
.dimension-card h3 {
margin-top: 0;
color: #00ff00;
}
</style>
</head>
<body>
<div id="pixel-container"></div>
<div class="content-overlay">
<h1>PIXEL REALM</h1>
<p class="pixel-text">WHERE EVERY DOT IS A UNIVERSE OF POSSIBILITY</p>
<div class="dimension-info">
<div class="dimension-card">
<h3>HARMONIC DIMENSION</h3>
<p>Organized patterns that pulse with mathematical precision</p>
</div>
<div class="dimension-card">
<h3>FRACTAL DIMENSION</h3>
<p>Infinite complexity emerging from simple recursive rules</p>
</div>
<div class="dimension-card">
<h3>QUANTUM DIMENSION</h3>
<p>Superposition states collapsing into observable reality</p>
</div>
</div>
<div class="controls">
<button onclick="switchDimension('harmonic')">Harmonic</button>
<button onclick="switchDimension('fractal')">Fractal</button>
<button onclick="switchDimension('quantum')">Quantum</button>
<button onclick="toggleAnimation()">Toggle Animation</button>
<button onclick="window.location.href='index.html'">Return to Reality</button>
</div>
<p class="pixel-text" style="margin-top: 2rem; font-size: 1rem; opacity: 0.7;">
Each pixel you see is a programmable element in this digital cosmos.<br>
Watch as they form words, patterns, and gateways to other dimensions.
</p>
</div>
<script>
const container = document.getElementById('pixel-container');
const pixels = [];
let currentDimension = 'harmonic';
let animationActive = true;
let frameCount = 0;
// Create pixel grid
for (let i = 0; i < 80 * 45; i++) {
const pixel = document.createElement('div');
pixel.className = 'pixel';
container.appendChild(pixel);
pixels.push(pixel);
}
function switchDimension(dimension) {
currentDimension = dimension;
document.querySelector('h1').textContent = `PIXEL REALM - ${dimension.toUpperCase()}`;
}
function toggleAnimation() {
animationActive = !animationActive;
}
function animate() {
if (!animationActive) {
requestAnimationFrame(animate);
return;
}
frameCount++;
if (currentDimension === 'harmonic') {
// Harmonic wave patterns
for (let i = 0; i < pixels.length; i++) {
const row = Math.floor(i / 80);
const col = i % 80;
const wave = Math.sin((col + frameCount * 0.1) * 0.2) * Math.cos((row + frameCount * 0.05) * 0.15);
const intensity = Math.floor((wave + 1) * 127);
pixels[i].style.background = `rgb(${intensity}, ${intensity}, ${255 - intensity})`;
}
}
else if (currentDimension === 'fractal') {
// Fractal patterns
for (let i = 0; i < pixels.length; i++) {
const row = Math.floor(i / 80);
const col = i % 80;
let x = (col - 40) / 20;
let y = (row - 22.5) / 20;
let iter = 0;
const maxIter = 50;
while (x*x + y*y < 4 && iter < maxIter) {
const xtemp = x*x - y*y + Math.sin(frameCount * 0.01);
y = 2*x*y + Math.cos(frameCount * 0.01);
x = xtemp;
iter++;
}
const intensity = iter === maxIter ? 0 : Math.floor(255 * iter / maxIter);
pixels[i].style.background = `rgb(${intensity}, 0, ${255 - intensity})`;
}
}
else {
// Quantum superposition effect
for (let i = 0; i < pixels.length; i++) {
if (Math.random() > 0.7) {
const hue = (frameCount * 2 + i * 0.1) % 360;
pixels[i].style.background = `hsl(${hue}, 100%, 50%)`;
} else {
pixels[i].style.background = '#000';
}
}
}
requestAnimationFrame(animate);
}
// Start animation
animate();
</script>
</body>
</html>