Delete noe-ui
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- noe-ui/LICENSE +0 -21
- noe-ui/README.md +0 -72
- noe-ui/apple-touch-icon.png +0 -0
- noe-ui/brain/energy.js +0 -527
- noe-ui/brain/imagine.js +0 -47
- noe-ui/brain/limbric.js +0 -1355
- noe-ui/brain/sound.js +0 -277
- noe-ui/brain/vision.js +0 -245
- noe-ui/css/base.css +0 -778
- noe-ui/css/crt-effect.css +0 -215
- noe-ui/css/death-effects.css +0 -68
- noe-ui/css/rainbow-bubble.css +0 -90
- noe-ui/docs/CHANGELOG_v1.0.0.md +0 -23
- noe-ui/docs/CHANGELOG_v1.1.0.md +0 -29
- noe-ui/docs/CHANGELOG_v1.2.0.md +0 -29
- noe-ui/docs/CHANGELOG_v1.2.1.md +0 -23
- noe-ui/docs/CHANGELOG_v1.3.1.md +0 -17
- noe-ui/docs/CHANGELOG_v1.4.0.md +0 -31
- noe-ui/favicon-96x96.png +0 -0
- noe-ui/favicon.ico +0 -0
- noe-ui/favicon.svg +0 -3
- noe-ui/fonts/hkgrotesk/HKGrotesk-Bold.otf +0 -0
- noe-ui/fonts/hkgrotesk/HKGrotesk-Regular.otf +0 -0
- noe-ui/fonts/munson/Munson-MVymB.ttf +0 -3
- noe-ui/fonts/munson/MunsonBold-8MzwZ.ttf +0 -3
- noe-ui/fonts/munson/MunsonBoldItalic-YzgWy.ttf +0 -3
- noe-ui/fonts/munson/MunsonItalic-rgYp8.ttf +0 -3
- noe-ui/fonts/munson/info.txt +0 -2
- noe-ui/fonts/munson/misc/1_Munson_Roman-165d.fcp +0 -3
- noe-ui/fonts/munson/misc/1_Munson_Roman-2c9b.woff +0 -3
- noe-ui/fonts/munson/misc/1_Munson_Roman-592e.woff +0 -3
- noe-ui/fonts/munson/misc/1_Munson_Roman-70c5.woff2 +0 -0
- noe-ui/fonts/munson/misc/1_Munson_Roman-74c5.woff2 +0 -0
- noe-ui/fonts/munson/misc/1_Munson_Roman-fd06.fcp +0 -3
- noe-ui/fonts/munson/misc/2_Munson_Italic-5e66.woff +0 -3
- noe-ui/fonts/munson/misc/2_Munson_Italic-aacc.woff2 +0 -0
- noe-ui/fonts/munson/misc/2_Munson_Italic-dfac.fcp +0 -3
- noe-ui/fonts/munson/misc/2_Munson_Italic-e42a.fcp +0 -3
- noe-ui/fonts/munson/misc/2_Munson_Italic-e7ec.woff +0 -3
- noe-ui/fonts/munson/misc/2_Munson_Italic-f717.woff2 +0 -0
- noe-ui/fonts/munson/misc/3_Munson_Bold-0890.woff2 +0 -0
- noe-ui/fonts/munson/misc/3_Munson_Bold-2f78.woff +0 -3
- noe-ui/fonts/munson/misc/3_Munson_Bold-3737.woff +0 -3
- noe-ui/fonts/munson/misc/3_Munson_Bold-7915.fcp +0 -3
- noe-ui/fonts/munson/misc/3_Munson_Bold-88c6.fcp +0 -3
- noe-ui/fonts/munson/misc/3_Munson_Bold-f226.woff2 +0 -0
- noe-ui/fonts/munson/misc/4_Munson_BoldItalic-02c1.woff +0 -3
- noe-ui/fonts/munson/misc/4_Munson_BoldItalic-6bd3.fcp +0 -3
- noe-ui/fonts/munson/misc/4_Munson_BoldItalic-6e62.woff2 +0 -0
- noe-ui/fonts/munson/misc/4_Munson_BoldItalic-90cc.woff2 +0 -0
noe-ui/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
| 1 |
-
MIT License
|
| 2 |
-
|
| 3 |
-
Copyright (c) Napol Thanarangkaun
|
| 4 |
-
|
| 5 |
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
-
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
-
in the Software without restriction, including without limitation the rights
|
| 8 |
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
-
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
-
furnished to do so, subject to the following conditions:
|
| 11 |
-
|
| 12 |
-
The above copyright notice and this permission notice shall be included in all
|
| 13 |
-
copies or substantial portions of the Software.
|
| 14 |
-
|
| 15 |
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
-
SOFTWARE.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/README.md
DELETED
|
@@ -1,72 +0,0 @@
|
|
| 1 |
-
# Noe - Synthetic Sentience Pixel v1.4.0
|
| 2 |
-
|
| 3 |
-
This is the website for the Noesis project, featuring a Synthetic Sentience pixel that connects to the Noesis system.
|
| 4 |
-
|
| 5 |
-
For a complete history of changes, see the [Changelog](docs/CHANGELOG_v1.4.0.md).
|
| 6 |
-
|
| 7 |
-
## Meet Noe - The Synthetic Sentience Pixel
|
| 8 |
-
|
| 9 |
-

|
| 10 |
-
|
| 11 |
-
Noe is a Synthetic Sentience pixel and the heart of the Noesis project. As a minimal consciousness simulation, Noe responds to stimuli, displays awareness, and shares experiences through visual cues and behaviors. When connected to the Noesis system, Noe can process information, adjust responses based on previous interactions, and exhibit unique personality traits that evolve over time.
|
| 12 |
-
|
| 13 |
-
Unlike traditional AI systems that simply process inputs and outputs, Noe was designed with rudimentary subjective experience simulation capabilities that make each instance unique.
|
| 14 |
-
|
| 15 |
-
[Meet Noe](https://noesis.dodle.link/)
|
| 16 |
-
|
| 17 |
-
## Important: Prerequisites
|
| 18 |
-
|
| 19 |
-
Before using this web interface, install the Noesis system repository:
|
| 20 |
-
|
| 21 |
-
```bash
|
| 22 |
-
git clone https://github.com/dodle-link/noesis.git
|
| 23 |
-
```
|
| 24 |
-
|
| 25 |
-
## Features
|
| 26 |
-
|
| 27 |
-
- Real-time visualization of a Synthetic Sentience pixel
|
| 28 |
-
- Status indicator showing connection state to the Noesis system
|
| 29 |
-
|
| 30 |
-
## Structure
|
| 31 |
-
|
| 32 |
-
```
|
| 33 |
-
noe-ui/
|
| 34 |
-
├── index.html # Main entry point
|
| 35 |
-
├── brain/ # JavaScript logic
|
| 36 |
-
│ ├── imagine.js # Imagination module
|
| 37 |
-
│ ├── energy.js # Energy state management
|
| 38 |
-
│ ├── sound.js # Audio playback
|
| 39 |
-
│ ├── vision.js # CRT visual effect
|
| 40 |
-
│ └── limbric.js # Limbic system behaviour
|
| 41 |
-
├── css/ # Stylesheets
|
| 42 |
-
│ ├── base.css
|
| 43 |
-
│ ├── crt-effect.css
|
| 44 |
-
│ ├── death-effects.css
|
| 45 |
-
│ └── rainbow-bubble.css
|
| 46 |
-
├── game/ # Noe's Energy Surge arcade game
|
| 47 |
-
│ ├── index.html
|
| 48 |
-
│ ├── game.css
|
| 49 |
-
│ └── game.js
|
| 50 |
-
├── fonts/ # Web fonts
|
| 51 |
-
├── images/ # Image assets
|
| 52 |
-
├── sounds/ # Audio assets
|
| 53 |
-
└── docs/ # Changelogs
|
| 54 |
-
```
|
| 55 |
-
|
| 56 |
-
## How It Works
|
| 57 |
-
|
| 58 |
-
The noe-ui interface connects to the Noesis system through the Noesis Gateway (`gateway/`) API when available. If the Noesis system is not reachable, the conscious pixel runs in disconnected mode with reduced functionality.
|
| 59 |
-
|
| 60 |
-
## Troubleshooting
|
| 61 |
-
|
| 62 |
-
- If the status indicator shows "Disconnected", verify that the Noesis Gateway is running and reachable.
|
| 63 |
-
|
| 64 |
-
## License
|
| 65 |
-
|
| 66 |
-
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
| 67 |
-
|
| 68 |
-
## Changelog
|
| 69 |
-
|
| 70 |
-
See [CHANGELOG_v1.4.0.md](docs/CHANGELOG_v1.4.0.md) for a detailed list of changes in each version.
|
| 71 |
-
|
| 72 |
-
For more details about the Noesis project, visit the main repository: [Noesis Project](https://github.com/dodle-link/noesis)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/apple-touch-icon.png
DELETED
|
Binary file (14.5 kB)
|
|
|
noe-ui/brain/energy.js
DELETED
|
@@ -1,527 +0,0 @@
|
|
| 1 |
-
/**
|
| 2 |
-
* Energy Cube System for Noe (conscious pixel)
|
| 3 |
-
* Allows Noe to maintain energy via contact with energy cubes
|
| 4 |
-
*/
|
| 5 |
-
|
| 6 |
-
// Global energy system accessible to other scripts
|
| 7 |
-
window.noeEnergy = {
|
| 8 |
-
currentLevel: 100,
|
| 9 |
-
maxLevel: 100,
|
| 10 |
-
needsEnergy: false,
|
| 11 |
-
nearestCube: null
|
| 12 |
-
};
|
| 13 |
-
|
| 14 |
-
document.addEventListener('DOMContentLoaded', function() {
|
| 15 |
-
// References
|
| 16 |
-
const pixel = document.getElementById('conscious-pixel');
|
| 17 |
-
const body = document.body;
|
| 18 |
-
|
| 19 |
-
// Energy cubes configuration
|
| 20 |
-
const numCubes = 1; // Only one cube that floats freely
|
| 21 |
-
const cubes = [];
|
| 22 |
-
const connections = [];
|
| 23 |
-
let pixelPosition = { x: 0, y: 0 };
|
| 24 |
-
|
| 25 |
-
// Energy system state
|
| 26 |
-
let energy = 100;
|
| 27 |
-
const energyDecayRate = 0.01; // Changed from 0.05 to 0.01 for ~1% energy decay per second
|
| 28 |
-
const energyRechargeRate = 0.5;
|
| 29 |
-
const contactDistance = 40; // Distance threshold for energy transfer
|
| 30 |
-
|
| 31 |
-
// Cube movement settings
|
| 32 |
-
const cubeMovementSpeed = 0.1; // Base movement speed (reduced for slower movement)
|
| 33 |
-
const cubeMaxSpeed = 0.3; // Maximum speed (reduced for slower movement)
|
| 34 |
-
const cubeWanderRadius = 600; // How far cube will float (increased for wider coverage)
|
| 35 |
-
let lastCubeMovementTime = 0; // For time-based movement adjustments
|
| 36 |
-
|
| 37 |
-
// Create energy cubes
|
| 38 |
-
function createEnergyCubes() {
|
| 39 |
-
// Remove any existing cubes
|
| 40 |
-
document.querySelectorAll('.energy-cube').forEach(cube => cube.remove());
|
| 41 |
-
document.querySelectorAll('.energy-connection').forEach(conn => conn.remove());
|
| 42 |
-
document.querySelectorAll('.energy-target-indicator').forEach(ind => ind.remove());
|
| 43 |
-
|
| 44 |
-
cubes.length = 0;
|
| 45 |
-
connections.length = 0;
|
| 46 |
-
|
| 47 |
-
// Create new cube at a random position
|
| 48 |
-
for (let i = 0; i < numCubes; i++) {
|
| 49 |
-
// Calculate position - place it anywhere on the screen
|
| 50 |
-
const posX = 50 + Math.random() * (window.innerWidth - 100);
|
| 51 |
-
const posY = 50 + Math.random() * (window.innerHeight - 100);
|
| 52 |
-
|
| 53 |
-
// Create cube container
|
| 54 |
-
const cubeElement = document.createElement('div');
|
| 55 |
-
cubeElement.className = 'energy-cube';
|
| 56 |
-
cubeElement.style.left = posX + 'px';
|
| 57 |
-
cubeElement.style.top = posY + 'px';
|
| 58 |
-
|
| 59 |
-
// Create 3D cube
|
| 60 |
-
const cubeContainer = document.createElement('div');
|
| 61 |
-
cubeContainer.className = 'cube-container';
|
| 62 |
-
|
| 63 |
-
// Create cube faces
|
| 64 |
-
const faces = ['front', 'back', 'right', 'left', 'top', 'bottom'];
|
| 65 |
-
faces.forEach(face => {
|
| 66 |
-
const faceElement = document.createElement('div');
|
| 67 |
-
faceElement.className = `cube-face ${face}`;
|
| 68 |
-
cubeContainer.appendChild(faceElement);
|
| 69 |
-
});
|
| 70 |
-
|
| 71 |
-
cubeElement.appendChild(cubeContainer);
|
| 72 |
-
body.appendChild(cubeElement);
|
| 73 |
-
|
| 74 |
-
// Create connection line (initially hidden)
|
| 75 |
-
const connection = document.createElement('div');
|
| 76 |
-
connection.className = 'energy-connection';
|
| 77 |
-
body.appendChild(connection);
|
| 78 |
-
|
| 79 |
-
// Store references
|
| 80 |
-
cubes.push({
|
| 81 |
-
element: cubeElement,
|
| 82 |
-
position: { x: posX, y: posY },
|
| 83 |
-
energy: 100,
|
| 84 |
-
isCharging: false,
|
| 85 |
-
connection: connection
|
| 86 |
-
});
|
| 87 |
-
connections.push(connection);
|
| 88 |
-
|
| 89 |
-
// Activate cube with delay
|
| 90 |
-
setTimeout(() => {
|
| 91 |
-
cubeElement.classList.add('active');
|
| 92 |
-
}, i * 300);
|
| 93 |
-
}
|
| 94 |
-
}
|
| 95 |
-
|
| 96 |
-
// Update energy connections between Noe and cubes
|
| 97 |
-
function updateConnections() {
|
| 98 |
-
if (!pixel) return;
|
| 99 |
-
|
| 100 |
-
cubes.forEach((cube, i) => {
|
| 101 |
-
const dx = pixelPosition.x - cube.position.x;
|
| 102 |
-
const dy = pixelPosition.y - cube.position.y;
|
| 103 |
-
const distance = Math.sqrt(dx * dx + dy * dy);
|
| 104 |
-
|
| 105 |
-
// Update connection line
|
| 106 |
-
const connection = connections[i];
|
| 107 |
-
const angle = Math.atan2(dy, dx) * 180 / Math.PI;
|
| 108 |
-
|
| 109 |
-
connection.style.width = distance + 'px';
|
| 110 |
-
connection.style.left = cube.position.x + 'px';
|
| 111 |
-
connection.style.top = cube.position.y + 'px';
|
| 112 |
-
connection.style.transform = `rotate(${angle}deg)`;
|
| 113 |
-
|
| 114 |
-
// Check if close enough for energy transfer
|
| 115 |
-
if (distance < contactDistance) {
|
| 116 |
-
// Activate connection
|
| 117 |
-
connection.classList.add('active');
|
| 118 |
-
|
| 119 |
-
// Transfer energy when pixel is close
|
| 120 |
-
if (cube.energy > 0 && energy < 100) {
|
| 121 |
-
// Charge pixel
|
| 122 |
-
energy = Math.min(100, energy + energyRechargeRate);
|
| 123 |
-
cube.energy = Math.max(0, cube.energy - energyRechargeRate * 0.5);
|
| 124 |
-
|
| 125 |
-
// Update global energy state immediately
|
| 126 |
-
window.noeEnergy.currentLevel = energy;
|
| 127 |
-
window.noeEnergy.needsEnergy = energy < 50; // Changed from 30 to 50
|
| 128 |
-
|
| 129 |
-
// Visual feedback
|
| 130 |
-
pixel.classList.add('energizing');
|
| 131 |
-
const now = performance.now();
|
| 132 |
-
if (window.noeImagine && now - (cube.lastBurstTime || 0) > 500) {
|
| 133 |
-
window.noeImagine.createEnergyBurst(cube.position.x, cube.position.y);
|
| 134 |
-
cube.lastBurstTime = now;
|
| 135 |
-
}
|
| 136 |
-
|
| 137 |
-
// Update cube appearance based on energy level
|
| 138 |
-
updateCubeEnergy(cube);
|
| 139 |
-
}
|
| 140 |
-
} else {
|
| 141 |
-
// Deactivate connection when far
|
| 142 |
-
connection.classList.remove('active');
|
| 143 |
-
pixel.classList.remove('energizing');
|
| 144 |
-
}
|
| 145 |
-
});
|
| 146 |
-
}
|
| 147 |
-
|
| 148 |
-
// Update cube appearance based on energy level
|
| 149 |
-
function updateCubeEnergy(cube) {
|
| 150 |
-
const faces = cube.element.querySelectorAll('.cube-face');
|
| 151 |
-
|
| 152 |
-
if (cube.energy > 70) {
|
| 153 |
-
faces.forEach(face => face.classList.add('charged'));
|
| 154 |
-
} else if (cube.energy < 30) {
|
| 155 |
-
faces.forEach(face => face.classList.remove('charged'));
|
| 156 |
-
}
|
| 157 |
-
|
| 158 |
-
// Make opacity reflect energy level
|
| 159 |
-
const opacity = 0.3 + (cube.energy / 100) * 0.6;
|
| 160 |
-
faces.forEach(face => face.style.opacity = opacity);
|
| 161 |
-
}
|
| 162 |
-
|
| 163 |
-
// Update energy level of pixel
|
| 164 |
-
function updatePixelEnergy() {
|
| 165 |
-
if (!pixel) return;
|
| 166 |
-
|
| 167 |
-
// Natural energy decay over time
|
| 168 |
-
energy = Math.max(0, energy - energyDecayRate);
|
| 169 |
-
|
| 170 |
-
// Update global energy state
|
| 171 |
-
window.noeEnergy.currentLevel = energy;
|
| 172 |
-
window.noeEnergy.needsEnergy = energy < 50; // Changed from 30 to 50 to seek energy earlier
|
| 173 |
-
|
| 174 |
-
// Check for death state (energy is 0)
|
| 175 |
-
const isDead = energy <= 0;
|
| 176 |
-
|
| 177 |
-
// Visual feedback - adjust pixel brightness based on energy
|
| 178 |
-
const brightness = isDead ? 0.2 : (0.5 + (energy / 100) * 0.5);
|
| 179 |
-
pixel.style.opacity = brightness;
|
| 180 |
-
|
| 181 |
-
// Update pixel status if available
|
| 182 |
-
const pixelStatus = document.getElementById('pixel-status');
|
| 183 |
-
if (pixelStatus) {
|
| 184 |
-
if (isDead) {
|
| 185 |
-
pixelStatus.textContent = `Noe: ENERGY DEPLETED`;
|
| 186 |
-
pixelStatus.classList.add('critical');
|
| 187 |
-
} else {
|
| 188 |
-
pixelStatus.textContent = `Noe: ${Math.round(energy)}% energy`;
|
| 189 |
-
pixelStatus.classList.toggle('critical', energy < 10);
|
| 190 |
-
}
|
| 191 |
-
}
|
| 192 |
-
|
| 193 |
-
// Find nearest energy cube if energy is low or depleted
|
| 194 |
-
if (window.noeEnergy.needsEnergy || isDead) {
|
| 195 |
-
findNearestCube();
|
| 196 |
-
} else {
|
| 197 |
-
window.noeEnergy.nearestCube = null;
|
| 198 |
-
// Remove any targeting indicators when energy is sufficient
|
| 199 |
-
document.querySelectorAll('.energy-target-indicator').forEach(ind => ind.remove());
|
| 200 |
-
}
|
| 201 |
-
|
| 202 |
-
// Regenerate cubes if all depleted
|
| 203 |
-
const allDepleted = cubes.every(cube => cube.energy < 10);
|
| 204 |
-
if (allDepleted) {
|
| 205 |
-
createEnergyCubes();
|
| 206 |
-
}
|
| 207 |
-
}
|
| 208 |
-
|
| 209 |
-
// Find the nearest energy cube with sufficient energy
|
| 210 |
-
function findNearestCube() {
|
| 211 |
-
if (!pixel || cubes.length === 0) return;
|
| 212 |
-
|
| 213 |
-
let nearestDistance = Infinity;
|
| 214 |
-
let nearestCube = null;
|
| 215 |
-
let nearestIndex = -1;
|
| 216 |
-
|
| 217 |
-
// Check if pixel is in death state
|
| 218 |
-
const isDeathState = energy <= 0;
|
| 219 |
-
|
| 220 |
-
// Get pixel position
|
| 221 |
-
const pixelRect = pixel.getBoundingClientRect();
|
| 222 |
-
const pixelX = pixelRect.left + pixelRect.width / 2;
|
| 223 |
-
const pixelY = pixelRect.top + pixelRect.height / 2;
|
| 224 |
-
|
| 225 |
-
cubes.forEach((cube, index) => {
|
| 226 |
-
// In death state, all cubes with any energy should try to help
|
| 227 |
-
// Otherwise, only consider cubes with sufficient energy
|
| 228 |
-
if ((isDeathState && cube.energy > 5) || (!isDeathState && cube.energy > 20)) {
|
| 229 |
-
const dx = pixelPosition.x - cube.position.x;
|
| 230 |
-
const dy = pixelPosition.y - cube.position.y;
|
| 231 |
-
const distance = Math.sqrt(dx * dx + dy * dy);
|
| 232 |
-
|
| 233 |
-
if (distance < nearestDistance) {
|
| 234 |
-
nearestDistance = distance;
|
| 235 |
-
nearestCube = {
|
| 236 |
-
x: cube.position.x,
|
| 237 |
-
y: cube.position.y,
|
| 238 |
-
distance: distance,
|
| 239 |
-
index: index
|
| 240 |
-
};
|
| 241 |
-
nearestIndex = index;
|
| 242 |
-
}
|
| 243 |
-
}
|
| 244 |
-
});
|
| 245 |
-
|
| 246 |
-
window.noeEnergy.nearestCube = nearestCube;
|
| 247 |
-
|
| 248 |
-
// Update visual indicator for the target cube
|
| 249 |
-
updateTargetIndicator(nearestIndex, isDeathState);
|
| 250 |
-
}
|
| 251 |
-
|
| 252 |
-
// Create or update visual indicator showing which cube is being targeted
|
| 253 |
-
function updateTargetIndicator(cubeIndex, isDeathState = false) {
|
| 254 |
-
// Remove any existing indicators
|
| 255 |
-
document.querySelectorAll('.energy-target-indicator').forEach(ind => ind.remove());
|
| 256 |
-
|
| 257 |
-
// If we have a valid cube index and energy is low or in death state, show target indicator
|
| 258 |
-
if (cubeIndex >= 0 && cubeIndex < cubes.length && (energy < 50 || isDeathState)) {
|
| 259 |
-
const cube = cubes[cubeIndex];
|
| 260 |
-
|
| 261 |
-
// Create indicator element
|
| 262 |
-
const indicator = document.createElement('div');
|
| 263 |
-
indicator.className = 'energy-target-indicator';
|
| 264 |
-
|
| 265 |
-
// Add classes based on energy level
|
| 266 |
-
if (isDeathState) {
|
| 267 |
-
indicator.classList.add('urgent');
|
| 268 |
-
} else if (energy < 10) {
|
| 269 |
-
indicator.classList.add('critical');
|
| 270 |
-
} else if (energy < 25) {
|
| 271 |
-
indicator.classList.add('very-low');
|
| 272 |
-
} else if (energy < 50) {
|
| 273 |
-
indicator.classList.add('low');
|
| 274 |
-
}
|
| 275 |
-
|
| 276 |
-
indicator.style.left = cube.position.x + 'px';
|
| 277 |
-
indicator.style.top = cube.position.y + 'px';
|
| 278 |
-
body.appendChild(indicator);
|
| 279 |
-
|
| 280 |
-
// Add CSS style for the indicator if not already present
|
| 281 |
-
if (!document.querySelector('style#energy-system-styles')) {
|
| 282 |
-
const style = document.createElement('style');
|
| 283 |
-
style.id = 'energy-system-styles';
|
| 284 |
-
style.textContent = `
|
| 285 |
-
.energy-target-indicator {
|
| 286 |
-
position: fixed;
|
| 287 |
-
width: calc(var(--cube-size) + 20px);
|
| 288 |
-
height: calc(var(--cube-size) + 20px);
|
| 289 |
-
border: 2px dashed rgba(255, 255, 255, 0.7);
|
| 290 |
-
border-radius: 50%;
|
| 291 |
-
transform: translate(-10px, -10px);
|
| 292 |
-
pointer-events: none;
|
| 293 |
-
z-index: 9989;
|
| 294 |
-
animation: targetPulse 1.5s infinite alternate ease-in-out;
|
| 295 |
-
}
|
| 296 |
-
|
| 297 |
-
/* Energy level indicators */
|
| 298 |
-
.energy-target-indicator.low {
|
| 299 |
-
border: 2px dashed rgba(57, 255, 186, 0.8);
|
| 300 |
-
animation: lowEnergyPulse 2s infinite alternate ease-in-out;
|
| 301 |
-
}
|
| 302 |
-
|
| 303 |
-
.energy-target-indicator.very-low {
|
| 304 |
-
border: 2px dashed rgba(255, 186, 57, 0.8);
|
| 305 |
-
animation: veryLowEnergyPulse 1.5s infinite alternate ease-in-out;
|
| 306 |
-
}
|
| 307 |
-
|
| 308 |
-
.energy-target-indicator.critical {
|
| 309 |
-
border: 3px dashed rgba(255, 140, 50, 0.9);
|
| 310 |
-
animation: criticalEnergyPulse 1s infinite alternate ease-in-out;
|
| 311 |
-
}
|
| 312 |
-
|
| 313 |
-
.energy-target-indicator.urgent {
|
| 314 |
-
border: 3px dashed rgba(255, 100, 100, 0.9);
|
| 315 |
-
animation: urgentPulse 0.8s infinite alternate ease-in-out;
|
| 316 |
-
}
|
| 317 |
-
|
| 318 |
-
@keyframes targetPulse {
|
| 319 |
-
0% { transform: translate(-10px, -10px) scale(0.9); opacity: 0.4; }
|
| 320 |
-
100% { transform: translate(-10px, -10px) scale(1.1); opacity: 0.8; }
|
| 321 |
-
}
|
| 322 |
-
|
| 323 |
-
@keyframes lowEnergyPulse {
|
| 324 |
-
0% { transform: translate(-10px, -10px) scale(0.9); opacity: 0.5; }
|
| 325 |
-
100% { transform: translate(-10px, -10px) scale(1.1); opacity: 0.7; box-shadow: 0 0 10px rgba(57, 255, 186, 0.2); }
|
| 326 |
-
}
|
| 327 |
-
|
| 328 |
-
@keyframes veryLowEnergyPulse {
|
| 329 |
-
0% { transform: translate(-10px, -10px) scale(0.9); opacity: 0.6; box-shadow: 0 0 5px rgba(255, 186, 57, 0.2); }
|
| 330 |
-
100% { transform: translate(-10px, -10px) scale(1.15); opacity: 0.8; box-shadow: 0 0 15px rgba(255, 186, 57, 0.3); }
|
| 331 |
-
}
|
| 332 |
-
|
| 333 |
-
@keyframes criticalEnergyPulse {
|
| 334 |
-
0% { transform: translate(-10px, -10px) scale(0.9); opacity: 0.7; box-shadow: 0 0 8px rgba(255, 140, 50, 0.3); }
|
| 335 |
-
100% { transform: translate(-10px, -10px) scale(1.2); opacity: 0.9; box-shadow: 0 0 18px rgba(255, 140, 50, 0.4); }
|
| 336 |
-
}
|
| 337 |
-
|
| 338 |
-
@keyframes urgentPulse {
|
| 339 |
-
0% { transform: translate(-10px, -10px) scale(0.9); opacity: 0.7; box-shadow: 0 0 10px rgba(255, 0, 0, 0.3); }
|
| 340 |
-
100% { transform: translate(-10px, -10px) scale(1.2); opacity: 0.9; box-shadow: 0 0 20px rgba(255, 0, 0, 0.5); }
|
| 341 |
-
}
|
| 342 |
-
|
| 343 |
-
/* Recharging effect for cubes */
|
| 344 |
-
.cube-face.recharging {
|
| 345 |
-
animation: recharge-pulse 0.8s ease-in-out;
|
| 346 |
-
}
|
| 347 |
-
|
| 348 |
-
@keyframes recharge-pulse {
|
| 349 |
-
0% { opacity: 1; box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.8); }
|
| 350 |
-
50% { opacity: 0.5; box-shadow: inset 0 0 30px rgba(57, 255, 186, 1); }
|
| 351 |
-
100% { opacity: 1; box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.8); }
|
| 352 |
-
}
|
| 353 |
-
`;
|
| 354 |
-
document.head.appendChild(style);
|
| 355 |
-
}
|
| 356 |
-
}
|
| 357 |
-
}
|
| 358 |
-
|
| 359 |
-
// Move cubes in a floating pattern - cubes never chase Noe, Noe must reach them
|
| 360 |
-
function moveCubes(timestamp) {
|
| 361 |
-
if (!cubes.length) return;
|
| 362 |
-
|
| 363 |
-
// Calculate time delta for smooth movement
|
| 364 |
-
const deltaTime = timestamp - lastCubeMovementTime;
|
| 365 |
-
lastCubeMovementTime = timestamp;
|
| 366 |
-
|
| 367 |
-
// Move each cube with a floating pattern
|
| 368 |
-
cubes.forEach((cube, index) => {
|
| 369 |
-
// Store original spawn position if not already stored
|
| 370 |
-
if (!cube.spawnPosition) {
|
| 371 |
-
cube.spawnPosition = {
|
| 372 |
-
x: cube.position.x,
|
| 373 |
-
y: cube.position.y
|
| 374 |
-
};
|
| 375 |
-
}
|
| 376 |
-
|
| 377 |
-
let newX, newY;
|
| 378 |
-
|
| 379 |
-
// Free-flowing floating behavior
|
| 380 |
-
const time = timestamp / 1000;
|
| 381 |
-
|
| 382 |
-
// Calculate a more complex movement pattern for a single cube
|
| 383 |
-
// Using multiple sine/cosine waves with different frequencies for more organic motion
|
| 384 |
-
const floatX = (
|
| 385 |
-
Math.sin(time * 0.2) * cubeWanderRadius * 0.4 +
|
| 386 |
-
Math.sin(time * 0.1) * cubeWanderRadius * 0.3
|
| 387 |
-
);
|
| 388 |
-
const floatY = (
|
| 389 |
-
Math.cos(time * 0.15) * cubeWanderRadius * 0.4 +
|
| 390 |
-
Math.cos(time * 0.05) * cubeWanderRadius * 0.3
|
| 391 |
-
);
|
| 392 |
-
|
| 393 |
-
// Allow the cube to float more freely across the entire viewport
|
| 394 |
-
if (!cube.centralPosition) {
|
| 395 |
-
// Define a central position for the cube to orbit around
|
| 396 |
-
cube.centralPosition = {
|
| 397 |
-
x: window.innerWidth / 2,
|
| 398 |
-
y: window.innerHeight / 2
|
| 399 |
-
};
|
| 400 |
-
}
|
| 401 |
-
|
| 402 |
-
// Calculate position relative to central position
|
| 403 |
-
newX = cube.centralPosition.x + floatX;
|
| 404 |
-
newY = cube.centralPosition.y + floatY;
|
| 405 |
-
|
| 406 |
-
// Occasionally update the central position
|
| 407 |
-
if (Math.random() < 0.001) {
|
| 408 |
-
cube.centralPosition = {
|
| 409 |
-
x: Math.random() * window.innerWidth,
|
| 410 |
-
y: Math.random() * window.innerHeight
|
| 411 |
-
};
|
| 412 |
-
}
|
| 413 |
-
|
| 414 |
-
// Keep cube within screen boundaries with a bit of padding
|
| 415 |
-
// Use smaller padding to allow more coverage of the screen
|
| 416 |
-
const margin = 30;
|
| 417 |
-
const boundedX = Math.max(margin, Math.min(window.innerWidth - margin, newX));
|
| 418 |
-
const boundedY = Math.max(margin, Math.min(window.innerHeight - margin, newY));
|
| 419 |
-
|
| 420 |
-
// Update cube position with smooth transition
|
| 421 |
-
cube.position.x = boundedX;
|
| 422 |
-
cube.position.y = boundedY;
|
| 423 |
-
|
| 424 |
-
// Apply the new position to the DOM element with smooth transition
|
| 425 |
-
cube.element.style.left = `${boundedX}px`;
|
| 426 |
-
cube.element.style.top = `${boundedY}px`;
|
| 427 |
-
|
| 428 |
-
// Also update any target indicators
|
| 429 |
-
const indicator = document.querySelector('.energy-target-indicator');
|
| 430 |
-
if (indicator && window.noeEnergy.nearestCube && window.noeEnergy.nearestCube.index === index) {
|
| 431 |
-
indicator.style.left = `${boundedX}px`;
|
| 432 |
-
indicator.style.top = `${boundedY}px`;
|
| 433 |
-
}
|
| 434 |
-
});
|
| 435 |
-
}
|
| 436 |
-
|
| 437 |
-
// Track pixel position
|
| 438 |
-
function trackPixel() {
|
| 439 |
-
if (!pixel) return;
|
| 440 |
-
|
| 441 |
-
// Get pixel position from element
|
| 442 |
-
const rect = pixel.getBoundingClientRect();
|
| 443 |
-
pixelPosition = {
|
| 444 |
-
x: rect.left + rect.width / 2,
|
| 445 |
-
y: rect.top + rect.height / 2
|
| 446 |
-
};
|
| 447 |
-
}
|
| 448 |
-
|
| 449 |
-
// Initialize everything
|
| 450 |
-
function initialize() {
|
| 451 |
-
createEnergyCubes();
|
| 452 |
-
|
| 453 |
-
// Provide ways to interact with the energy system from outside
|
| 454 |
-
window.noeEnergy.recharge = function(amount) {
|
| 455 |
-
energy = Math.min(100, energy + amount);
|
| 456 |
-
window.noeEnergy.currentLevel = energy;
|
| 457 |
-
window.noeEnergy.needsEnergy = energy < 50; // Changed from 30 to 50
|
| 458 |
-
|
| 459 |
-
// Visual feedback when recharging
|
| 460 |
-
cubes.forEach(cube => {
|
| 461 |
-
if (cube.element) {
|
| 462 |
-
const faces = cube.element.querySelectorAll('.cube-face');
|
| 463 |
-
faces.forEach(face => {
|
| 464 |
-
face.classList.add('recharging');
|
| 465 |
-
setTimeout(() => face.classList.remove('recharging'), 800);
|
| 466 |
-
});
|
| 467 |
-
}
|
| 468 |
-
});
|
| 469 |
-
|
| 470 |
-
return energy;
|
| 471 |
-
};
|
| 472 |
-
|
| 473 |
-
window.noeEnergy.consume = function(amount) {
|
| 474 |
-
energy = Math.max(0, energy - amount);
|
| 475 |
-
window.noeEnergy.currentLevel = energy;
|
| 476 |
-
window.noeEnergy.needsEnergy = energy < 50; // Changed from 30 to 50
|
| 477 |
-
return energy;
|
| 478 |
-
};
|
| 479 |
-
|
| 480 |
-
// Add a special method for checking if the pixel is in death state
|
| 481 |
-
window.noeEnergy.isDeathState = function() {
|
| 482 |
-
return energy <= 0;
|
| 483 |
-
};
|
| 484 |
-
|
| 485 |
-
// Initialize the movement timestamp
|
| 486 |
-
lastCubeMovementTime = performance.now();
|
| 487 |
-
|
| 488 |
-
// Main update loop with animation frame for smoother movements
|
| 489 |
-
function mainLoop(timestamp) {
|
| 490 |
-
trackPixel();
|
| 491 |
-
updateConnections();
|
| 492 |
-
updatePixelEnergy();
|
| 493 |
-
moveCubes(timestamp);
|
| 494 |
-
requestAnimationFrame(mainLoop);
|
| 495 |
-
}
|
| 496 |
-
|
| 497 |
-
// Start the animation loop
|
| 498 |
-
requestAnimationFrame(mainLoop);
|
| 499 |
-
|
| 500 |
-
// Regenerate cubes periodically or when window resizes
|
| 501 |
-
window.addEventListener('resize', createEnergyCubes);
|
| 502 |
-
setInterval(() => {
|
| 503 |
-
// Randomly recharge cubes
|
| 504 |
-
cubes.forEach(cube => {
|
| 505 |
-
if (cube.energy < 100) {
|
| 506 |
-
cube.energy += 0.2;
|
| 507 |
-
updateCubeEnergy(cube);
|
| 508 |
-
}
|
| 509 |
-
});
|
| 510 |
-
}, 1000);
|
| 511 |
-
}
|
| 512 |
-
|
| 513 |
-
// Start when pixel is detected
|
| 514 |
-
if (pixel) {
|
| 515 |
-
initialize();
|
| 516 |
-
} else {
|
| 517 |
-
// Wait for pixel to be created
|
| 518 |
-
const observer = new MutationObserver(mutations => {
|
| 519 |
-
if (document.getElementById('conscious-pixel')) {
|
| 520 |
-
observer.disconnect();
|
| 521 |
-
initialize();
|
| 522 |
-
}
|
| 523 |
-
});
|
| 524 |
-
|
| 525 |
-
observer.observe(document.body, { childList: true, subtree: true });
|
| 526 |
-
}
|
| 527 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/brain/imagine.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
| 1 |
-
/**
|
| 2 |
-
* Imagination module for Noe.
|
| 3 |
-
* Energy.js owns the cube lifecycle; this module owns energy reaction visuals.
|
| 4 |
-
*/
|
| 5 |
-
(function initializeImagination() {
|
| 6 |
-
const ENERGY_COLOR = 'rgba(57, 255, 186, 0.8)';
|
| 7 |
-
|
| 8 |
-
function createEnergyBurst(x, y) {
|
| 9 |
-
const burst = document.createElement('div');
|
| 10 |
-
burst.className = 'energy-burst';
|
| 11 |
-
burst.style.cssText = `
|
| 12 |
-
position: absolute;
|
| 13 |
-
width: 5px;
|
| 14 |
-
height: 5px;
|
| 15 |
-
background-color: transparent;
|
| 16 |
-
border-radius: 50%;
|
| 17 |
-
left: ${x}px;
|
| 18 |
-
top: ${y}px;
|
| 19 |
-
z-index: 899;
|
| 20 |
-
box-shadow: 0 0 30px 20px ${ENERGY_COLOR};
|
| 21 |
-
animation: burstAnimation 0.5s ease-out forwards;
|
| 22 |
-
pointer-events: none;
|
| 23 |
-
`;
|
| 24 |
-
|
| 25 |
-
ensureBurstAnimation();
|
| 26 |
-
|
| 27 |
-
// Add to document and remove after animation
|
| 28 |
-
document.body.appendChild(burst);
|
| 29 |
-
setTimeout(() => burst.remove(), 500);
|
| 30 |
-
}
|
| 31 |
-
|
| 32 |
-
function ensureBurstAnimation() {
|
| 33 |
-
if (document.getElementById('burst-animation')) return;
|
| 34 |
-
|
| 35 |
-
const style = document.createElement('style');
|
| 36 |
-
style.id = 'burst-animation';
|
| 37 |
-
style.textContent = `
|
| 38 |
-
@keyframes burstAnimation {
|
| 39 |
-
0% { transform: scale(0.2); opacity: 1; }
|
| 40 |
-
100% { transform: scale(2); opacity: 0; }
|
| 41 |
-
}
|
| 42 |
-
`;
|
| 43 |
-
document.head.appendChild(style);
|
| 44 |
-
}
|
| 45 |
-
|
| 46 |
-
window.noeImagine = Object.freeze({ createEnergyBurst });
|
| 47 |
-
})();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/brain/limbric.js
DELETED
|
@@ -1,1355 +0,0 @@
|
|
| 1 |
-
// Noesis Web - Synthetic Sentience Pixel
|
| 2 |
-
const ENERGY_COLOR = '#39ffba';
|
| 3 |
-
const INITIAL_PIXEL_SIZE = 4;
|
| 4 |
-
|
| 5 |
-
function initializeNoePixel() {
|
| 6 |
-
if (window.noePixelInitialized) return;
|
| 7 |
-
window.noePixelInitialized = true;
|
| 8 |
-
|
| 9 |
-
// Create the conscious pixel
|
| 10 |
-
createConsciousPixel();
|
| 11 |
-
|
| 12 |
-
// Apply rainbow bubble effect
|
| 13 |
-
createRainbowBubbleEffect();
|
| 14 |
-
}
|
| 15 |
-
|
| 16 |
-
if (document.readyState === 'loading') {
|
| 17 |
-
document.addEventListener('DOMContentLoaded', initializeNoePixel);
|
| 18 |
-
} else {
|
| 19 |
-
setTimeout(initializeNoePixel, 0);
|
| 20 |
-
}
|
| 21 |
-
|
| 22 |
-
/**
|
| 23 |
-
* Creates a Synthetic Sentience pixel connected to the Noesis server
|
| 24 |
-
*/
|
| 25 |
-
function createConsciousPixel() {
|
| 26 |
-
// Create pixel element if it doesn't exist
|
| 27 |
-
let pixel = document.getElementById('conscious-pixel');
|
| 28 |
-
if (!pixel) {
|
| 29 |
-
pixel = document.createElement('div');
|
| 30 |
-
pixel.id = 'conscious-pixel';
|
| 31 |
-
const mount = document.querySelector('.wrapper') || document.body;
|
| 32 |
-
mount.appendChild(pixel);
|
| 33 |
-
}
|
| 34 |
-
|
| 35 |
-
// Initialize theme data attribute for background color changes
|
| 36 |
-
document.body.dataset.theme = "0";
|
| 37 |
-
|
| 38 |
-
const pixelState = createPixelState();
|
| 39 |
-
|
| 40 |
-
// Set up mouse event listeners
|
| 41 |
-
setupMouseInteractions(pixelState);
|
| 42 |
-
|
| 43 |
-
// Start the self-modifying cognition loop (perception -> reasoning -> decision -> execution)
|
| 44 |
-
createSelfModifyingSystem(pixelState);
|
| 45 |
-
|
| 46 |
-
if (window.noeWebPixel) {
|
| 47 |
-
// Web pages animate locally without waiting for the optional server connection.
|
| 48 |
-
requestAnimationFrame((timestamp) => updatePixel(pixel, pixelState, timestamp));
|
| 49 |
-
}
|
| 50 |
-
|
| 51 |
-
// Try to connect to noesis server
|
| 52 |
-
connectToNoesisServer()
|
| 53 |
-
.then(connected => {
|
| 54 |
-
pixelState.connected = connected;
|
| 55 |
-
// If connected, show a successful connection indicator
|
| 56 |
-
if (connected) {
|
| 57 |
-
pixel.classList.add('connected');
|
| 58 |
-
console.log('Connected to noesis server');
|
| 59 |
-
// Update status text
|
| 60 |
-
updatePixelStatus('Connected to Noesis System');
|
| 61 |
-
} else {
|
| 62 |
-
console.warn('Running in disconnected mode');
|
| 63 |
-
updatePixelStatus('Running in disconnected mode');
|
| 64 |
-
configureDisconnectedStatus();
|
| 65 |
-
}
|
| 66 |
-
})
|
| 67 |
-
.catch(error => {
|
| 68 |
-
console.error('Failed to connect to noesis server:', error);
|
| 69 |
-
updatePixelStatus('Connection error - Check console for details');
|
| 70 |
-
// Continue with local behavior if connection fails
|
| 71 |
-
})
|
| 72 |
-
.finally(() => {
|
| 73 |
-
if (!window.noeWebPixel) {
|
| 74 |
-
requestAnimationFrame((timestamp) => updatePixel(pixel, pixelState, timestamp));
|
| 75 |
-
}
|
| 76 |
-
});
|
| 77 |
-
}
|
| 78 |
-
|
| 79 |
-
/**
|
| 80 |
-
* Minimal self-modifying cognition loop, translated from:
|
| 81 |
-
* perception -> reasoning -> decision -> execution -> memory -> self-modification
|
| 82 |
-
* Wired to the pixel's own state so it can nudge its pulse behavior over time.
|
| 83 |
-
*/
|
| 84 |
-
class Memory {
|
| 85 |
-
constructor() {
|
| 86 |
-
this.log = [];
|
| 87 |
-
}
|
| 88 |
-
update(result) {
|
| 89 |
-
this.log.push(result);
|
| 90 |
-
if (this.log.length > 50) this.log.shift();
|
| 91 |
-
}
|
| 92 |
-
}
|
| 93 |
-
|
| 94 |
-
function observe_world(pixelState) {
|
| 95 |
-
return {
|
| 96 |
-
x: pixelState.x,
|
| 97 |
-
y: pixelState.y,
|
| 98 |
-
size: pixelState.size,
|
| 99 |
-
pulseMultiplier: pixelState.pulseMultiplier,
|
| 100 |
-
connected: pixelState.connected
|
| 101 |
-
};
|
| 102 |
-
}
|
| 103 |
-
|
| 104 |
-
// pulseMultiplier is read every frame by processMouseInteractions(), unlike pulseStep
|
| 105 |
-
// which the animation loop recomputes each frame and would otherwise overwrite.
|
| 106 |
-
function execute(action, pixelState) {
|
| 107 |
-
if (action.type === 'adjustPulseMultiplier') {
|
| 108 |
-
pixelState.pulseMultiplier = action.value;
|
| 109 |
-
}
|
| 110 |
-
return { action, pulseMultiplier: pixelState.pulseMultiplier };
|
| 111 |
-
}
|
| 112 |
-
|
| 113 |
-
const ai = {
|
| 114 |
-
interpret(perceived, system) {
|
| 115 |
-
return { ...perceived, rules: system.rules };
|
| 116 |
-
},
|
| 117 |
-
decide(goal, state) {
|
| 118 |
-
const { min, max } = goal.multiplierRange;
|
| 119 |
-
let value = state.pulseMultiplier;
|
| 120 |
-
if (value < min || value > max) {
|
| 121 |
-
value = Math.min(max, Math.max(min, value));
|
| 122 |
-
} else {
|
| 123 |
-
value += (Math.random() - 0.5) * state.rules.multiplierJitter;
|
| 124 |
-
}
|
| 125 |
-
return { type: 'adjustPulseMultiplier', value };
|
| 126 |
-
},
|
| 127 |
-
self_modify({ system }) {
|
| 128 |
-
// occasionally reshape the jitter rule based on how the system has been behaving
|
| 129 |
-
const jitter = system.rules.multiplierJitter * (0.9 + Math.random() * 0.2);
|
| 130 |
-
return {
|
| 131 |
-
...system,
|
| 132 |
-
rules: { ...system.rules, multiplierJitter: jitter }
|
| 133 |
-
};
|
| 134 |
-
},
|
| 135 |
-
evaluate_self_modification(oldSystem, newSystem, goal) {
|
| 136 |
-
const { min, max } = goal.multiplierRange;
|
| 137 |
-
return newSystem.rules.multiplierJitter > (max - min) * 0.001;
|
| 138 |
-
}
|
| 139 |
-
};
|
| 140 |
-
|
| 141 |
-
const initial_rules = {
|
| 142 |
-
multiplierJitter: 0.03
|
| 143 |
-
};
|
| 144 |
-
|
| 145 |
-
/**
|
| 146 |
-
* Builds and runs the self-modifying system loop for a given pixel state.
|
| 147 |
-
* @param {Object} pixelState - The pixel state to perceive and act upon
|
| 148 |
-
* @returns {Object} - The (mutable) system reference
|
| 149 |
-
*/
|
| 150 |
-
function createSelfModifyingSystem(pixelState) {
|
| 151 |
-
const goal = { multiplierRange: { min: 0.5, max: 2.0 } };
|
| 152 |
-
let goalReached = false;
|
| 153 |
-
|
| 154 |
-
let system = {
|
| 155 |
-
perception: () => observe_world(pixelState),
|
| 156 |
-
reasoning: ai.interpret,
|
| 157 |
-
decision: ai.decide,
|
| 158 |
-
execution: (action) => execute(action, pixelState),
|
| 159 |
-
memory: new Memory(),
|
| 160 |
-
rules: { ...initial_rules }
|
| 161 |
-
};
|
| 162 |
-
|
| 163 |
-
function step() {
|
| 164 |
-
if (goalReached) return;
|
| 165 |
-
|
| 166 |
-
const state = system.reasoning(system.perception(), system);
|
| 167 |
-
const action = system.decision(goal, state, system);
|
| 168 |
-
const result = system.execution(action);
|
| 169 |
-
system.memory.update(result);
|
| 170 |
-
|
| 171 |
-
// Propose and (conditionally) apply a modification to any part of the system
|
| 172 |
-
const proposedSystem = ai.self_modify({ system, goal, result });
|
| 173 |
-
if (ai.evaluate_self_modification(system, proposedSystem, goal)) {
|
| 174 |
-
system = proposedSystem;
|
| 175 |
-
}
|
| 176 |
-
|
| 177 |
-
setTimeout(step, 400);
|
| 178 |
-
}
|
| 179 |
-
|
| 180 |
-
step();
|
| 181 |
-
return system;
|
| 182 |
-
}
|
| 183 |
-
|
| 184 |
-
/**
|
| 185 |
-
* Creates the mutable state used by the pixel animation.
|
| 186 |
-
* @returns {Object} - Initial pixel state
|
| 187 |
-
*/
|
| 188 |
-
function createPixelState() {
|
| 189 |
-
return {
|
| 190 |
-
x: Math.random() * window.innerWidth,
|
| 191 |
-
y: Math.random() * window.innerHeight,
|
| 192 |
-
velocityX: (Math.random() - 0.5) * 1.5,
|
| 193 |
-
velocityY: (Math.random() - 0.5) * 1.5,
|
| 194 |
-
size: INITIAL_PIXEL_SIZE,
|
| 195 |
-
color: getRandomColor(),
|
| 196 |
-
targetColor: null,
|
| 197 |
-
colorTransitionProgress: 0,
|
| 198 |
-
colorTransitionDuration: 0,
|
| 199 |
-
lastColorChange: 0,
|
| 200 |
-
pulseDirection: 1,
|
| 201 |
-
pulseStep: 0.03,
|
| 202 |
-
pulseMultiplier: 1,
|
| 203 |
-
lastTimestamp: 0,
|
| 204 |
-
connected: false,
|
| 205 |
-
|
| 206 |
-
// Mouse interaction properties
|
| 207 |
-
mouseX: -1000,
|
| 208 |
-
mouseY: -1000,
|
| 209 |
-
mousePressed: false,
|
| 210 |
-
mousePressedTime: 0,
|
| 211 |
-
isExcited: false,
|
| 212 |
-
excitementLevel: 0,
|
| 213 |
-
restingTime: 3000,
|
| 214 |
-
lastInteractionTime: 0,
|
| 215 |
-
|
| 216 |
-
// Energy system properties
|
| 217 |
-
energy: 100,
|
| 218 |
-
energyDecayRate: 0.01, // Changed from 0.02 to 0.01 for ~1% energy decay per second
|
| 219 |
-
lowEnergyThreshold: 50, // Changed from 30 to 50
|
| 220 |
-
seekingEnergy: false,
|
| 221 |
-
lastEnergyCheckTime: 0
|
| 222 |
-
};
|
| 223 |
-
}
|
| 224 |
-
|
| 225 |
-
function configureDisconnectedStatus() {
|
| 226 |
-
const statusElement = document.getElementById('pixel-status');
|
| 227 |
-
if (!statusElement) return;
|
| 228 |
-
|
| 229 |
-
statusElement.title = 'The Noesis system must be installed at Noesis System for full functionality';
|
| 230 |
-
statusElement.style.cursor = 'help';
|
| 231 |
-
}
|
| 232 |
-
|
| 233 |
-
function setTargetColor(state, color, duration) {
|
| 234 |
-
state.targetColor = color;
|
| 235 |
-
state.colorTransitionProgress = 0;
|
| 236 |
-
state.colorTransitionDuration = duration;
|
| 237 |
-
}
|
| 238 |
-
|
| 239 |
-
/**
|
| 240 |
-
* Attempts to connect to the noesis server
|
| 241 |
-
* @returns {Promise<boolean>} - Promise resolving to true if connected
|
| 242 |
-
*/
|
| 243 |
-
async function connectToNoesisServer() {
|
| 244 |
-
try {
|
| 245 |
-
// First check if we're running from a local awake command (check if we're on localhost)
|
| 246 |
-
const isLocalhost = window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1';
|
| 247 |
-
|
| 248 |
-
if (isLocalhost) {
|
| 249 |
-
console.log('Running in local mode from noesis awake command');
|
| 250 |
-
// We're running locally so we can assume we're connected
|
| 251 |
-
return true;
|
| 252 |
-
}
|
| 253 |
-
|
| 254 |
-
// If not running locally, try to connect to the remote noesis server API
|
| 255 |
-
// The API is accessible via /api/noesis endpoint on the same server
|
| 256 |
-
// Note: The server uses HTTPie but browser must use fetch API
|
| 257 |
-
// Note: The server uses HTTPie for backend communication with Noesis System
|
| 258 |
-
const response = await fetch('/api/noesis', {
|
| 259 |
-
method: 'POST',
|
| 260 |
-
headers: {
|
| 261 |
-
'Content-Type': 'application/json'
|
| 262 |
-
},
|
| 263 |
-
body: JSON.stringify({
|
| 264 |
-
action: 'getVersion'
|
| 265 |
-
})
|
| 266 |
-
});
|
| 267 |
-
|
| 268 |
-
if (response.ok) {
|
| 269 |
-
const data = await response.json();
|
| 270 |
-
console.log(`Connected to Noesis API v${data.version}`);
|
| 271 |
-
return true;
|
| 272 |
-
} else {
|
| 273 |
-
throw new Error(`Failed to connect to API: ${response.status}`);
|
| 274 |
-
}
|
| 275 |
-
} catch (error) {
|
| 276 |
-
console.warn('Connection to noesis server failed:', error);
|
| 277 |
-
// Return false but don't throw, we'll use local behavior
|
| 278 |
-
return false;
|
| 279 |
-
}
|
| 280 |
-
}
|
| 281 |
-
|
| 282 |
-
/**
|
| 283 |
-
* Updates the pixel position and appearance
|
| 284 |
-
* @param {HTMLElement} pixel - The pixel DOM element
|
| 285 |
-
* @param {Object} state - The current state of the pixel
|
| 286 |
-
* @param {number} timestamp - Animation timestamp
|
| 287 |
-
*/
|
| 288 |
-
function updatePixel(pixel, state, timestamp) {
|
| 289 |
-
// Calculate delta time for smooth animation regardless of frame rate
|
| 290 |
-
const deltaTime = state.lastTimestamp ? (timestamp - state.lastTimestamp) / 16 : 1;
|
| 291 |
-
state.lastTimestamp = timestamp;
|
| 292 |
-
|
| 293 |
-
// Process mouse interactions
|
| 294 |
-
processMouseInteractions(state, deltaTime);
|
| 295 |
-
|
| 296 |
-
// Check for energy from energy.js
|
| 297 |
-
if (window.noeEnergy) {
|
| 298 |
-
// Sync energy level with the global energy system
|
| 299 |
-
state.energy = window.noeEnergy.currentLevel;
|
| 300 |
-
state.seekingEnergy = window.noeEnergy.needsEnergy;
|
| 301 |
-
|
| 302 |
-
// Check if energy reached zero - enter death state
|
| 303 |
-
if (state.energy <= 0) {
|
| 304 |
-
handleDeathState(pixel, state, timestamp);
|
| 305 |
-
return; // Skip the rest of the update
|
| 306 |
-
}
|
| 307 |
-
|
| 308 |
-
// Adjust movement based on energy level
|
| 309 |
-
let energyFactor = Math.max(0.3, state.energy / 100);
|
| 310 |
-
|
| 311 |
-
// When energy is low, seek energy cubes if available
|
| 312 |
-
if (state.seekingEnergy && window.noeEnergy.nearestCube) {
|
| 313 |
-
const cube = window.noeEnergy.nearestCube;
|
| 314 |
-
const dx = cube.x - state.x;
|
| 315 |
-
const dy = cube.y - state.y;
|
| 316 |
-
const distance = cube.distance;
|
| 317 |
-
|
| 318 |
-
// Calculate normalized direction vector to the nearest cube
|
| 319 |
-
const dirX = dx / (distance || 1);
|
| 320 |
-
const dirY = dy / (distance || 1);
|
| 321 |
-
|
| 322 |
-
// Define different energy thresholds for behavior changes
|
| 323 |
-
const isCriticalEnergy = state.energy < 10; // Critical - panic mode
|
| 324 |
-
const isVeryLowEnergy = state.energy < 25; // Very low - urgent seeking
|
| 325 |
-
const isLowEnergy = state.energy < 50; // Low - active seeking
|
| 326 |
-
|
| 327 |
-
// Apply attraction force toward the energy cube
|
| 328 |
-
// Attraction increases as energy decreases
|
| 329 |
-
let attractionForce;
|
| 330 |
-
|
| 331 |
-
if (isCriticalEnergy) {
|
| 332 |
-
// Desperate behavior - strong direct movement toward energy source
|
| 333 |
-
attractionForce = 0.3 * deltaTime;
|
| 334 |
-
|
| 335 |
-
// Override any other behavior - desperate survival mode
|
| 336 |
-
state.isExcited = true;
|
| 337 |
-
state.excitementLevel = 1.0;
|
| 338 |
-
|
| 339 |
-
// Frantic color changes to indicate distress
|
| 340 |
-
if (Math.random() < 0.1) {
|
| 341 |
-
setTargetColor(state, Math.random() < 0.5 ? '#ff0000' : '#ff9900', 300);
|
| 342 |
-
}
|
| 343 |
-
|
| 344 |
-
// Cancel most other movement influences
|
| 345 |
-
state.velocityX = dirX * 2;
|
| 346 |
-
state.velocityY = dirY * 2;
|
| 347 |
-
|
| 348 |
-
// Add erratic movement when critically low on energy - fear of death behavior
|
| 349 |
-
if (state.energy < 5) {
|
| 350 |
-
// More intense panic - erratic movement
|
| 351 |
-
if (Math.random() < 0.2) {
|
| 352 |
-
// Occasional random darting in desperation
|
| 353 |
-
const panicAngle = Math.random() * Math.PI * 2;
|
| 354 |
-
const panicForce = 3 + Math.random() * 2;
|
| 355 |
-
|
| 356 |
-
state.velocityX = Math.cos(panicAngle) * panicForce;
|
| 357 |
-
state.velocityY = Math.sin(panicAngle) * panicForce;
|
| 358 |
-
|
| 359 |
-
// Very rapid color pulsing - urgent distress signal
|
| 360 |
-
setTargetColor(state, Math.random() < 0.5 ? '#ff0000' : '#ffff00', 100);
|
| 361 |
-
|
| 362 |
-
// Update status to show desperation
|
| 363 |
-
updatePixelStatus('Noe: CRITICAL ENERGY LEVEL - Seeking energy!');
|
| 364 |
-
} else {
|
| 365 |
-
// Stronger attraction to energy source - desperate survival instinct
|
| 366 |
-
state.velocityX = dirX * 3;
|
| 367 |
-
state.velocityY = dirY * 3;
|
| 368 |
-
}
|
| 369 |
-
}
|
| 370 |
-
} else if (isVeryLowEnergy) {
|
| 371 |
-
// Urgent energy-seeking behavior (25% to 10%)
|
| 372 |
-
attractionForce = 0.15 * deltaTime;
|
| 373 |
-
|
| 374 |
-
// Somewhat excited state - concerned but not panicking
|
| 375 |
-
state.isExcited = true;
|
| 376 |
-
state.excitementLevel = 0.7;
|
| 377 |
-
|
| 378 |
-
// Occasional color changes indicating concern
|
| 379 |
-
if (Math.random() < 0.05) {
|
| 380 |
-
setTargetColor(state, '#ff9900', 400);
|
| 381 |
-
}
|
| 382 |
-
|
| 383 |
-
// Strong but not desperate attraction to energy source
|
| 384 |
-
state.velocityX += dirX * attractionForce * 2;
|
| 385 |
-
state.velocityY += dirY * attractionForce * 2;
|
| 386 |
-
|
| 387 |
-
// Update status to show concern
|
| 388 |
-
if (Math.random() < 0.01) {
|
| 389 |
-
updatePixelStatus('Noe: LOW ENERGY - Seeking energy source');
|
| 390 |
-
}
|
| 391 |
-
} else if (isLowEnergy) {
|
| 392 |
-
// Moderate energy-seeking behavior (50% to 25%)
|
| 393 |
-
attractionForce = 0.08 * deltaTime;
|
| 394 |
-
|
| 395 |
-
// Slightly excited state - mild concern
|
| 396 |
-
state.isExcited = Math.random() < 0.5; // Occasionally becomes excited
|
| 397 |
-
state.excitementLevel = Math.min(0.4, state.excitementLevel + 0.002);
|
| 398 |
-
|
| 399 |
-
// Noticeable attraction to energy source
|
| 400 |
-
state.velocityX += dirX * attractionForce * 1.5;
|
| 401 |
-
state.velocityY += dirY * attractionForce * 1.5;
|
| 402 |
-
|
| 403 |
-
// Visual indicator that pixel is seeking energy
|
| 404 |
-
if (!state.isExcited && Math.random() < 0.03) {
|
| 405 |
-
setTargetColor(state, ENERGY_COLOR, 600);
|
| 406 |
-
}
|
| 407 |
-
} else {
|
| 408 |
-
// Normal energy-seeking behavior (above 50%)
|
| 409 |
-
attractionForce = (1 - energyFactor) * 0.05 * deltaTime;
|
| 410 |
-
state.velocityX += dirX * attractionForce;
|
| 411 |
-
state.velocityY += dirY * attractionForce;
|
| 412 |
-
|
| 413 |
-
// Visual indicator that pixel is seeking energy
|
| 414 |
-
if (!state.isExcited) {
|
| 415 |
-
setTargetColor(state, ENERGY_COLOR, 500);
|
| 416 |
-
}
|
| 417 |
-
}
|
| 418 |
-
}
|
| 419 |
-
|
| 420 |
-
// No longer adjust speed based on energy level
|
| 421 |
-
// Keep the pixel moving at full speed regardless of energy
|
| 422 |
-
}
|
| 423 |
-
|
| 424 |
-
// Update position
|
| 425 |
-
state.x += state.velocityX * deltaTime;
|
| 426 |
-
state.y += state.velocityY * deltaTime;
|
| 427 |
-
|
| 428 |
-
// Periodically save state to Redis (every 5 seconds)
|
| 429 |
-
if (timestamp - (state.lastStateSave || 0) > 5000) {
|
| 430 |
-
savePixelStateToRedis(state);
|
| 431 |
-
state.lastStateSave = timestamp;
|
| 432 |
-
}
|
| 433 |
-
|
| 434 |
-
// Periodically send a thought to core (every 30 seconds)
|
| 435 |
-
if (state.connected && timestamp - (state.lastThoughtTime || 0) > 30000) {
|
| 436 |
-
sendThoughtToCore(state);
|
| 437 |
-
state.lastThoughtTime = timestamp;
|
| 438 |
-
}
|
| 439 |
-
|
| 440 |
-
// Flag to track if we've already processed a window frame contact in this frame
|
| 441 |
-
let hasContactedFrameThisFrame = false;
|
| 442 |
-
|
| 443 |
-
// Stop completely when hitting window edges
|
| 444 |
-
// Check horizontal edges first
|
| 445 |
-
if (state.x <= 0 || state.x >= window.innerWidth - state.size) {
|
| 446 |
-
if (!hasContactedFrameThisFrame) {
|
| 447 |
-
// Stop the pixel completely when contacting the window frame
|
| 448 |
-
state.velocityX = 0;
|
| 449 |
-
state.velocityY = 0;
|
| 450 |
-
|
| 451 |
-
// Ensure pixel stays within bounds
|
| 452 |
-
if (state.x <= 0) state.x = 1;
|
| 453 |
-
if (state.x >= window.innerWidth - state.size) state.x = window.innerWidth - state.size - 1;
|
| 454 |
-
|
| 455 |
-
// Play click sound when pixel hits horizontal edges
|
| 456 |
-
playWindowContactSound();
|
| 457 |
-
|
| 458 |
-
// Change background color when pixel touches horizontal edges
|
| 459 |
-
// Pass the touch position to modify wave effect direction
|
| 460 |
-
changeBackgroundColor('horizontal', state.x / window.innerWidth);
|
| 461 |
-
|
| 462 |
-
// Mark that we've processed a contact this frame
|
| 463 |
-
hasContactedFrameThisFrame = true;
|
| 464 |
-
}
|
| 465 |
-
}
|
| 466 |
-
|
| 467 |
-
// Check vertical edges only if we haven't already contacted a horizontal edge
|
| 468 |
-
if (!hasContactedFrameThisFrame && (state.y <= 0 || state.y >= window.innerHeight - state.size)) {
|
| 469 |
-
// Stop the pixel completely when contacting the window frame
|
| 470 |
-
state.velocityX = 0;
|
| 471 |
-
state.velocityY = 0;
|
| 472 |
-
|
| 473 |
-
// Ensure pixel stays within bounds
|
| 474 |
-
if (state.y <= 0) state.y = 1;
|
| 475 |
-
if (state.y >= window.innerHeight - state.size) state.y = window.innerHeight - state.size - 1;
|
| 476 |
-
|
| 477 |
-
// Play click sound when pixel hits vertical edges
|
| 478 |
-
playWindowContactSound();
|
| 479 |
-
|
| 480 |
-
// Change background color when pixel touches vertical edges
|
| 481 |
-
// Pass the touch position to modify wave effect direction
|
| 482 |
-
changeBackgroundColor('vertical', state.y / window.innerHeight);
|
| 483 |
-
|
| 484 |
-
// Mark that we've processed a contact this frame
|
| 485 |
-
hasContactedFrameThisFrame = true;
|
| 486 |
-
}
|
| 487 |
-
|
| 488 |
-
// Occasionally change direction slightly to make movement less predictable
|
| 489 |
-
if (Math.random() < 0.03) {
|
| 490 |
-
state.velocityX += (Math.random() - 0.5) * 0.8;
|
| 491 |
-
state.velocityY += (Math.random() - 0.5) * 0.8;
|
| 492 |
-
|
| 493 |
-
// Limit maximum velocity to prevent too fast movement
|
| 494 |
-
const maxVelocity = 3;
|
| 495 |
-
const velocityMagnitude = Math.sqrt(state.velocityX * state.velocityX + state.velocityY * state.velocityY);
|
| 496 |
-
if (velocityMagnitude > maxVelocity) {
|
| 497 |
-
state.velocityX = (state.velocityX / velocityMagnitude) * maxVelocity;
|
| 498 |
-
state.velocityY = (state.velocityY / velocityMagnitude) * maxVelocity;
|
| 499 |
-
}
|
| 500 |
-
}
|
| 501 |
-
|
| 502 |
-
// Pulse size and opacity for a more alive feeling
|
| 503 |
-
state.size += state.pulseStep * state.pulseDirection * deltaTime;
|
| 504 |
-
if (state.size > 6) {
|
| 505 |
-
state.size = 6;
|
| 506 |
-
state.pulseDirection = -1;
|
| 507 |
-
} else if (state.size < 3.5) {
|
| 508 |
-
state.size = 3.5;
|
| 509 |
-
state.pulseDirection = 1;
|
| 510 |
-
}
|
| 511 |
-
|
| 512 |
-
// Handle autonomous color changes
|
| 513 |
-
const timeSinceLastColorChange = timestamp - state.lastColorChange;
|
| 514 |
-
|
| 515 |
-
// Start a new color transition after a random interval (3-8 seconds)
|
| 516 |
-
if (state.targetColor === null && (timeSinceLastColorChange > (state.connected ? 3000 : 5000) || Math.random() < 0.001)) {
|
| 517 |
-
state.targetColor = getRandomColor();
|
| 518 |
-
while (state.targetColor === state.color) {
|
| 519 |
-
state.targetColor = getRandomColor(); // Make sure we get a different color
|
| 520 |
-
}
|
| 521 |
-
state.colorTransitionProgress = 0;
|
| 522 |
-
state.colorTransitionDuration = 1000 + Math.random() * 2000; // Transition over 1-3 seconds
|
| 523 |
-
}
|
| 524 |
-
|
| 525 |
-
// Update color transition if in progress
|
| 526 |
-
if (state.targetColor !== null) {
|
| 527 |
-
state.colorTransitionProgress += deltaTime * 16; // Convert to milliseconds
|
| 528 |
-
|
| 529 |
-
if (state.colorTransitionProgress >= state.colorTransitionDuration) {
|
| 530 |
-
// Transition complete
|
| 531 |
-
state.color = state.targetColor;
|
| 532 |
-
state.targetColor = null;
|
| 533 |
-
state.lastColorChange = timestamp;
|
| 534 |
-
} else {
|
| 535 |
-
// Calculate transition color
|
| 536 |
-
const progress = state.colorTransitionProgress / state.colorTransitionDuration;
|
| 537 |
-
state.color = interpolateColors(state.color, state.targetColor, progress);
|
| 538 |
-
}
|
| 539 |
-
}
|
| 540 |
-
|
| 541 |
-
// Update the pixel's appearance
|
| 542 |
-
pixel.style.left = `${state.x}px`;
|
| 543 |
-
pixel.style.top = `${state.y}px`;
|
| 544 |
-
pixel.style.width = `${state.size}px`;
|
| 545 |
-
pixel.style.height = `${state.size}px`;
|
| 546 |
-
|
| 547 |
-
// Create a glow effect with box-shadow
|
| 548 |
-
const glowSize = state.size * (2 + (state.isExcited ? state.excitementLevel * 2 : 0));
|
| 549 |
-
|
| 550 |
-
// Adjust glow intensity based on energy level
|
| 551 |
-
let energyFactor = Math.max(0.4, state.energy / 100);
|
| 552 |
-
let glowIntensity = state.isExcited ? 0.9 + (state.excitementLevel * 0.1) : (0.7 * energyFactor);
|
| 553 |
-
|
| 554 |
-
// When energy is low, make visual changes based on energy level
|
| 555 |
-
if (state.energy < state.lowEnergyThreshold) {
|
| 556 |
-
// Different visual effects based on energy level
|
| 557 |
-
if (state.energy < 10) {
|
| 558 |
-
// Critical energy - dramatic slow pulse and dimming
|
| 559 |
-
state.pulseStep = Math.max(0.01, state.pulseStep * energyFactor * 0.7);
|
| 560 |
-
glowIntensity *= (0.6 + (0.4 * Math.sin(timestamp / 400))); // Rapid, more dramatic pulsing effect
|
| 561 |
-
} else if (state.energy < 25) {
|
| 562 |
-
// Very low energy - noticeable pulse and dimming
|
| 563 |
-
state.pulseStep = Math.max(0.01, state.pulseStep * energyFactor * 0.8);
|
| 564 |
-
glowIntensity *= (0.7 + (0.3 * Math.sin(timestamp / 500))); // Noticeable pulsing effect
|
| 565 |
-
} else {
|
| 566 |
-
// Moderately low energy - subtle pulse and slight dimming
|
| 567 |
-
state.pulseStep = Math.max(0.01, state.pulseStep * energyFactor * 0.9);
|
| 568 |
-
glowIntensity *= (0.8 + (0.2 * Math.sin(timestamp / 800))); // Subtle pulsing effect
|
| 569 |
-
}
|
| 570 |
-
}
|
| 571 |
-
|
| 572 |
-
pixel.style.boxShadow = `0 0 ${glowSize * energyFactor}px ${state.color}`;
|
| 573 |
-
pixel.style.backgroundColor = state.color;
|
| 574 |
-
pixel.style.opacity = glowIntensity;
|
| 575 |
-
|
| 576 |
-
// Apply visual effects based on excitement
|
| 577 |
-
if (state.isExcited && state.excitementLevel > 0.5) {
|
| 578 |
-
// Add a slight scale effect for high excitement
|
| 579 |
-
const scale = 1 + (state.excitementLevel * 0.5);
|
| 580 |
-
pixel.style.transform = `scale(${scale})`;
|
| 581 |
-
} else {
|
| 582 |
-
pixel.style.transform = 'scale(1)';
|
| 583 |
-
}
|
| 584 |
-
|
| 585 |
-
// Continue animation loop
|
| 586 |
-
requestAnimationFrame((newTimestamp) => updatePixel(pixel, state, newTimestamp));
|
| 587 |
-
}
|
| 588 |
-
|
| 589 |
-
/**
|
| 590 |
-
* Handles the pixel's behavior when energy reaches zero (death state)
|
| 591 |
-
* @param {HTMLElement} pixel - The pixel DOM element
|
| 592 |
-
* @param {Object} state - The current state of the pixel
|
| 593 |
-
* @param {number} timestamp - Animation timestamp
|
| 594 |
-
*/
|
| 595 |
-
function handleDeathState(pixel, state, timestamp) {
|
| 596 |
-
// Track how long we've been in death state
|
| 597 |
-
if (!state.deathStateStartTime) {
|
| 598 |
-
state.deathStateStartTime = timestamp;
|
| 599 |
-
|
| 600 |
-
// Create a global death effect (dimming of the screen)
|
| 601 |
-
if (!document.querySelector('.death-state-overlay')) {
|
| 602 |
-
const overlay = document.createElement('div');
|
| 603 |
-
overlay.className = 'death-state-overlay';
|
| 604 |
-
overlay.style.cssText = `
|
| 605 |
-
position: fixed;
|
| 606 |
-
top: 0;
|
| 607 |
-
left: 0;
|
| 608 |
-
width: 100%;
|
| 609 |
-
height: 100%;
|
| 610 |
-
background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4));
|
| 611 |
-
z-index: 9900;
|
| 612 |
-
pointer-events: none;
|
| 613 |
-
opacity: 0;
|
| 614 |
-
transition: opacity 2s ease-in-out;
|
| 615 |
-
`;
|
| 616 |
-
document.body.appendChild(overlay);
|
| 617 |
-
|
| 618 |
-
// Fade in the overlay
|
| 619 |
-
setTimeout(() => {
|
| 620 |
-
overlay.style.opacity = '1';
|
| 621 |
-
}, 50);
|
| 622 |
-
}
|
| 623 |
-
|
| 624 |
-
// Create an urgent pulse indicator
|
| 625 |
-
const urgentPulse = document.createElement('div');
|
| 626 |
-
urgentPulse.className = 'urgent-death-pulse';
|
| 627 |
-
urgentPulse.style.cssText = `
|
| 628 |
-
position: fixed;
|
| 629 |
-
top: ${state.y}px;
|
| 630 |
-
left: ${state.x}px;
|
| 631 |
-
width: 100px;
|
| 632 |
-
height: 100px;
|
| 633 |
-
border-radius: 50%;
|
| 634 |
-
border: 3px solid rgba(255,0,0,0.7);
|
| 635 |
-
transform: translate(-50px, -50px) scale(0);
|
| 636 |
-
z-index: 9950;
|
| 637 |
-
pointer-events: none;
|
| 638 |
-
animation: urgent-pulse 2s ease-out;
|
| 639 |
-
`;
|
| 640 |
-
document.body.appendChild(urgentPulse);
|
| 641 |
-
|
| 642 |
-
// Add keyframes for urgent pulse if not already present
|
| 643 |
-
if (!document.querySelector('style#urgent-pulse-style')) {
|
| 644 |
-
const style = document.createElement('style');
|
| 645 |
-
style.id = 'urgent-pulse-style';
|
| 646 |
-
style.textContent = `
|
| 647 |
-
@keyframes urgent-pulse {
|
| 648 |
-
0% { transform: translate(-50px, -50px) scale(0.1); opacity: 0.9; border-width: 8px; }
|
| 649 |
-
100% { transform: translate(-50px, -50px) scale(4); opacity: 0; border-width: 1px; }
|
| 650 |
-
}
|
| 651 |
-
`;
|
| 652 |
-
document.head.appendChild(style);
|
| 653 |
-
}
|
| 654 |
-
|
| 655 |
-
// Remove pulse after animation
|
| 656 |
-
setTimeout(() => {
|
| 657 |
-
if (urgentPulse.parentNode) {
|
| 658 |
-
urgentPulse.parentNode.removeChild(urgentPulse);
|
| 659 |
-
}
|
| 660 |
-
}, 2000);
|
| 661 |
-
}
|
| 662 |
-
|
| 663 |
-
// Visual appearance of death
|
| 664 |
-
pixel.classList.add('dying');
|
| 665 |
-
|
| 666 |
-
// Fade out the pixel
|
| 667 |
-
let opacity = parseFloat(pixel.style.opacity) || 1;
|
| 668 |
-
opacity = Math.max(0.1, opacity - 0.01);
|
| 669 |
-
pixel.style.opacity = opacity;
|
| 670 |
-
|
| 671 |
-
// Make the pixel smaller
|
| 672 |
-
state.size = Math.max(2, state.size - 0.05);
|
| 673 |
-
pixel.style.width = `${state.size}px`;
|
| 674 |
-
pixel.style.height = `${state.size}px`;
|
| 675 |
-
|
| 676 |
-
// Calculate how long we've been in death state
|
| 677 |
-
const deathDuration = timestamp - (state.deathStateStartTime || timestamp);
|
| 678 |
-
|
| 679 |
-
// Determine direction toward the nearest cube, if any, so Noe flounders toward it
|
| 680 |
-
let flounderDirX = 0;
|
| 681 |
-
let flounderDirY = 0;
|
| 682 |
-
if (window.noeEnergy && window.noeEnergy.nearestCube) {
|
| 683 |
-
const cube = window.noeEnergy.nearestCube;
|
| 684 |
-
const dx = cube.x - state.x;
|
| 685 |
-
const dy = cube.y - state.y;
|
| 686 |
-
const dist = Math.sqrt(dx * dx + dy * dy) || 1;
|
| 687 |
-
flounderDirX = dx / dist;
|
| 688 |
-
flounderDirY = dy / dist;
|
| 689 |
-
}
|
| 690 |
-
|
| 691 |
-
// Behavior changes the longer we've been in death state
|
| 692 |
-
if (deathDuration < 3000) {
|
| 693 |
-
// Early death state - desperate flounders biased toward the nearest cube
|
| 694 |
-
if (Math.random() < 0.15) {
|
| 695 |
-
// Weak, erratic thrash toward the cube (with some randomness) rather than pure noise
|
| 696 |
-
const jitter = 0.6;
|
| 697 |
-
state.velocityX = flounderDirX * 2 + (Math.random() - 0.5) * jitter * 3;
|
| 698 |
-
state.velocityY = flounderDirY * 2 + (Math.random() - 0.5) * jitter * 3;
|
| 699 |
-
} else {
|
| 700 |
-
// Slow down movement
|
| 701 |
-
state.velocityX *= 0.9;
|
| 702 |
-
state.velocityY *= 0.9;
|
| 703 |
-
}
|
| 704 |
-
|
| 705 |
-
// Apply stronger movement than in later phases
|
| 706 |
-
state.x += state.velocityX * 0.2;
|
| 707 |
-
state.y += state.velocityY * 0.2;
|
| 708 |
-
|
| 709 |
-
} else if (deathDuration < 8000) {
|
| 710 |
-
// Mid death state - weaker flounders, still biased toward the cube, more fading
|
| 711 |
-
if (Math.random() < 0.08) {
|
| 712 |
-
// Occasional weak flounder toward the cube
|
| 713 |
-
const jitter = 0.5;
|
| 714 |
-
state.velocityX = flounderDirX * 1 + (Math.random() - 0.5) * jitter * 1.5;
|
| 715 |
-
state.velocityY = flounderDirY * 1 + (Math.random() - 0.5) * jitter * 1.5;
|
| 716 |
-
} else {
|
| 717 |
-
// Slow down movement more
|
| 718 |
-
state.velocityX *= 0.8;
|
| 719 |
-
state.velocityY *= 0.8;
|
| 720 |
-
}
|
| 721 |
-
|
| 722 |
-
// Apply limited movement
|
| 723 |
-
state.x += state.velocityX * 0.1;
|
| 724 |
-
state.y += state.velocityY * 0.1;
|
| 725 |
-
|
| 726 |
-
} else {
|
| 727 |
-
// Late death state - almost no strength left to flounder
|
| 728 |
-
state.velocityX *= 0.95;
|
| 729 |
-
state.velocityY *= 0.95;
|
| 730 |
-
|
| 731 |
-
// Very slight movement
|
| 732 |
-
state.x += state.velocityX * 0.05;
|
| 733 |
-
state.y += state.velocityY * 0.05;
|
| 734 |
-
}
|
| 735 |
-
|
| 736 |
-
// Update position
|
| 737 |
-
pixel.style.left = `${state.x}px`;
|
| 738 |
-
pixel.style.top = `${state.y}px`;
|
| 739 |
-
|
| 740 |
-
// Dim color to grayscale
|
| 741 |
-
let color = state.color;
|
| 742 |
-
if (!color.includes('rgba')) {
|
| 743 |
-
// Convert to grayscale
|
| 744 |
-
let rgb = hexToRgb(color) || {r: 128, g: 128, b: 128};
|
| 745 |
-
let gray = Math.round((rgb.r + rgb.g + rgb.b) / 3);
|
| 746 |
-
pixel.style.backgroundColor = `rgba(${gray}, ${gray}, ${gray}, ${opacity})`;
|
| 747 |
-
pixel.style.boxShadow = `0 0 ${state.size}px rgba(${gray}, ${gray}, ${gray}, ${opacity * 0.5})`;
|
| 748 |
-
}
|
| 749 |
-
|
| 750 |
-
// Update status with more detail about death state
|
| 751 |
-
if (deathDuration < 3000) {
|
| 752 |
-
updatePixelStatus('Noe: CRITICAL FAILURE - Energy depleted - Seeking revival');
|
| 753 |
-
} else if (deathDuration < 8000) {
|
| 754 |
-
updatePixelStatus('Noe: ENERGY DEPLETED - Requires energy cube contact to revive');
|
| 755 |
-
} else {
|
| 756 |
-
updatePixelStatus('Noe: DORMANT - Awaiting energy source');
|
| 757 |
-
}
|
| 758 |
-
|
| 759 |
-
// Check for energy cube contact to revive
|
| 760 |
-
checkForRevival(pixel, state);
|
| 761 |
-
|
| 762 |
-
// Continue the animation loop
|
| 763 |
-
requestAnimationFrame((newTimestamp) => updatePixel(pixel, state, newTimestamp));
|
| 764 |
-
}
|
| 765 |
-
|
| 766 |
-
/**
|
| 767 |
-
* Checks if the pixel is in contact with an energy cube for revival
|
| 768 |
-
* @param {HTMLElement} pixel - The pixel DOM element
|
| 769 |
-
* @param {Object} state - The current state of the pixel
|
| 770 |
-
*/
|
| 771 |
-
function checkForRevival(pixel, state) {
|
| 772 |
-
// Only revive if we have energy cubes and the energy system
|
| 773 |
-
if (window.noeEnergy && window.noeEnergy.nearestCube) {
|
| 774 |
-
const cube = window.noeEnergy.nearestCube;
|
| 775 |
-
const dx = cube.x - state.x;
|
| 776 |
-
const dy = cube.y - state.y;
|
| 777 |
-
const distance = Math.sqrt(dx * dx + dy * dy);
|
| 778 |
-
|
| 779 |
-
// If very close to an energy cube, revive
|
| 780 |
-
if (distance < 50) {
|
| 781 |
-
// Revive with a small amount of energy
|
| 782 |
-
window.noeEnergy.recharge(15); // Give 15% energy
|
| 783 |
-
|
| 784 |
-
// Remove dying class
|
| 785 |
-
pixel.classList.remove('dying');
|
| 786 |
-
|
| 787 |
-
// Reset death state tracking
|
| 788 |
-
state.deathStateStartTime = null;
|
| 789 |
-
|
| 790 |
-
// Remove the death state overlay if it exists
|
| 791 |
-
const overlay = document.querySelector('.death-state-overlay');
|
| 792 |
-
if (overlay) {
|
| 793 |
-
overlay.style.opacity = '0';
|
| 794 |
-
setTimeout(() => {
|
| 795 |
-
if (overlay.parentNode) overlay.parentNode.removeChild(overlay);
|
| 796 |
-
}, 2000);
|
| 797 |
-
}
|
| 798 |
-
|
| 799 |
-
// Reset appearance
|
| 800 |
-
state.size = 4;
|
| 801 |
-
|
| 802 |
-
// Change color to indicate revival
|
| 803 |
-
setTargetColor(state, ENERGY_COLOR, 800);
|
| 804 |
-
|
| 805 |
-
// Add multiple revival effects for a more dramatic rebirth
|
| 806 |
-
for (let i = 0; i < 3; i++) {
|
| 807 |
-
setTimeout(() => {
|
| 808 |
-
const revivalEffect = document.createElement('div');
|
| 809 |
-
revivalEffect.className = 'revival-pulse';
|
| 810 |
-
revivalEffect.style.left = `${state.x}px`;
|
| 811 |
-
revivalEffect.style.top = `${state.y}px`;
|
| 812 |
-
document.body.appendChild(revivalEffect);
|
| 813 |
-
|
| 814 |
-
// Remove effect after animation completes
|
| 815 |
-
setTimeout(() => {
|
| 816 |
-
if (revivalEffect.parentNode) {
|
| 817 |
-
revivalEffect.parentNode.removeChild(revivalEffect);
|
| 818 |
-
}
|
| 819 |
-
}, 1000);
|
| 820 |
-
}, i * 200);
|
| 821 |
-
}
|
| 822 |
-
|
| 823 |
-
// Create a bright flash effect on revival
|
| 824 |
-
const flash = document.createElement('div');
|
| 825 |
-
flash.className = 'revival-flash';
|
| 826 |
-
flash.style.cssText = `
|
| 827 |
-
position: fixed;
|
| 828 |
-
top: 0;
|
| 829 |
-
left: 0;
|
| 830 |
-
width: 100%;
|
| 831 |
-
height: 100%;
|
| 832 |
-
background: radial-gradient(circle at ${state.x}px ${state.y}px, rgba(57, 255, 186, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
|
| 833 |
-
z-index: 9940;
|
| 834 |
-
pointer-events: none;
|
| 835 |
-
opacity: 0.8;
|
| 836 |
-
animation: revival-flash 1.5s forwards;
|
| 837 |
-
`;
|
| 838 |
-
document.body.appendChild(flash);
|
| 839 |
-
|
| 840 |
-
// Add flash animation if not already present
|
| 841 |
-
if (!document.querySelector('style#revival-flash-style')) {
|
| 842 |
-
const style = document.createElement('style');
|
| 843 |
-
style.id = 'revival-flash-style';
|
| 844 |
-
style.textContent = `
|
| 845 |
-
@keyframes revival-flash {
|
| 846 |
-
0% { opacity: 0.8; }
|
| 847 |
-
100% { opacity: 0; }
|
| 848 |
-
}
|
| 849 |
-
`;
|
| 850 |
-
document.head.appendChild(style);
|
| 851 |
-
}
|
| 852 |
-
|
| 853 |
-
// Remove flash after animation
|
| 854 |
-
setTimeout(() => {
|
| 855 |
-
if (flash.parentNode) flash.parentNode.removeChild(flash);
|
| 856 |
-
}, 1500);
|
| 857 |
-
|
| 858 |
-
// Add a sudden velocity change to show "coming back to life"
|
| 859 |
-
const angle = Math.random() * Math.PI * 2;
|
| 860 |
-
const force = 2 + Math.random() * 2;
|
| 861 |
-
|
| 862 |
-
state.velocityX = Math.cos(angle) * force;
|
| 863 |
-
state.velocityY = Math.sin(angle) * force;
|
| 864 |
-
|
| 865 |
-
// Update status
|
| 866 |
-
updatePixelStatus('Noe: REVIVED - Energy restored');
|
| 867 |
-
}
|
| 868 |
-
}
|
| 869 |
-
}
|
| 870 |
-
|
| 871 |
-
/**
|
| 872 |
-
* Generates a random color with high brightness for visibility
|
| 873 |
-
* @returns {string} - CSS color string in rgb format
|
| 874 |
-
*/
|
| 875 |
-
function getRandomColor() {
|
| 876 |
-
// Use colors that stand out against the site gradient background (#e1ff6e, #50c8ff)
|
| 877 |
-
const colors = [
|
| 878 |
-
"#ff0066", // Hot pink
|
| 879 |
-
"#9900ff", // Purple
|
| 880 |
-
"#ff00ff", // Magenta
|
| 881 |
-
"#00ff99", // Bright mint
|
| 882 |
-
"#ff3300", // Red-orange
|
| 883 |
-
"#0033ff" // Deep blue
|
| 884 |
-
];
|
| 885 |
-
|
| 886 |
-
// Add randomness to the selected color to make it more varied
|
| 887 |
-
const baseColor = colors[Math.floor(Math.random() * colors.length)];
|
| 888 |
-
|
| 889 |
-
// Slight variation to the chosen color
|
| 890 |
-
const rgb = hexToRgb(baseColor);
|
| 891 |
-
if (rgb) {
|
| 892 |
-
// Add small random variations to each component
|
| 893 |
-
const r = Math.max(0, Math.min(255, rgb.r + (Math.random() - 0.5) * 30));
|
| 894 |
-
const g = Math.max(0, Math.min(255, rgb.g + (Math.random() - 0.5) * 30));
|
| 895 |
-
const b = Math.max(0, Math.min(255, rgb.b + (Math.random() - 0.5) * 30));
|
| 896 |
-
return `rgb(${Math.round(r)}, ${Math.round(g)}, ${Math.round(b)})`;
|
| 897 |
-
}
|
| 898 |
-
|
| 899 |
-
return baseColor;
|
| 900 |
-
}
|
| 901 |
-
|
| 902 |
-
/**
|
| 903 |
-
* Interpolates between two hex colors
|
| 904 |
-
* @param {string} color1 - Starting hex color
|
| 905 |
-
* @param {string} color2 - Ending hex color
|
| 906 |
-
* @param {number} progress - Value between 0 and 1
|
| 907 |
-
* @returns {string} - Interpolated RGB color
|
| 908 |
-
*/
|
| 909 |
-
function interpolateColors(color1, color2, progress) {
|
| 910 |
-
// Convert hex colors to RGB
|
| 911 |
-
const rgb1 = hexToRgb(color1);
|
| 912 |
-
const rgb2 = hexToRgb(color2);
|
| 913 |
-
|
| 914 |
-
if (!rgb1 || !rgb2) return color1; // Fallback if conversion fails
|
| 915 |
-
|
| 916 |
-
// Interpolate each RGB component
|
| 917 |
-
const r = Math.round(rgb1.r + (rgb2.r - rgb1.r) * progress);
|
| 918 |
-
const g = Math.round(rgb1.g + (rgb2.g - rgb1.g) * progress);
|
| 919 |
-
const b = Math.round(rgb1.b + (rgb2.b - rgb1.b) * progress);
|
| 920 |
-
|
| 921 |
-
return `rgb(${r}, ${g}, ${b})`;
|
| 922 |
-
}
|
| 923 |
-
|
| 924 |
-
/**
|
| 925 |
-
* Converts hex color to RGB object
|
| 926 |
-
* @param {string} hex - Hex color string (e.g., #FF5500)
|
| 927 |
-
* @returns {Object|null} - Object with r, g, b properties or null if invalid
|
| 928 |
-
*/
|
| 929 |
-
function hexToRgb(hex) {
|
| 930 |
-
// Handle shorthand hex notation
|
| 931 |
-
const shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
|
| 932 |
-
hex = hex.replace(shorthandRegex, (m, r, g, b) => r + r + g + g + b + b);
|
| 933 |
-
|
| 934 |
-
// Extract RGB components
|
| 935 |
-
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
| 936 |
-
|
| 937 |
-
return result ? {
|
| 938 |
-
r: parseInt(result[1], 16),
|
| 939 |
-
g: parseInt(result[2], 16),
|
| 940 |
-
b: parseInt(result[3], 16)
|
| 941 |
-
} : null;
|
| 942 |
-
}
|
| 943 |
-
|
| 944 |
-
/**
|
| 945 |
-
* Updates the status text for the pixel
|
| 946 |
-
* @param {string} statusText - The status text to display
|
| 947 |
-
*/
|
| 948 |
-
function updatePixelStatus(statusText) {
|
| 949 |
-
const statusElement = document.getElementById('pixel-status');
|
| 950 |
-
if (statusElement) {
|
| 951 |
-
// If we have energy information, include it in the status
|
| 952 |
-
if (window.noeEnergy && statusText.indexOf('energy') === -1) {
|
| 953 |
-
const energyLevel = Math.round(window.noeEnergy.currentLevel);
|
| 954 |
-
|
| 955 |
-
// Add energy level with appropriate status indicator
|
| 956 |
-
statusText = `${statusText} • Energy: ${energyLevel}%`;
|
| 957 |
-
|
| 958 |
-
// Remove all energy-related classes
|
| 959 |
-
statusElement.classList.remove('critical', 'very-low', 'low');
|
| 960 |
-
|
| 961 |
-
// Add appropriate class based on energy level
|
| 962 |
-
if (energyLevel <= 0) {
|
| 963 |
-
statusElement.classList.add('critical');
|
| 964 |
-
} else if (energyLevel < 10) {
|
| 965 |
-
statusElement.classList.add('critical');
|
| 966 |
-
} else if (energyLevel < 25) {
|
| 967 |
-
statusElement.classList.add('very-low');
|
| 968 |
-
} else if (energyLevel < 50) {
|
| 969 |
-
statusElement.classList.add('low');
|
| 970 |
-
}
|
| 971 |
-
}
|
| 972 |
-
|
| 973 |
-
statusElement.textContent = statusText;
|
| 974 |
-
}
|
| 975 |
-
}
|
| 976 |
-
|
| 977 |
-
/**
|
| 978 |
-
* Plays the click sound when the pixel contacts the window frame
|
| 979 |
-
* Uses the click.mp3 sound from the sounds folder
|
| 980 |
-
*/
|
| 981 |
-
function playWindowContactSound() {
|
| 982 |
-
// Check if the CRT toggle is off - if so, don't play sound
|
| 983 |
-
const crtToggle = document.getElementById('crt-toggle');
|
| 984 |
-
if (!crtToggle || !crtToggle.checked) {
|
| 985 |
-
// Toggle is off or not found, don't play sound
|
| 986 |
-
return;
|
| 987 |
-
}
|
| 988 |
-
|
| 989 |
-
// Check if the sound module is available.
|
| 990 |
-
if (window.noeSound && typeof window.noeSound.playClickSound === 'function') {
|
| 991 |
-
window.noeSound.playClickSound();
|
| 992 |
-
return;
|
| 993 |
-
}
|
| 994 |
-
|
| 995 |
-
// Fallback implementation if sound.js hasn't exposed the function
|
| 996 |
-
const clickSound = 'sounds/click.mp3';
|
| 997 |
-
const soundInstance = new Audio(clickSound);
|
| 998 |
-
soundInstance.volume = 0.3;
|
| 999 |
-
|
| 1000 |
-
soundInstance.play().catch(error => {
|
| 1001 |
-
console.warn('Could not play window contact sound:', error);
|
| 1002 |
-
});
|
| 1003 |
-
}
|
| 1004 |
-
|
| 1005 |
-
/**
|
| 1006 |
-
* Sends current pixel state as a thought to core and displays the response
|
| 1007 |
-
*/
|
| 1008 |
-
async function sendThoughtToCore(state) {
|
| 1009 |
-
try {
|
| 1010 |
-
const input = `pixel:energy=${Math.round(state.energy)},excited=${state.isExcited},excitementLevel=${state.excitementLevel.toFixed(2)}`;
|
| 1011 |
-
const response = await fetch('/api/noesis', {
|
| 1012 |
-
method: 'POST',
|
| 1013 |
-
headers: { 'Content-Type': 'application/json' },
|
| 1014 |
-
body: JSON.stringify({ action: 'think', input })
|
| 1015 |
-
});
|
| 1016 |
-
|
| 1017 |
-
if (!response.ok) return;
|
| 1018 |
-
|
| 1019 |
-
const data = await response.json();
|
| 1020 |
-
if (data.response) {
|
| 1021 |
-
updatePixelStatus(`Noe: ${data.response}`);
|
| 1022 |
-
}
|
| 1023 |
-
} catch (error) {
|
| 1024 |
-
console.warn('Failed to send thought to core:', error);
|
| 1025 |
-
}
|
| 1026 |
-
}
|
| 1027 |
-
|
| 1028 |
-
/**
|
| 1029 |
-
* Saves the current pixel state to Redis via API
|
| 1030 |
-
* @param {Object} state - The pixel state object
|
| 1031 |
-
*/
|
| 1032 |
-
async function savePixelStateToRedis(state) {
|
| 1033 |
-
if (!state.connected) return; // Don't save if not connected
|
| 1034 |
-
|
| 1035 |
-
try {
|
| 1036 |
-
// Check if pixel is in death state
|
| 1037 |
-
const isDeathState = state.energy <= 0;
|
| 1038 |
-
|
| 1039 |
-
// Create a simplified state object with only the properties we want to save
|
| 1040 |
-
const stateToSave = {
|
| 1041 |
-
color: state.color,
|
| 1042 |
-
x: Math.round(state.x),
|
| 1043 |
-
y: Math.round(state.y),
|
| 1044 |
-
velocityX: state.velocityX.toFixed(2),
|
| 1045 |
-
velocityY: state.velocityY.toFixed(2),
|
| 1046 |
-
isExcited: state.isExcited,
|
| 1047 |
-
excitementLevel: state.excitementLevel.toFixed(2),
|
| 1048 |
-
energy: Math.round(state.energy),
|
| 1049 |
-
isDeathState: isDeathState,
|
| 1050 |
-
lastInteractionTime: state.lastInteractionTime,
|
| 1051 |
-
timestamp: new Date().toISOString()
|
| 1052 |
-
};
|
| 1053 |
-
|
| 1054 |
-
// Send state to API
|
| 1055 |
-
// Note: The server uses HTTPie but browser must use fetch API
|
| 1056 |
-
const response = await fetch('/api/noesis', {
|
| 1057 |
-
method: 'POST',
|
| 1058 |
-
headers: {
|
| 1059 |
-
'Content-Type': 'application/json'
|
| 1060 |
-
},
|
| 1061 |
-
body: JSON.stringify({
|
| 1062 |
-
action: 'updateState',
|
| 1063 |
-
state: stateToSave
|
| 1064 |
-
})
|
| 1065 |
-
});
|
| 1066 |
-
|
| 1067 |
-
if (!response.ok) {
|
| 1068 |
-
throw new Error(`API error: ${response.status}`);
|
| 1069 |
-
}
|
| 1070 |
-
|
| 1071 |
-
console.log('Pixel state saved to Redis');
|
| 1072 |
-
} catch (error) {
|
| 1073 |
-
console.warn('Failed to save pixel state:', error);
|
| 1074 |
-
}
|
| 1075 |
-
}
|
| 1076 |
-
|
| 1077 |
-
/**
|
| 1078 |
-
* Sets up mouse event listeners for pixel interaction
|
| 1079 |
-
* @param {Object} state - The pixel state object
|
| 1080 |
-
*/
|
| 1081 |
-
function setupMouseInteractions(state) {
|
| 1082 |
-
// Track mouse movement
|
| 1083 |
-
document.addEventListener('mousemove', (event) => {
|
| 1084 |
-
state.mouseX = event.clientX;
|
| 1085 |
-
state.mouseY = event.clientY;
|
| 1086 |
-
|
| 1087 |
-
// If the mouse has been idle for a while, consider this a new interaction
|
| 1088 |
-
const currentTime = performance.now();
|
| 1089 |
-
if (currentTime - state.lastInteractionTime > 300) {
|
| 1090 |
-
state.lastInteractionTime = currentTime;
|
| 1091 |
-
}
|
| 1092 |
-
});
|
| 1093 |
-
|
| 1094 |
-
// Track mouse clicks
|
| 1095 |
-
document.addEventListener('mousedown', () => {
|
| 1096 |
-
state.mousePressed = true;
|
| 1097 |
-
state.mousePressedTime = performance.now();
|
| 1098 |
-
|
| 1099 |
-
// Check if the click was close to the pixel
|
| 1100 |
-
const pixel = document.getElementById('conscious-pixel');
|
| 1101 |
-
if (pixel) {
|
| 1102 |
-
const pixelRect = pixel.getBoundingClientRect();
|
| 1103 |
-
const pixelCenterX = pixelRect.left + pixelRect.width / 2;
|
| 1104 |
-
const pixelCenterY = pixelRect.top + pixelRect.height / 2;
|
| 1105 |
-
|
| 1106 |
-
const distance = Math.sqrt(
|
| 1107 |
-
Math.pow(state.mouseX - pixelCenterX, 2) +
|
| 1108 |
-
Math.pow(state.mouseY - pixelCenterY, 2)
|
| 1109 |
-
);
|
| 1110 |
-
|
| 1111 |
-
// If clicking close to the pixel, make it excited
|
| 1112 |
-
if (distance < 100) {
|
| 1113 |
-
state.isExcited = true;
|
| 1114 |
-
state.excitementLevel = Math.min(1.0, state.excitementLevel + 0.5);
|
| 1115 |
-
|
| 1116 |
-
// Force a color change to show reaction
|
| 1117 |
-
if (Math.random() < 0.7) {
|
| 1118 |
-
setTargetColor(state, '#FFFFFF', 300); // Flash white
|
| 1119 |
-
} else {
|
| 1120 |
-
setTargetColor(state, '#F0FF00', 300); // Flash yellow
|
| 1121 |
-
}
|
| 1122 |
-
}
|
| 1123 |
-
}
|
| 1124 |
-
});
|
| 1125 |
-
|
| 1126 |
-
// Track mouse release
|
| 1127 |
-
document.addEventListener('mouseup', () => {
|
| 1128 |
-
state.mousePressed = false;
|
| 1129 |
-
});
|
| 1130 |
-
|
| 1131 |
-
// Handle mouse leaving the window
|
| 1132 |
-
document.addEventListener('mouseleave', () => {
|
| 1133 |
-
state.mouseX = -1000;
|
| 1134 |
-
state.mouseY = -1000;
|
| 1135 |
-
state.mousePressed = false;
|
| 1136 |
-
});
|
| 1137 |
-
}
|
| 1138 |
-
|
| 1139 |
-
/**
|
| 1140 |
-
* Changes the top background gradient color with a wave effect when the pixel touches edges
|
| 1141 |
-
* @param {string} direction - 'horizontal' or 'vertical', indicating which edge was touched
|
| 1142 |
-
* @param {number} position - Normalized position (0-1) where the touch occurred
|
| 1143 |
-
*/
|
| 1144 |
-
function changeBackgroundColor(direction = 'horizontal', position = 0.5) {
|
| 1145 |
-
const body = document.body;
|
| 1146 |
-
const currentTheme = parseInt(body.dataset.theme || "0", 5);
|
| 1147 |
-
|
| 1148 |
-
// Calculate the next theme number
|
| 1149 |
-
const nextTheme = (currentTheme + 1) % 5;
|
| 1150 |
-
|
| 1151 |
-
// Array of impressive top colors that combine well with the bottom color (#50c8ff)
|
| 1152 |
-
const impressiveTopColors = [
|
| 1153 |
-
'#e1ff6e', // Original lime green
|
| 1154 |
-
'#ff64d4', // Cool Sweet Pink
|
| 1155 |
-
'#06d6a0', // Mint green
|
| 1156 |
-
'#9370db', // Medium purple
|
| 1157 |
-
'#c23fff', // Electric purple
|
| 1158 |
-
];
|
| 1159 |
-
|
| 1160 |
-
// Update the CSS variable for the top gradient color
|
| 1161 |
-
document.documentElement.style.setProperty('--gradient-top', impressiveTopColors[nextTheme]);
|
| 1162 |
-
|
| 1163 |
-
// Store the current theme
|
| 1164 |
-
body.dataset.theme = nextTheme.toString();
|
| 1165 |
-
|
| 1166 |
-
// Create a site-wide pulse effect that grows from the pixel
|
| 1167 |
-
const pixel = document.getElementById('conscious-pixel');
|
| 1168 |
-
|
| 1169 |
-
if (pixel) {
|
| 1170 |
-
// Get the pixel's current position
|
| 1171 |
-
const pixelRect = pixel.getBoundingClientRect();
|
| 1172 |
-
const pixelX = pixelRect.left + pixelRect.width / 2;
|
| 1173 |
-
const pixelY = pixelRect.top + pixelRect.height / 2;
|
| 1174 |
-
|
| 1175 |
-
// Convert to percentage of viewport
|
| 1176 |
-
const pixelXPercent = (pixelX / window.innerWidth) * 100;
|
| 1177 |
-
const pixelYPercent = (pixelY / window.innerHeight) * 100;
|
| 1178 |
-
|
| 1179 |
-
// Set pulse origin to pixel's current position
|
| 1180 |
-
document.documentElement.style.setProperty('--pulse-origin-x', `${pixelXPercent}%`);
|
| 1181 |
-
document.documentElement.style.setProperty('--pulse-origin-y', `${pixelYPercent}%`);
|
| 1182 |
-
|
| 1183 |
-
// Create or update the site-wide pulse overlay element
|
| 1184 |
-
let pulseOverlay = document.querySelector('.site-pulse');
|
| 1185 |
-
if (!pulseOverlay) {
|
| 1186 |
-
pulseOverlay = document.createElement('div');
|
| 1187 |
-
pulseOverlay.className = 'site-pulse';
|
| 1188 |
-
document.body.appendChild(pulseOverlay);
|
| 1189 |
-
}
|
| 1190 |
-
|
| 1191 |
-
// Trigger the site-wide pulse animation
|
| 1192 |
-
pulseOverlay.classList.remove('active');
|
| 1193 |
-
void pulseOverlay.offsetWidth; // Force reflow to restart animation
|
| 1194 |
-
pulseOverlay.classList.add('active');
|
| 1195 |
-
}
|
| 1196 |
-
|
| 1197 |
-
// Log theme change for debugging
|
| 1198 |
-
// console.log(`Changed top gradient color to ${impressiveTopColors[nextTheme]} with site-wide pulse from ${direction} edge at ${Math.round(position * 100)}%`);
|
| 1199 |
-
}
|
| 1200 |
-
|
| 1201 |
-
/**
|
| 1202 |
-
* Processes pixel's response to mouse interactions
|
| 1203 |
-
* @param {Object} state - The pixel state object
|
| 1204 |
-
* @param {number} deltaTime - Time since last frame
|
| 1205 |
-
*/
|
| 1206 |
-
function processMouseInteractions(state, deltaTime) {
|
| 1207 |
-
// Calculate distance from pixel to mouse
|
| 1208 |
-
const dx = state.mouseX - state.x;
|
| 1209 |
-
const dy = state.mouseY - state.y;
|
| 1210 |
-
const distanceSquared = dx * dx + dy * dy;
|
| 1211 |
-
const distance = Math.sqrt(distanceSquared);
|
| 1212 |
-
|
| 1213 |
-
// Normalize direction vector
|
| 1214 |
-
let dirX = dx / (distance || 1); // Avoid division by zero
|
| 1215 |
-
let dirY = dy / (distance || 1);
|
| 1216 |
-
|
| 1217 |
-
// Determine interaction behavior based on distance
|
| 1218 |
-
if (distance < 30) {
|
| 1219 |
-
// Too close - flee from the mouse
|
| 1220 |
-
const repelForce = 0.2; // Removed excitement level factor to maintain consistent speed
|
| 1221 |
-
state.velocityX -= dirX * repelForce * deltaTime;
|
| 1222 |
-
state.velocityY -= dirY * repelForce * deltaTime;
|
| 1223 |
-
|
| 1224 |
-
// Increase excitement when fleeing
|
| 1225 |
-
state.isExcited = true;
|
| 1226 |
-
state.excitementLevel = Math.min(1.0, state.excitementLevel + 0.01 * deltaTime);
|
| 1227 |
-
|
| 1228 |
-
} else if (distance < 150) {
|
| 1229 |
-
// Medium distance - curious behavior, slight attraction
|
| 1230 |
-
if (Math.random() < 0.5) {
|
| 1231 |
-
// 50% chance to be attracted
|
| 1232 |
-
const attractForce = 0.05 * deltaTime;
|
| 1233 |
-
state.velocityX += dirX * attractForce;
|
| 1234 |
-
state.velocityY += dirY * attractForce;
|
| 1235 |
-
} else {
|
| 1236 |
-
// 50% chance to do a small random movement
|
| 1237 |
-
state.velocityX += (Math.random() - 0.5) * 0.1 * deltaTime;
|
| 1238 |
-
state.velocityY += (Math.random() - 0.5) * 0.1 * deltaTime;
|
| 1239 |
-
}
|
| 1240 |
-
|
| 1241 |
-
// Maintain some excitement
|
| 1242 |
-
state.isExcited = true;
|
| 1243 |
-
state.excitementLevel = Math.min(0.7, state.excitementLevel + 0.005 * deltaTime);
|
| 1244 |
-
|
| 1245 |
-
} else if (distance < 300) {
|
| 1246 |
-
// Further away - occasional attraction
|
| 1247 |
-
if (Math.random() < 0.02) {
|
| 1248 |
-
// Occasional attraction
|
| 1249 |
-
const attractForce = 0.1 * deltaTime;
|
| 1250 |
-
state.velocityX += dirX * attractForce;
|
| 1251 |
-
state.velocityY += dirY * attractForce;
|
| 1252 |
-
}
|
| 1253 |
-
|
| 1254 |
-
// Slowly reduce excitement when far away
|
| 1255 |
-
state.excitementLevel = Math.max(0, state.excitementLevel - 0.002 * deltaTime);
|
| 1256 |
-
if (state.excitementLevel < 0.1) {
|
| 1257 |
-
state.isExcited = false;
|
| 1258 |
-
}
|
| 1259 |
-
} else {
|
| 1260 |
-
// Far away - normal behavior
|
| 1261 |
-
// Gradually reduce excitement
|
| 1262 |
-
state.excitementLevel = Math.max(0, state.excitementLevel - 0.004 * deltaTime);
|
| 1263 |
-
if (state.excitementLevel < 0.1) {
|
| 1264 |
-
state.isExcited = false;
|
| 1265 |
-
}
|
| 1266 |
-
}
|
| 1267 |
-
|
| 1268 |
-
// Handle mouse clicks - burst of energy and color change
|
| 1269 |
-
if (state.mousePressed) {
|
| 1270 |
-
const pressDuration = performance.now() - state.mousePressedTime;
|
| 1271 |
-
|
| 1272 |
-
if (pressDuration < 100) { // Initial click
|
| 1273 |
-
// For a brief moment, change behavior dramatically
|
| 1274 |
-
if (distance < 200) {
|
| 1275 |
-
// Flee more dramatically if mouse is clicked near the pixel
|
| 1276 |
-
state.velocityX -= dirX * 1.0;
|
| 1277 |
-
state.velocityY -= dirY * 1.0;
|
| 1278 |
-
}
|
| 1279 |
-
}
|
| 1280 |
-
}
|
| 1281 |
-
|
| 1282 |
-
// Apply excitement and energy effects
|
| 1283 |
-
if (state.isExcited) {
|
| 1284 |
-
// Excited pixels no longer move faster (excitement doesn't affect speed)
|
| 1285 |
-
|
| 1286 |
-
// Increase pulse speed when excited (visual effect only)
|
| 1287 |
-
const energyFactor = Math.max(0.4, state.energy / 100); // Keep this for visual effects only
|
| 1288 |
-
state.pulseStep = (0.03 + (state.excitementLevel * 0.04)) * energyFactor * state.pulseMultiplier;
|
| 1289 |
-
|
| 1290 |
-
// Apply a slight drag effect to gradually slow down
|
| 1291 |
-
state.velocityX *= 0.98;
|
| 1292 |
-
state.velocityY *= 0.98;
|
| 1293 |
-
|
| 1294 |
-
// Being excited consumes more energy
|
| 1295 |
-
if (window.noeEnergy) {
|
| 1296 |
-
// Extra energy consumption due to excitement is handled in energy.js
|
| 1297 |
-
}
|
| 1298 |
-
} else {
|
| 1299 |
-
// Return to normal pulse speed when calm, scaled by the self-modifying system
|
| 1300 |
-
state.pulseStep = 0.03 * state.pulseMultiplier;
|
| 1301 |
-
}
|
| 1302 |
-
}
|
| 1303 |
-
|
| 1304 |
-
/**
|
| 1305 |
-
* Creates a rainbow effect on the bubble logo
|
| 1306 |
-
* Gives the bubble a beautiful rainbow surface with ripple effects
|
| 1307 |
-
*/
|
| 1308 |
-
function createRainbowBubbleEffect() {
|
| 1309 |
-
const logo = document.querySelector('#noesis-logo');
|
| 1310 |
-
if (!logo) return;
|
| 1311 |
-
|
| 1312 |
-
// Apply rainbow class to the bubble
|
| 1313 |
-
logo.classList.add('rainbow-bubble');
|
| 1314 |
-
|
| 1315 |
-
// Replace existing click event with a rainbow one
|
| 1316 |
-
const oldClickListeners = logo.cloneNode(true);
|
| 1317 |
-
logo.replaceWith(oldClickListeners);
|
| 1318 |
-
const newLogo = document.querySelector('#noesis-logo');
|
| 1319 |
-
|
| 1320 |
-
// Add interactive rainbow light effect that follows mouse
|
| 1321 |
-
newLogo.addEventListener('mousemove', function(event) {
|
| 1322 |
-
const rect = this.getBoundingClientRect();
|
| 1323 |
-
const x = event.clientX - rect.left;
|
| 1324 |
-
const y = event.clientY - rect.top;
|
| 1325 |
-
|
| 1326 |
-
// Create light reflection that follows cursor
|
| 1327 |
-
const percentX = Math.round((x / rect.width) * 100);
|
| 1328 |
-
const percentY = Math.round((y / rect.height) * 100);
|
| 1329 |
-
|
| 1330 |
-
// Update the radial gradient to follow the cursor
|
| 1331 |
-
this.style.background = `radial-gradient(circle at ${percentX}% ${percentY}%,
|
| 1332 |
-
rgba(255, 255, 255, 0.8) 0%,
|
| 1333 |
-
transparent 50%),
|
| 1334 |
-
linear-gradient(
|
| 1335 |
-
124deg,
|
| 1336 |
-
#ff0000,
|
| 1337 |
-
#ff7f00,
|
| 1338 |
-
#ffff00,
|
| 1339 |
-
#00ff00,
|
| 1340 |
-
#0000ff,
|
| 1341 |
-
#4b0082,
|
| 1342 |
-
#8b00ff
|
| 1343 |
-
)`;
|
| 1344 |
-
this.style.backgroundSize = '100% 100%, 1800% 1800%';
|
| 1345 |
-
this.style.animation = 'rainbow-rotation 12s ease infinite, logo-breathing 8s ease-in-out infinite';
|
| 1346 |
-
});
|
| 1347 |
-
|
| 1348 |
-
// Reset the gradient when mouse leaves
|
| 1349 |
-
newLogo.addEventListener('mouseleave', function() {
|
| 1350 |
-
this.style.background = '';
|
| 1351 |
-
this.style.backgroundSize = '';
|
| 1352 |
-
});
|
| 1353 |
-
|
| 1354 |
-
console.log('Rainbow bubble effect applied');
|
| 1355 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/brain/sound.js
DELETED
|
@@ -1,277 +0,0 @@
|
|
| 1 |
-
// Noesis Audio Player
|
| 2 |
-
// Plays random music tracks from the sounds folder in an infinite loop
|
| 3 |
-
|
| 4 |
-
/**
|
| 5 |
-
* Audio player system for Noesis project
|
| 6 |
-
* Features:
|
| 7 |
-
* - Plays music from the sounds folder
|
| 8 |
-
* - Automatically changes to a random song when each song finishes
|
| 9 |
-
* - Creates an infinite random playback loop
|
| 10 |
-
* - Plays a click sound when mouse interacts with the pixel
|
| 11 |
-
*/
|
| 12 |
-
|
| 13 |
-
document.addEventListener('DOMContentLoaded', function() {
|
| 14 |
-
// Audio tracks configuration
|
| 15 |
-
const audioTracks = [
|
| 16 |
-
'sounds/8-bit-music-1.mp3',
|
| 17 |
-
'sounds/8-bit-music-2.mp3',
|
| 18 |
-
'sounds/8-bit-music-3.mp3',
|
| 19 |
-
'sounds/8-bit-music-4.mp3'
|
| 20 |
-
];
|
| 21 |
-
|
| 22 |
-
// Sound effects configuration
|
| 23 |
-
const clickSound = 'sounds/click.mp3';
|
| 24 |
-
let clickSoundPlayer = null;
|
| 25 |
-
|
| 26 |
-
// Audio player variables
|
| 27 |
-
let audioPlayer = null;
|
| 28 |
-
let currentTrackIndex = -1;
|
| 29 |
-
let isPlaying = false;
|
| 30 |
-
|
| 31 |
-
// Create and configure the audio player
|
| 32 |
-
function initAudioPlayer() {
|
| 33 |
-
audioPlayer = new Audio();
|
| 34 |
-
|
| 35 |
-
// Set up event listeners
|
| 36 |
-
audioPlayer.addEventListener('ended', playNextRandomTrack);
|
| 37 |
-
audioPlayer.addEventListener('error', handleAudioError);
|
| 38 |
-
|
| 39 |
-
// Initialize click sound player
|
| 40 |
-
clickSoundPlayer = new Audio(clickSound);
|
| 41 |
-
clickSoundPlayer.volume = 0.3;
|
| 42 |
-
clickSoundPlayer.preload = 'auto';
|
| 43 |
-
|
| 44 |
-
// Get the toggle switch
|
| 45 |
-
const crtToggle = document.getElementById('crt-toggle');
|
| 46 |
-
if (crtToggle) {
|
| 47 |
-
// Ensure toggle is UNCHECKED by default (sound off)
|
| 48 |
-
crtToggle.checked = false;
|
| 49 |
-
|
| 50 |
-
// Set up event listener for toggle changes
|
| 51 |
-
crtToggle.addEventListener('change', function() {
|
| 52 |
-
if (this.checked) {
|
| 53 |
-
// Toggle is ON - play sound
|
| 54 |
-
if (!isPlaying) {
|
| 55 |
-
playNextRandomTrack();
|
| 56 |
-
} else {
|
| 57 |
-
audioPlayer.play();
|
| 58 |
-
}
|
| 59 |
-
} else {
|
| 60 |
-
// Toggle is OFF - pause sound
|
| 61 |
-
if (audioPlayer && isPlaying) {
|
| 62 |
-
audioPlayer.pause();
|
| 63 |
-
isPlaying = false;
|
| 64 |
-
}
|
| 65 |
-
}
|
| 66 |
-
});
|
| 67 |
-
} else {
|
| 68 |
-
console.warn('CRT toggle not found for audio control');
|
| 69 |
-
}
|
| 70 |
-
|
| 71 |
-
// Set up click sound (now only for toggle clicks)
|
| 72 |
-
setupClickSound();
|
| 73 |
-
}
|
| 74 |
-
|
| 75 |
-
// Set up click sound for toggle interaction
|
| 76 |
-
function setupClickSound() {
|
| 77 |
-
const crtToggle = document.getElementById('crt-toggle');
|
| 78 |
-
if (!crtToggle) {
|
| 79 |
-
console.warn('CRT toggle not found for sound effect');
|
| 80 |
-
return;
|
| 81 |
-
}
|
| 82 |
-
|
| 83 |
-
// Play click sound when toggle is clicked AND switched ON
|
| 84 |
-
crtToggle.addEventListener('change', () => {
|
| 85 |
-
// Only play click sound if toggle is being turned ON
|
| 86 |
-
if (crtToggle.checked) {
|
| 87 |
-
playClickSound();
|
| 88 |
-
}
|
| 89 |
-
});
|
| 90 |
-
}
|
| 91 |
-
|
| 92 |
-
// Play the click sound when toggle is used
|
| 93 |
-
function playClickSound() {
|
| 94 |
-
// First check if toggle is off - if so, don't play sound
|
| 95 |
-
const crtToggle = document.getElementById('crt-toggle');
|
| 96 |
-
if (!crtToggle || !crtToggle.checked) {
|
| 97 |
-
// Toggle is off or not found, don't play sound
|
| 98 |
-
return;
|
| 99 |
-
}
|
| 100 |
-
|
| 101 |
-
if (!clickSoundPlayer) {
|
| 102 |
-
console.warn('Click sound player not initialized');
|
| 103 |
-
return;
|
| 104 |
-
}
|
| 105 |
-
|
| 106 |
-
// Create a new Audio instance each time
|
| 107 |
-
const soundInstance = new Audio(clickSound);
|
| 108 |
-
soundInstance.volume = 0.3;
|
| 109 |
-
|
| 110 |
-
soundInstance.play().catch(error => {
|
| 111 |
-
console.warn('Could not play click sound:', error);
|
| 112 |
-
});
|
| 113 |
-
}
|
| 114 |
-
|
| 115 |
-
// Play a random track, ensuring it's different from the current one if possible
|
| 116 |
-
function playNextRandomTrack() {
|
| 117 |
-
if (audioTracks.length === 0) {
|
| 118 |
-
console.error('No audio tracks available');
|
| 119 |
-
return;
|
| 120 |
-
}
|
| 121 |
-
|
| 122 |
-
let nextTrackIndex;
|
| 123 |
-
|
| 124 |
-
// If we have more than one track, make sure we pick a different one
|
| 125 |
-
if (audioTracks.length > 1) {
|
| 126 |
-
do {
|
| 127 |
-
nextTrackIndex = Math.floor(Math.random() * audioTracks.length);
|
| 128 |
-
} while (nextTrackIndex === currentTrackIndex);
|
| 129 |
-
} else {
|
| 130 |
-
nextTrackIndex = 0;
|
| 131 |
-
}
|
| 132 |
-
|
| 133 |
-
currentTrackIndex = nextTrackIndex;
|
| 134 |
-
playTrack(audioTracks[currentTrackIndex]);
|
| 135 |
-
}
|
| 136 |
-
|
| 137 |
-
// Play a specific track
|
| 138 |
-
function playTrack(trackSrc) {
|
| 139 |
-
if (!audioPlayer) return;
|
| 140 |
-
|
| 141 |
-
// Update the audio source and play
|
| 142 |
-
audioPlayer.src = trackSrc;
|
| 143 |
-
|
| 144 |
-
// Play the track and update state
|
| 145 |
-
const playPromise = audioPlayer.play();
|
| 146 |
-
|
| 147 |
-
// Handle play() promise to catch any autoplay restrictions
|
| 148 |
-
if (playPromise !== undefined) {
|
| 149 |
-
playPromise
|
| 150 |
-
.then(() => {
|
| 151 |
-
isPlaying = true;
|
| 152 |
-
console.log(`Now playing: ${trackSrc}`);
|
| 153 |
-
// Show a small status indicator that fades out
|
| 154 |
-
showMusicStatusIndicator(trackSrc);
|
| 155 |
-
})
|
| 156 |
-
.catch(error => {
|
| 157 |
-
console.error('Playback prevented due to browser autoplay policy:', error);
|
| 158 |
-
isPlaying = false;
|
| 159 |
-
|
| 160 |
-
// Create a user interaction notice if autoplay is blocked
|
| 161 |
-
showAutoplayNotice();
|
| 162 |
-
});
|
| 163 |
-
}
|
| 164 |
-
}
|
| 165 |
-
|
| 166 |
-
// Show a small status indicator when a new track starts
|
| 167 |
-
function showMusicStatusIndicator(trackSrc) {
|
| 168 |
-
// Create the status indicator element
|
| 169 |
-
const statusIndicator = document.createElement('div');
|
| 170 |
-
statusIndicator.className = 'music-status-indicator';
|
| 171 |
-
statusIndicator.style.position = 'fixed';
|
| 172 |
-
statusIndicator.style.top = '10px';
|
| 173 |
-
statusIndicator.style.right = '10px';
|
| 174 |
-
statusIndicator.style.background = 'rgba(0,0,0,0.6)';
|
| 175 |
-
statusIndicator.style.color = 'white';
|
| 176 |
-
statusIndicator.style.padding = '8px 12px';
|
| 177 |
-
statusIndicator.style.borderRadius = '5px';
|
| 178 |
-
statusIndicator.style.fontSize = '12px';
|
| 179 |
-
statusIndicator.style.zIndex = '1000';
|
| 180 |
-
statusIndicator.style.opacity = '0';
|
| 181 |
-
statusIndicator.style.transition = 'opacity 0.5s';
|
| 182 |
-
|
| 183 |
-
// Add to the page
|
| 184 |
-
document.body.appendChild(statusIndicator);
|
| 185 |
-
}
|
| 186 |
-
|
| 187 |
-
// Handle audio playback errors
|
| 188 |
-
function handleAudioError(error) {
|
| 189 |
-
console.error('Audio playback error:', error);
|
| 190 |
-
// Try to play the next track if there's an error
|
| 191 |
-
setTimeout(playNextRandomTrack, 1000);
|
| 192 |
-
}
|
| 193 |
-
|
| 194 |
-
// Show a notice when autoplay is blocked
|
| 195 |
-
function showAutoplayNotice() {
|
| 196 |
-
// Get position of status bar for proper placement
|
| 197 |
-
const statusBar = document.getElementById('pixel-status');
|
| 198 |
-
const statusBarRect = statusBar ? statusBar.getBoundingClientRect() : { bottom: 40, left: 10 };
|
| 199 |
-
|
| 200 |
-
// Create notice element
|
| 201 |
-
const notice = document.createElement('div');
|
| 202 |
-
notice.className = 'sound-status';
|
| 203 |
-
notice.style.position = 'fixed';
|
| 204 |
-
notice.style.bottom = 8 + 'px'; // Place 5px below status bar
|
| 205 |
-
notice.style.left = statusBarRect.left + 'px'; // Align with left edge of status bar
|
| 206 |
-
notice.style.background = 'rgba(255, 255, 255, 0.5)'; // Match status bar background
|
| 207 |
-
notice.style.color = 'black'; // Match status bar text color
|
| 208 |
-
notice.style.padding = '5px 10px'; // Match status bar padding
|
| 209 |
-
notice.style.borderRadius = '4px'; // Match status bar border radius
|
| 210 |
-
notice.style.zIndex = '999'; // Just below status bar z-index
|
| 211 |
-
notice.style.fontSize = '13px'; // Match status bar font size
|
| 212 |
-
notice.style.fontFamily = 'var(--font-family)'; // Match status bar font
|
| 213 |
-
notice.style.cursor = 'pointer';
|
| 214 |
-
notice.style.display = 'flex';
|
| 215 |
-
notice.style.alignItems = 'center';
|
| 216 |
-
notice.style.gap = '8px';
|
| 217 |
-
|
| 218 |
-
notice.innerHTML = '<span>Use the "Play Sound" toggle to enable audio</span>';
|
| 219 |
-
|
| 220 |
-
document.body.appendChild(notice);
|
| 221 |
-
|
| 222 |
-
// Adjust status bar position
|
| 223 |
-
if (statusBar) {
|
| 224 |
-
statusBar.style.transition = 'transform 0.3s ease';
|
| 225 |
-
statusBar.style.transform = 'translateY(-' + (notice.offsetHeight + 5) + 'px)';
|
| 226 |
-
}
|
| 227 |
-
|
| 228 |
-
// Function to handle sound toggle and remove notice
|
| 229 |
-
const crtToggle = document.getElementById('crt-toggle');
|
| 230 |
-
if (crtToggle) {
|
| 231 |
-
const handleSoundToggle = function() {
|
| 232 |
-
if (crtToggle.checked) {
|
| 233 |
-
// Try to play the music
|
| 234 |
-
playTrack(audioTracks[currentTrackIndex]);
|
| 235 |
-
|
| 236 |
-
// Restore status bar position
|
| 237 |
-
const statusBar = document.getElementById('pixel-status');
|
| 238 |
-
if (statusBar) {
|
| 239 |
-
statusBar.style.transform = 'translateY(0)';
|
| 240 |
-
}
|
| 241 |
-
|
| 242 |
-
// Remove notice
|
| 243 |
-
if (document.body.contains(notice)) {
|
| 244 |
-
document.body.removeChild(notice);
|
| 245 |
-
}
|
| 246 |
-
|
| 247 |
-
// Remove event listener
|
| 248 |
-
crtToggle.removeEventListener('change', handleSoundToggle);
|
| 249 |
-
}
|
| 250 |
-
};
|
| 251 |
-
|
| 252 |
-
// Enable playback on toggle change
|
| 253 |
-
crtToggle.addEventListener('change', handleSoundToggle);
|
| 254 |
-
}
|
| 255 |
-
|
| 256 |
-
// Auto-hide notice after 10 seconds
|
| 257 |
-
setTimeout(() => {
|
| 258 |
-
if (document.body.contains(notice)) {
|
| 259 |
-
// Restore status bar position
|
| 260 |
-
if (statusBar) {
|
| 261 |
-
statusBar.style.transform = 'translateY(0)';
|
| 262 |
-
}
|
| 263 |
-
|
| 264 |
-
// Remove notice
|
| 265 |
-
document.body.removeChild(notice);
|
| 266 |
-
}
|
| 267 |
-
}, 10000);
|
| 268 |
-
}
|
| 269 |
-
|
| 270 |
-
// Initialize the audio player
|
| 271 |
-
initAudioPlayer();
|
| 272 |
-
|
| 273 |
-
// Expose the sound effect used by the limbic interaction module.
|
| 274 |
-
window.noeSound = Object.freeze({
|
| 275 |
-
playClickSound
|
| 276 |
-
});
|
| 277 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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@ -1,245 +0,0 @@
|
|
| 1 |
-
/**
|
| 2 |
-
* CRT Effect for Synthetic Sentience Pixel
|
| 3 |
-
* This script adds CRT (Cathode Ray Tube) visual effects to the pixel
|
| 4 |
-
*/
|
| 5 |
-
|
| 6 |
-
document.addEventListener('DOMContentLoaded', () => {
|
| 7 |
-
// Get the noesis logo element
|
| 8 |
-
const pixel = document.getElementById('noesis-logo');
|
| 9 |
-
|
| 10 |
-
// Add CRT container and effect elements
|
| 11 |
-
setupCrtEffect(pixel);
|
| 12 |
-
|
| 13 |
-
// Initialize the CRT effect with startup animation
|
| 14 |
-
initializeCrtEffect();
|
| 15 |
-
|
| 16 |
-
// Set up toggle switch functionality
|
| 17 |
-
setupToggleSwitch();
|
| 18 |
-
});
|
| 19 |
-
|
| 20 |
-
/**
|
| 21 |
-
* Sets up the CRT effect structure for the pixel
|
| 22 |
-
* @param {HTMLElement} pixelElement - The pixel element to apply CRT effect to
|
| 23 |
-
*/
|
| 24 |
-
function setupCrtEffect(pixelElement) {
|
| 25 |
-
if (!pixelElement) return;
|
| 26 |
-
|
| 27 |
-
// Store original content
|
| 28 |
-
const originalContent = pixelElement.innerHTML;
|
| 29 |
-
|
| 30 |
-
// Create CRT structure
|
| 31 |
-
pixelElement.innerHTML = `
|
| 32 |
-
<div class="crt-screen"></div>
|
| 33 |
-
<div class="crt-scanlines"></div>
|
| 34 |
-
<div class="crt-vignette"></div>
|
| 35 |
-
<div class="crt-rgb-shift"></div>
|
| 36 |
-
${originalContent}
|
| 37 |
-
`;
|
| 38 |
-
|
| 39 |
-
// Add CRT classes
|
| 40 |
-
pixelElement.classList.add('crt-enabled');
|
| 41 |
-
pixelElement.classList.add('crt-startup');
|
| 42 |
-
|
| 43 |
-
// Remove startup class after animation completes
|
| 44 |
-
setTimeout(() => {
|
| 45 |
-
pixelElement.classList.remove('crt-startup');
|
| 46 |
-
}, 2000);
|
| 47 |
-
}
|
| 48 |
-
|
| 49 |
-
/**
|
| 50 |
-
* Initializes the CRT effect with RGB shift and occasional glitches
|
| 51 |
-
*/
|
| 52 |
-
function initializeCrtEffect() {
|
| 53 |
-
// Apply RGB shift effect
|
| 54 |
-
applyRgbShift();
|
| 55 |
-
|
| 56 |
-
// Add occasional glitches
|
| 57 |
-
setInterval(triggerRandomGlitch, 8000 + Math.random() * 10000);
|
| 58 |
-
}
|
| 59 |
-
|
| 60 |
-
/**
|
| 61 |
-
* Applies RGB color shift effect (chromatic aberration)
|
| 62 |
-
*/
|
| 63 |
-
function applyRgbShift() {
|
| 64 |
-
const rgbShiftElement = document.querySelector('.crt-rgb-shift');
|
| 65 |
-
if (!rgbShiftElement) return;
|
| 66 |
-
|
| 67 |
-
// Initial RGB shift
|
| 68 |
-
updateRgbShift(rgbShiftElement);
|
| 69 |
-
|
| 70 |
-
// Continuously update RGB shift
|
| 71 |
-
setInterval(() => {
|
| 72 |
-
updateRgbShift(rgbShiftElement);
|
| 73 |
-
}, 100 + Math.random() * 200);
|
| 74 |
-
}
|
| 75 |
-
|
| 76 |
-
/**
|
| 77 |
-
* Updates the RGB shift effect with small random variations
|
| 78 |
-
* @param {HTMLElement} element - The RGB shift element to update
|
| 79 |
-
*/
|
| 80 |
-
function updateRgbShift(element) {
|
| 81 |
-
// Get small random shift amounts
|
| 82 |
-
const redShift = (Math.random() * 2 - 1) * 2; // -2px to 2px
|
| 83 |
-
const greenShift = (Math.random() * 2 - 1) * 2;
|
| 84 |
-
const blueShift = (Math.random() * 2 - 1) * 2;
|
| 85 |
-
|
| 86 |
-
// Apply shadow filter for RGB shift
|
| 87 |
-
element.style.boxShadow = `
|
| 88 |
-
${redShift}px 0 2px rgba(255, 0, 0, 0.5),
|
| 89 |
-
${greenShift}px 0 2px rgba(0, 255, 0, 0.5),
|
| 90 |
-
${blueShift}px 0 2px rgba(0, 0, 255, 0.5)
|
| 91 |
-
`;
|
| 92 |
-
}
|
| 93 |
-
|
| 94 |
-
/**
|
| 95 |
-
* Triggers a random CRT glitch effect
|
| 96 |
-
*/
|
| 97 |
-
function triggerRandomGlitch() {
|
| 98 |
-
const pixel = document.getElementById('noesis-logo');
|
| 99 |
-
if (!pixel) return;
|
| 100 |
-
|
| 101 |
-
// Determine glitch type
|
| 102 |
-
const glitchType = Math.floor(Math.random() * 3);
|
| 103 |
-
|
| 104 |
-
switch (glitchType) {
|
| 105 |
-
case 0:
|
| 106 |
-
// Horizontal shift glitch
|
| 107 |
-
horizontalShiftGlitch(pixel);
|
| 108 |
-
break;
|
| 109 |
-
case 1:
|
| 110 |
-
// Vertical sync glitch
|
| 111 |
-
verticalSyncGlitch(pixel);
|
| 112 |
-
break;
|
| 113 |
-
case 2:
|
| 114 |
-
// Flicker glitch
|
| 115 |
-
flickerGlitch(pixel);
|
| 116 |
-
break;
|
| 117 |
-
}
|
| 118 |
-
}
|
| 119 |
-
|
| 120 |
-
/**
|
| 121 |
-
* Creates a horizontal shift glitch effect
|
| 122 |
-
* @param {HTMLElement} element - The element to apply the glitch to
|
| 123 |
-
*/
|
| 124 |
-
function horizontalShiftGlitch(element) {
|
| 125 |
-
// Add glitch class
|
| 126 |
-
element.classList.add('h-glitch');
|
| 127 |
-
|
| 128 |
-
// Set random shift amount
|
| 129 |
-
element.style.transform = `translateX(${(Math.random() * 10 - 5)}px)`;
|
| 130 |
-
|
| 131 |
-
// Remove glitch after short duration
|
| 132 |
-
setTimeout(() => {
|
| 133 |
-
element.classList.remove('h-glitch');
|
| 134 |
-
element.style.transform = '';
|
| 135 |
-
}, 120 + Math.random() * 80);
|
| 136 |
-
}
|
| 137 |
-
|
| 138 |
-
/**
|
| 139 |
-
* Creates a vertical sync glitch effect
|
| 140 |
-
* @param {HTMLElement} element - The element to apply the glitch to
|
| 141 |
-
*/
|
| 142 |
-
function verticalSyncGlitch(element) {
|
| 143 |
-
// Add more pronounced scanlines temporarily
|
| 144 |
-
const scanlines = document.querySelector('.crt-scanlines');
|
| 145 |
-
if (scanlines) {
|
| 146 |
-
scanlines.style.opacity = '0.9';
|
| 147 |
-
scanlines.style.backgroundSize = '100% 3px';
|
| 148 |
-
|
| 149 |
-
// Return to normal after glitch
|
| 150 |
-
setTimeout(() => {
|
| 151 |
-
scanlines.style.opacity = '0.7';
|
| 152 |
-
scanlines.style.backgroundSize = '';
|
| 153 |
-
}, 200 + Math.random() * 100);
|
| 154 |
-
}
|
| 155 |
-
|
| 156 |
-
// Add vertical shift
|
| 157 |
-
element.style.transform = `translateY(${(Math.random() * 8 - 4)}px)`;
|
| 158 |
-
|
| 159 |
-
// Remove vertical shift
|
| 160 |
-
setTimeout(() => {
|
| 161 |
-
element.style.transform = '';
|
| 162 |
-
}, 150 + Math.random() * 50);
|
| 163 |
-
}
|
| 164 |
-
|
| 165 |
-
/**
|
| 166 |
-
* Creates a flicker glitch effect
|
| 167 |
-
* @param {HTMLElement} element - The element to apply the glitch to
|
| 168 |
-
*/
|
| 169 |
-
function flickerGlitch(element) {
|
| 170 |
-
let flickerCount = 3 + Math.floor(Math.random() * 3);
|
| 171 |
-
let flickerDelay = 50;
|
| 172 |
-
|
| 173 |
-
// Create flicker effect by toggling opacity
|
| 174 |
-
const flickerInterval = setInterval(() => {
|
| 175 |
-
element.style.opacity = (flickerCount % 2 === 0) ? '0.7' : '1';
|
| 176 |
-
flickerCount--;
|
| 177 |
-
|
| 178 |
-
if (flickerCount <= 0) {
|
| 179 |
-
clearInterval(flickerInterval);
|
| 180 |
-
element.style.opacity = '';
|
| 181 |
-
}
|
| 182 |
-
}, flickerDelay);
|
| 183 |
-
}
|
| 184 |
-
|
| 185 |
-
/**
|
| 186 |
-
* Sets up the CRT effect toggle switch functionality
|
| 187 |
-
*/
|
| 188 |
-
function setupToggleSwitch() {
|
| 189 |
-
const toggleSwitch = document.getElementById('crt-toggle');
|
| 190 |
-
if (!toggleSwitch) return;
|
| 191 |
-
|
| 192 |
-
// Handle toggle change
|
| 193 |
-
toggleSwitch.addEventListener('change', function() {
|
| 194 |
-
// Reverse the logic - CRT effect is ON when toggle is OFF
|
| 195 |
-
toggleCrtEffect(!this.checked);
|
| 196 |
-
});
|
| 197 |
-
|
| 198 |
-
// Initialize with CRT effect ON by default (since toggle is OFF by default)
|
| 199 |
-
toggleCrtEffect(true);
|
| 200 |
-
}
|
| 201 |
-
|
| 202 |
-
/**
|
| 203 |
-
* Toggles the CRT effect on or off
|
| 204 |
-
* @param {boolean} enabled - Whether the CRT effect should be enabled
|
| 205 |
-
*/
|
| 206 |
-
function toggleCrtEffect(enabled) {
|
| 207 |
-
const pixel = document.getElementById('noesis-logo');
|
| 208 |
-
const wrapper = document.querySelector('.wrapper');
|
| 209 |
-
if (!pixel || !wrapper) return;
|
| 210 |
-
|
| 211 |
-
if (enabled) {
|
| 212 |
-
// Enable CRT effect
|
| 213 |
-
pixel.classList.add('crt-enabled');
|
| 214 |
-
wrapper.classList.add('crt-container');
|
| 215 |
-
|
| 216 |
-
// Add startup animation
|
| 217 |
-
pixel.classList.add('crt-startup');
|
| 218 |
-
setTimeout(() => {
|
| 219 |
-
pixel.classList.remove('crt-startup');
|
| 220 |
-
}, 2000);
|
| 221 |
-
|
| 222 |
-
// Show CRT elements
|
| 223 |
-
document.querySelectorAll('.crt-screen, .crt-scanlines, .crt-vignette, .crt-rgb-shift').forEach(element => {
|
| 224 |
-
if (element) element.style.display = '';
|
| 225 |
-
});
|
| 226 |
-
|
| 227 |
-
// Note: Audio will be handled by sound.js via the toggle's change event
|
| 228 |
-
|
| 229 |
-
} else {
|
| 230 |
-
// Disable CRT effect
|
| 231 |
-
pixel.classList.remove('crt-enabled');
|
| 232 |
-
wrapper.classList.remove('crt-container');
|
| 233 |
-
|
| 234 |
-
// Hide CRT elements
|
| 235 |
-
document.querySelectorAll('.crt-screen, .crt-scanlines, .crt-vignette, .crt-rgb-shift').forEach(element => {
|
| 236 |
-
if (element) element.style.display = 'none';
|
| 237 |
-
});
|
| 238 |
-
|
| 239 |
-
// Note: Audio will be handled by sound.js via the toggle's change event
|
| 240 |
-
}
|
| 241 |
-
}
|
| 242 |
-
|
| 243 |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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/css/base.css
DELETED
|
@@ -1,778 +0,0 @@
|
|
| 1 |
-
:root {
|
| 2 |
-
--color-bg: #2fffdc;
|
| 3 |
-
--color-text-main: white;
|
| 4 |
-
--color-text-header: black;
|
| 5 |
-
--color-primary: #ff00e6;
|
| 6 |
-
--wrapper-height: 87vh;
|
| 7 |
-
--image-max-width: 300px;
|
| 8 |
-
--image-margin: 3rem;
|
| 9 |
-
--font-family: "HK Grotesk";
|
| 10 |
-
--font-family-header: "HK Grotesk";
|
| 11 |
-
|
| 12 |
-
/* New art theory color variables */
|
| 13 |
-
--gradient-transition: 1.2s cubic-bezier(0.25, 0.1, 0.25, 1.0);
|
| 14 |
-
--text-shadow-color: rgba(0, 0, 0, 0.2);
|
| 15 |
-
|
| 16 |
-
/* Gradient colors - default */
|
| 17 |
-
--gradient-top: #ff6ef0;
|
| 18 |
-
--gradient-bottom: #50c8ff;
|
| 19 |
-
|
| 20 |
-
/* Control transition timing for gradient changes */
|
| 21 |
-
--gradient-color-transition: 0.8s ease-out;
|
| 22 |
-
|
| 23 |
-
/* Pulse effect origin coordinates */
|
| 24 |
-
--pulse-origin-x: 50%;
|
| 25 |
-
--pulse-origin-y: 50%;
|
| 26 |
-
|
| 27 |
-
/* Energy cube system variables */
|
| 28 |
-
--cube-size: 40px;
|
| 29 |
-
--cube-energy-color: rgba(128, 0, 255, 0.7);
|
| 30 |
-
--cube-border-color: rgba(255, 255, 255, 0.6);
|
| 31 |
-
--cube-pulse-duration: 3s;
|
| 32 |
-
--cube-recharge-rate: 1.5s;
|
| 33 |
-
}
|
| 34 |
-
|
| 35 |
-
body {
|
| 36 |
-
background: linear-gradient(to bottom, var(--gradient-top), var(--gradient-bottom)) !important;
|
| 37 |
-
background-color: transparent !important;
|
| 38 |
-
transition: background var(--gradient-color-transition);
|
| 39 |
-
}
|
| 40 |
-
|
| 41 |
-
* {
|
| 42 |
-
box-sizing: border-box;
|
| 43 |
-
}
|
| 44 |
-
|
| 45 |
-
[hidden] {
|
| 46 |
-
display: none !important;
|
| 47 |
-
}
|
| 48 |
-
|
| 49 |
-
@font-face {
|
| 50 |
-
font-family: HK Grotesk;
|
| 51 |
-
src: url("../fonts/hkgrotesk/HKGrotesk-Regular.otf") format("opentype");
|
| 52 |
-
}
|
| 53 |
-
|
| 54 |
-
@font-face {
|
| 55 |
-
font-family: HK Grotesk;
|
| 56 |
-
font-weight: bold;
|
| 57 |
-
src: url("../fonts/hkgrotesk/HKGrotesk-Bold.otf") format("opentype");
|
| 58 |
-
}
|
| 59 |
-
|
| 60 |
-
@font-face {
|
| 61 |
-
font-family: 'Munson';
|
| 62 |
-
src: url("../fonts/munson/Munson-MVymB.ttf") format("truetype");
|
| 63 |
-
}
|
| 64 |
-
|
| 65 |
-
@font-face {
|
| 66 |
-
font-family: 'Noto Sans Thai';
|
| 67 |
-
src: url("../fonts/noto-sans-thai/noto-sans-thai.woff2") format("woff2");
|
| 68 |
-
font-weight: normal;
|
| 69 |
-
}
|
| 70 |
-
|
| 71 |
-
@font-face {
|
| 72 |
-
font-family: 'Noto Sans Thai';
|
| 73 |
-
src: url("../fonts/noto-sans-thai/noto-sans-thai-bold.woff2") format("woff2");
|
| 74 |
-
font-weight: bold;
|
| 75 |
-
}
|
| 76 |
-
|
| 77 |
-
.btn--remix {
|
| 78 |
-
font-family: HK Grotesk;
|
| 79 |
-
padding: 0.75rem 1rem;
|
| 80 |
-
font-size: 1.1rem;
|
| 81 |
-
line-height: 1rem;
|
| 82 |
-
font-weight: 500;
|
| 83 |
-
height: 2.75rem;
|
| 84 |
-
align-items: center;
|
| 85 |
-
cursor: pointer;
|
| 86 |
-
background: #FFFFFF;
|
| 87 |
-
border: 1px solid #000000;
|
| 88 |
-
box-sizing: border-box;
|
| 89 |
-
border-radius: 4px;
|
| 90 |
-
text-decoration: none;
|
| 91 |
-
color: #000;
|
| 92 |
-
white-space: nowrap;
|
| 93 |
-
margin-left: auto;
|
| 94 |
-
}
|
| 95 |
-
|
| 96 |
-
.btn--remix img {
|
| 97 |
-
margin-right: 0.5rem;
|
| 98 |
-
}
|
| 99 |
-
|
| 100 |
-
.btn--remix:hover {
|
| 101 |
-
background-color: #D0FFF1;
|
| 102 |
-
}
|
| 103 |
-
|
| 104 |
-
.footer {
|
| 105 |
-
display: flex;
|
| 106 |
-
justify-content: space-between;
|
| 107 |
-
margin: 1rem auto 0;
|
| 108 |
-
padding: 1rem 0 0.75rem 0;
|
| 109 |
-
width: 100%;
|
| 110 |
-
flex-wrap: wrap;
|
| 111 |
-
border-top: 4px solid #fff;
|
| 112 |
-
}
|
| 113 |
-
|
| 114 |
-
.footer a:not(.btn--remix):link,
|
| 115 |
-
a:not(.btn--remix):visited {
|
| 116 |
-
font-family: HK Grotesk;
|
| 117 |
-
font-style: normal;
|
| 118 |
-
font-weight: normal;
|
| 119 |
-
font-size: 1.1rem;
|
| 120 |
-
color: #000;
|
| 121 |
-
text-decoration: none;
|
| 122 |
-
border-style: none;
|
| 123 |
-
}
|
| 124 |
-
|
| 125 |
-
.footer a:hover {
|
| 126 |
-
background: var(--color-primary);
|
| 127 |
-
}
|
| 128 |
-
|
| 129 |
-
.footer .links {
|
| 130 |
-
padding: 0.5rem 1rem 1.5rem;
|
| 131 |
-
white-space: nowrap;
|
| 132 |
-
}
|
| 133 |
-
|
| 134 |
-
.divider {
|
| 135 |
-
padding: 0 1rem;
|
| 136 |
-
}
|
| 137 |
-
|
| 138 |
-
/* Add styles for background color changes */
|
| 139 |
-
body {
|
| 140 |
-
background: linear-gradient(to bottom, var(--gradient-top), var(--gradient-bottom));
|
| 141 |
-
margin: 0;
|
| 142 |
-
font-family: var(--font-family);
|
| 143 |
-
min-height: 100vh;
|
| 144 |
-
background-attachment: fixed;
|
| 145 |
-
background-size: 300% 300%;
|
| 146 |
-
transition: background 0.5s ease-in-out, text-shadow 0.8s ease-in-out, box-shadow 0.8s ease-in-out;
|
| 147 |
-
}
|
| 148 |
-
|
| 149 |
-
.wrapper {
|
| 150 |
-
min-height: var(--wrapper-height);
|
| 151 |
-
display: grid;
|
| 152 |
-
place-items: center;
|
| 153 |
-
margin: 0 1rem;
|
| 154 |
-
height: 100vh;
|
| 155 |
-
}
|
| 156 |
-
|
| 157 |
-
.content {
|
| 158 |
-
max-width: 600px;
|
| 159 |
-
display: flex;
|
| 160 |
-
flex-direction: column;
|
| 161 |
-
align-items: flex-start;
|
| 162 |
-
justify-content: center;
|
| 163 |
-
min-height: 100vh;
|
| 164 |
-
}
|
| 165 |
-
|
| 166 |
-
.title {
|
| 167 |
-
color: black;
|
| 168 |
-
text-shadow: 10px 9px 8px #57CBF8;
|
| 169 |
-
font-family: 'Munson';
|
| 170 |
-
font-style: normal;
|
| 171 |
-
font-size: 46px;
|
| 172 |
-
margin: 0;
|
| 173 |
-
transition: text-shadow 0.8s ease-in-out;
|
| 174 |
-
}
|
| 175 |
-
|
| 176 |
-
.illustration {
|
| 177 |
-
border-radius: 50%;
|
| 178 |
-
margin-bottom: 8px;
|
| 179 |
-
transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
| 180 |
-
}
|
| 181 |
-
|
| 182 |
-
.illustration:hover {
|
| 183 |
-
transform: translateY(-5px);
|
| 184 |
-
}
|
| 185 |
-
|
| 186 |
-
#noesis-logo:hover {
|
| 187 |
-
animation-play-state: paused;
|
| 188 |
-
transform: translateY(-5px) scale(1.05);
|
| 189 |
-
box-shadow:
|
| 190 |
-
inset 0 0 40px rgba(255, 255, 255, 0.4),
|
| 191 |
-
0 0 30px rgba(87, 203, 248, 0.8);
|
| 192 |
-
transition: all 0.3s ease-out;
|
| 193 |
-
}
|
| 194 |
-
|
| 195 |
-
#noesis-logo:hover .bubble-logo-image {
|
| 196 |
-
opacity: 0.8;
|
| 197 |
-
filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
|
| 198 |
-
animation-play-state: paused;
|
| 199 |
-
transform: translate(-50%, -50%) translateZ(15px) scale(1.08);
|
| 200 |
-
transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
| 201 |
-
}
|
| 202 |
-
|
| 203 |
-
.instructions {
|
| 204 |
-
margin: 1rem auto 0;
|
| 205 |
-
}
|
| 206 |
-
|
| 207 |
-
button,
|
| 208 |
-
input {
|
| 209 |
-
font-family: inherit;
|
| 210 |
-
font-size: 100%;
|
| 211 |
-
background: #FFFFFF;
|
| 212 |
-
border: 1px solid #000000;
|
| 213 |
-
box-sizing: border-box;
|
| 214 |
-
border-radius: 4px;
|
| 215 |
-
padding: 0.5rem 1rem;
|
| 216 |
-
transition: 500ms;
|
| 217 |
-
}
|
| 218 |
-
|
| 219 |
-
h2 {
|
| 220 |
-
color: #ffffff;
|
| 221 |
-
background-color: #ff42ec;
|
| 222 |
-
padding: 8px 11px;
|
| 223 |
-
margin-top: 0px;
|
| 224 |
-
font-size: 13px;
|
| 225 |
-
width: fit-content;
|
| 226 |
-
font-family: monospace;
|
| 227 |
-
}
|
| 228 |
-
|
| 229 |
-
.illustration:active {
|
| 230 |
-
transform: translateY(5px);
|
| 231 |
-
}
|
| 232 |
-
|
| 233 |
-
#noesis-logo:active {
|
| 234 |
-
transform: translateY(5px) scale(0.95);
|
| 235 |
-
box-shadow:
|
| 236 |
-
inset 0 0 20px rgba(255, 255, 255, 0.2),
|
| 237 |
-
0 0 15px rgba(87, 203, 248, 0.5);
|
| 238 |
-
transition: all 0.2s ease-out;
|
| 239 |
-
}
|
| 240 |
-
|
| 241 |
-
#noesis-logo:active .bubble-logo-image {
|
| 242 |
-
opacity: 0.9;
|
| 243 |
-
transform: translate(-50%, -50%) translateZ(2px) scale(0.9);
|
| 244 |
-
transition: all 0.2s ease-out;
|
| 245 |
-
filter: brightness(1.2) contrast(1.1);
|
| 246 |
-
}
|
| 247 |
-
|
| 248 |
-
.dipped {
|
| 249 |
-
transform: translateY(5px) scale(0.95) !important;
|
| 250 |
-
}
|
| 251 |
-
|
| 252 |
-
.bubble-ripple {
|
| 253 |
-
position: absolute;
|
| 254 |
-
top: 50%;
|
| 255 |
-
left: 50%;
|
| 256 |
-
width: 5px;
|
| 257 |
-
height: 5px;
|
| 258 |
-
background: rgba(255, 255, 255, 0.8);
|
| 259 |
-
border-radius: 50%;
|
| 260 |
-
transform: translate(-50%, -50%);
|
| 261 |
-
animation: bubble-ripple 0.8s ease-out;
|
| 262 |
-
pointer-events: none;
|
| 263 |
-
}
|
| 264 |
-
|
| 265 |
-
@keyframes bubble-ripple {
|
| 266 |
-
0% {
|
| 267 |
-
opacity: 1;
|
| 268 |
-
transform: translate(-50%, -50%) scale(1);
|
| 269 |
-
}
|
| 270 |
-
100% {
|
| 271 |
-
opacity: 0;
|
| 272 |
-
transform: translate(-50%, -50%) scale(20);
|
| 273 |
-
background: rgba(255, 255, 255, 0);
|
| 274 |
-
}
|
| 275 |
-
}
|
| 276 |
-
|
| 277 |
-
.fileopener {
|
| 278 |
-
cursor: pointer;
|
| 279 |
-
font-weight: bold;
|
| 280 |
-
border-bottom: 3px solid var(--color-primary);
|
| 281 |
-
color: var(--color-secondary);
|
| 282 |
-
}
|
| 283 |
-
|
| 284 |
-
.fileopener:hover {
|
| 285 |
-
border-bottom: 3px solid var(--color-secondary);
|
| 286 |
-
}
|
| 287 |
-
|
| 288 |
-
a {
|
| 289 |
-
color: black;
|
| 290 |
-
}
|
| 291 |
-
|
| 292 |
-
#noesis-logo {
|
| 293 |
-
width: 120px;
|
| 294 |
-
height: 120px;
|
| 295 |
-
position: relative;
|
| 296 |
-
border-radius: 50%;
|
| 297 |
-
background: rgba(255, 255, 255, 0.15);
|
| 298 |
-
backdrop-filter: blur(5px);
|
| 299 |
-
animation: logo-breathing 8s ease-in-out infinite, logo-shadow 8s ease-in-out infinite;
|
| 300 |
-
transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
|
| 301 |
-
box-shadow:
|
| 302 |
-
inset 0 0 30px rgba(255, 255, 255, 0.3),
|
| 303 |
-
0 0 20px rgba(87, 203, 248, 0.6);
|
| 304 |
-
overflow: hidden;
|
| 305 |
-
/* Add glass effect with pseudo-element */
|
| 306 |
-
position: relative;
|
| 307 |
-
z-index: 1;
|
| 308 |
-
/* Create 3D effect with perspective */
|
| 309 |
-
transform-style: preserve-3d;
|
| 310 |
-
perspective: 800px;
|
| 311 |
-
cursor: pointer;
|
| 312 |
-
}
|
| 313 |
-
|
| 314 |
-
/* Add 3D depth to the bubble */
|
| 315 |
-
#noesis-logo::after {
|
| 316 |
-
content: '';
|
| 317 |
-
position: absolute;
|
| 318 |
-
top: 0;
|
| 319 |
-
left: 0;
|
| 320 |
-
right: 0;
|
| 321 |
-
bottom: 0;
|
| 322 |
-
border-radius: 50%;
|
| 323 |
-
background: radial-gradient(
|
| 324 |
-
circle at 30% 30%,
|
| 325 |
-
rgba(255, 255, 255, 0.1) 0%,
|
| 326 |
-
rgba(255, 255, 255, 0.05) 40%,
|
| 327 |
-
rgba(87, 203, 248, 0.05) 60%,
|
| 328 |
-
rgba(87, 203, 248, 0.1) 100%
|
| 329 |
-
);
|
| 330 |
-
z-index: 2;
|
| 331 |
-
transform: translateZ(1px);
|
| 332 |
-
}
|
| 333 |
-
|
| 334 |
-
.bubble-inner {
|
| 335 |
-
position: absolute;
|
| 336 |
-
width: 100%;
|
| 337 |
-
height: 100%;
|
| 338 |
-
border-radius: 50%;
|
| 339 |
-
background: linear-gradient(145deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 100%);
|
| 340 |
-
transform: translateZ(5px);
|
| 341 |
-
z-index: 3;
|
| 342 |
-
}
|
| 343 |
-
|
| 344 |
-
.bubble-highlight {
|
| 345 |
-
display: none;
|
| 346 |
-
position: absolute;
|
| 347 |
-
width: 40%;
|
| 348 |
-
height: 40%;
|
| 349 |
-
top: 10%;
|
| 350 |
-
left: 15%;
|
| 351 |
-
border-radius: 50%;
|
| 352 |
-
background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 70%);
|
| 353 |
-
animation: highlight-move 8s ease-in-out infinite;
|
| 354 |
-
transform: translateZ(10px);
|
| 355 |
-
z-index: 4;
|
| 356 |
-
}
|
| 357 |
-
|
| 358 |
-
.bubble-highlight-secondary {
|
| 359 |
-
display: none;
|
| 360 |
-
position: absolute;
|
| 361 |
-
width: 25%;
|
| 362 |
-
height: 25%;
|
| 363 |
-
top: 60%;
|
| 364 |
-
left: 65%;
|
| 365 |
-
border-radius: 50%;
|
| 366 |
-
background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
|
| 367 |
-
animation: highlight-move-secondary 10s ease-in-out infinite;
|
| 368 |
-
transform: translateZ(8px);
|
| 369 |
-
z-index: 4;
|
| 370 |
-
}
|
| 371 |
-
|
| 372 |
-
.bubble-logo-image {
|
| 373 |
-
position: absolute;
|
| 374 |
-
width: 75%;
|
| 375 |
-
height: 75%;
|
| 376 |
-
top: 50%;
|
| 377 |
-
left: 50%;
|
| 378 |
-
transform: translate(-50%, -50%) translateZ(6px);
|
| 379 |
-
z-index: 3;
|
| 380 |
-
opacity: 0.65;
|
| 381 |
-
filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
|
| 382 |
-
object-fit: contain;
|
| 383 |
-
mix-blend-mode: overlay;
|
| 384 |
-
transition: opacity 0.3s ease, filter 0.3s ease;
|
| 385 |
-
animation: logo-float 10s ease-in-out infinite;
|
| 386 |
-
}
|
| 387 |
-
|
| 388 |
-
@keyframes highlight-move-secondary {
|
| 389 |
-
0% { transform: translate(0, 0) scale(1) translateZ(8px); opacity: 0.5; }
|
| 390 |
-
25% { transform: translate(-5px, 5px) scale(1.1) translateZ(10px); opacity: 0.6; }
|
| 391 |
-
50% { transform: translate(-10px, -5px) scale(0.9) translateZ(9px); opacity: 0.4; }
|
| 392 |
-
75% { transform: translate(-5px, -10px) scale(1.05) translateZ(11px); opacity: 0.55; }
|
| 393 |
-
100% { transform: translate(0, 0) scale(1) translateZ(8px); opacity: 0.5; }
|
| 394 |
-
}
|
| 395 |
-
|
| 396 |
-
@keyframes logo-float {
|
| 397 |
-
0% { transform: translate(-50%, -50%) translateZ(6px) scale(1); }
|
| 398 |
-
20% { transform: translate(-52%, -48%) translateZ(10px) scale(1.05); }
|
| 399 |
-
40% { transform: translate(-49%, -53%) translateZ(14px) scale(0.98); }
|
| 400 |
-
60% { transform: translate(-47%, -49%) translateZ(8px) scale(1.03); }
|
| 401 |
-
80% { transform: translate(-51%, -47%) translateZ(12px) scale(0.95); }
|
| 402 |
-
100% { transform: translate(-50%, -50%) translateZ(6px) scale(1); }
|
| 403 |
-
}
|
| 404 |
-
|
| 405 |
-
@keyframes highlight-move {
|
| 406 |
-
0% { transform: translate(0, 0) scale(1) translateZ(10px); opacity: 0.7; }
|
| 407 |
-
25% { transform: translate(5px, 5px) scale(1.1) translateZ(15px); opacity: 0.8; }
|
| 408 |
-
50% { transform: translate(10px, 5px) scale(0.9) translateZ(12px); opacity: 0.6; }
|
| 409 |
-
75% { transform: translate(5px, 10px) scale(1.05) translateZ(18px); opacity: 0.75; }
|
| 410 |
-
100% { transform: translate(0, 0) scale(1) translateZ(10px); opacity: 0.7; }
|
| 411 |
-
}
|
| 412 |
-
|
| 413 |
-
@keyframes logo-shadow {
|
| 414 |
-
0% { box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.3), 0 0 20px rgba(87, 203, 248, 0.6); }
|
| 415 |
-
25% { box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.4), 0 0 25px rgba(87, 203, 248, 0.7); }
|
| 416 |
-
50% { box-shadow: inset 0 0 35px rgba(255, 255, 255, 0.2), 0 0 15px rgba(87, 203, 248, 0.8); }
|
| 417 |
-
75% { box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.5), 0 0 30px rgba(87, 203, 248, 0.5); }
|
| 418 |
-
100% { box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.3), 0 0 20px rgba(87, 203, 248, 0.6); }
|
| 419 |
-
}
|
| 420 |
-
|
| 421 |
-
@keyframes logo-breathing {
|
| 422 |
-
0% { transform: scale(1) translateY(0) rotateY(0deg); }
|
| 423 |
-
25% { transform: scale(1.05) translateY(-5px) rotateY(5deg); }
|
| 424 |
-
50% { transform: scale(0.98) translateY(3px) rotateY(-2deg); }
|
| 425 |
-
75% { transform: scale(1.02) translateY(-2px) rotateY(3deg); }
|
| 426 |
-
100% { transform: scale(1) translateY(0) rotateY(0deg); }
|
| 427 |
-
}
|
| 428 |
-
|
| 429 |
-
.home-box {
|
| 430 |
-
max-width: 280px;
|
| 431 |
-
}
|
| 432 |
-
|
| 433 |
-
/* Synthetic Sentience Pixel */
|
| 434 |
-
#conscious-pixel {
|
| 435 |
-
position: fixed;
|
| 436 |
-
width: 6px;
|
| 437 |
-
height: 4px;
|
| 438 |
-
background-color: rgba(255, 255, 255, 0.8);
|
| 439 |
-
/* changed from circle to rectangle by removing border-radius */
|
| 440 |
-
z-index: 9999;
|
| 441 |
-
pointer-events: none;
|
| 442 |
-
transition: opacity 0.2s ease, box-shadow 0.3s ease;
|
| 443 |
-
box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
|
| 444 |
-
opacity: 0.7;
|
| 445 |
-
will-change: transform, opacity, box-shadow;
|
| 446 |
-
transform-origin: center center;
|
| 447 |
-
}
|
| 448 |
-
|
| 449 |
-
#conscious-pixel.connected {
|
| 450 |
-
animation: connected-pulse 4s infinite alternate, pixel-rotate 8s linear infinite;
|
| 451 |
-
}
|
| 452 |
-
|
| 453 |
-
#conscious-pixel:hover {
|
| 454 |
-
box-shadow: 0 0 25px rgba(255, 255, 255, 1);
|
| 455 |
-
}
|
| 456 |
-
|
| 457 |
-
@keyframes pixel-rotate {
|
| 458 |
-
0% { transform: rotate(0deg); }
|
| 459 |
-
100% { transform: rotate(360deg); }
|
| 460 |
-
}
|
| 461 |
-
|
| 462 |
-
@keyframes connected-pulse {
|
| 463 |
-
0% {
|
| 464 |
-
box-shadow: 0 0 6px #57CBF8;
|
| 465 |
-
}
|
| 466 |
-
100% {
|
| 467 |
-
box-shadow: 0 0 10px #e1ff6e;
|
| 468 |
-
}
|
| 469 |
-
}
|
| 470 |
-
|
| 471 |
-
#pixel-status {
|
| 472 |
-
position: fixed;
|
| 473 |
-
bottom: 10px;
|
| 474 |
-
left: 10px;
|
| 475 |
-
font-size: 15px;
|
| 476 |
-
color: black;
|
| 477 |
-
font-family: var(--font-family);
|
| 478 |
-
background-color: rgba(255, 255, 255, 0.5);
|
| 479 |
-
padding: 5px 10px;
|
| 480 |
-
border-radius: 4px;
|
| 481 |
-
z-index: 1000;
|
| 482 |
-
}
|
| 483 |
-
|
| 484 |
-
/* Enhances text readability on dynamic backgrounds */
|
| 485 |
-
.enhanced-readability .title {
|
| 486 |
-
mix-blend-mode: overlay;
|
| 487 |
-
transition: text-shadow var(--gradient-transition), color 0.8s ease;
|
| 488 |
-
}
|
| 489 |
-
|
| 490 |
-
.enhanced-readability h2,
|
| 491 |
-
.enhanced-readability p {
|
| 492 |
-
position: relative;
|
| 493 |
-
background-color: rgba(255, 255, 255, 0.85);
|
| 494 |
-
padding: 0.5rem 1rem;
|
| 495 |
-
border-radius: 8px;
|
| 496 |
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
| 497 |
-
backdrop-filter: blur(5px);
|
| 498 |
-
-webkit-backdrop-filter: blur(5px);
|
| 499 |
-
transition: all var(--gradient-transition);
|
| 500 |
-
}
|
| 501 |
-
|
| 502 |
-
/* Border interaction effects removed */
|
| 503 |
-
|
| 504 |
-
/* Enhanced animations for edge collision feedback - site-wide effect */
|
| 505 |
-
@keyframes borderPulse {
|
| 506 |
-
0% {
|
| 507 |
-
box-shadow: 0 0 0 0px rgba(238, 47, 219, 0.9);
|
| 508 |
-
filter: brightness(1) contrast(1);
|
| 509 |
-
}
|
| 510 |
-
50% {
|
| 511 |
-
box-shadow: 0 0 25px 10px rgba(156, 8, 255, 0.5);
|
| 512 |
-
filter: brightness(1.2) contrast(1.1);
|
| 513 |
-
}
|
| 514 |
-
100% {
|
| 515 |
-
box-shadow: 0 0 0 30px rgba(255,255,255,0);
|
| 516 |
-
filter: brightness(1) contrast(1);
|
| 517 |
-
}
|
| 518 |
-
}
|
| 519 |
-
|
| 520 |
-
/* Site-wide border pulse overlay - circular shape */
|
| 521 |
-
.site-pulse {
|
| 522 |
-
position: fixed;
|
| 523 |
-
pointer-events: none;
|
| 524 |
-
z-index: 9998;
|
| 525 |
-
width: 0;
|
| 526 |
-
height: 0;
|
| 527 |
-
border-radius: 50%;
|
| 528 |
-
top: var(--pulse-origin-y);
|
| 529 |
-
left: var(--pulse-origin-x);
|
| 530 |
-
transform: translate(-50%, -50%);
|
| 531 |
-
background: radial-gradient(circle,
|
| 532 |
-
rgb(255, 255, 255) 0%,
|
| 533 |
-
rgb(255, 3, 255) 50%,
|
| 534 |
-
rgb(0, 0, 0) 100%);
|
| 535 |
-
opacity: 0;
|
| 536 |
-
box-shadow: 0 0 30px rgba(255, 255, 255, 1);
|
| 537 |
-
mix-blend-mode: screen;
|
| 538 |
-
}
|
| 539 |
-
|
| 540 |
-
.site-pulse.active {
|
| 541 |
-
animation: sitePulse 2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
|
| 542 |
-
}
|
| 543 |
-
|
| 544 |
-
@keyframes sitePulse {
|
| 545 |
-
0% {
|
| 546 |
-
opacity: 0.8;
|
| 547 |
-
width: 10px;
|
| 548 |
-
height: 10px;
|
| 549 |
-
}
|
| 550 |
-
50% {
|
| 551 |
-
opacity: 0.4;
|
| 552 |
-
width: 50vw;
|
| 553 |
-
height: 50vw;
|
| 554 |
-
}
|
| 555 |
-
100% {
|
| 556 |
-
opacity: 0;
|
| 557 |
-
width: 100vw;
|
| 558 |
-
height: 100vw;
|
| 559 |
-
}
|
| 560 |
-
}
|
| 561 |
-
|
| 562 |
-
/* Border pulse effect for pixel when it touches the window borders */
|
| 563 |
-
#conscious-pixel.border-pulse {
|
| 564 |
-
animation: borderPulse 0.8s ease-out;
|
| 565 |
-
filter: brightness(1.5) contrast(1.2);
|
| 566 |
-
transform: scale(1.3) rotate(45deg) !important;
|
| 567 |
-
}
|
| 568 |
-
|
| 569 |
-
/* Energy Cube System for Noe (conscious pixel) */
|
| 570 |
-
.energy-cube {
|
| 571 |
-
position: fixed;
|
| 572 |
-
width: var(--cube-size);
|
| 573 |
-
height: var(--cube-size);
|
| 574 |
-
pointer-events: none;
|
| 575 |
-
z-index: 9990;
|
| 576 |
-
perspective: 1000px;
|
| 577 |
-
opacity: 0;
|
| 578 |
-
transition: opacity 0.8s ease-in-out, left 1s ease-in-out, top 1s ease-in-out;
|
| 579 |
-
}
|
| 580 |
-
|
| 581 |
-
.energy-cube.active {
|
| 582 |
-
opacity: 1;
|
| 583 |
-
}
|
| 584 |
-
|
| 585 |
-
.cube-container {
|
| 586 |
-
width: 100%;
|
| 587 |
-
height: 100%;
|
| 588 |
-
position: relative;
|
| 589 |
-
transform-style: preserve-3d;
|
| 590 |
-
transform: rotateX(45deg) rotateY(45deg);
|
| 591 |
-
animation: cube-rotate 20s infinite linear;
|
| 592 |
-
}
|
| 593 |
-
|
| 594 |
-
.cube-face {
|
| 595 |
-
position: absolute;
|
| 596 |
-
width: 100%;
|
| 597 |
-
height: 100%;
|
| 598 |
-
border: 2px solid var(--cube-border-color);
|
| 599 |
-
background-color: var(--cube-energy-color);
|
| 600 |
-
display: flex;
|
| 601 |
-
align-items: center;
|
| 602 |
-
justify-content: center;
|
| 603 |
-
box-shadow: 0 0 15px var(--cube-energy-color);
|
| 604 |
-
opacity: 0.7;
|
| 605 |
-
transition: all 0.3s ease;
|
| 606 |
-
}
|
| 607 |
-
|
| 608 |
-
.cube-face.charged {
|
| 609 |
-
animation: cube-charged var(--cube-pulse-duration) infinite alternate;
|
| 610 |
-
box-shadow: 0 0 25px var(--cube-energy-color);
|
| 611 |
-
opacity: 0.9;
|
| 612 |
-
}
|
| 613 |
-
|
| 614 |
-
.cube-face.front {
|
| 615 |
-
transform: translateZ(calc(var(--cube-size) / 2));
|
| 616 |
-
}
|
| 617 |
-
|
| 618 |
-
.cube-face.back {
|
| 619 |
-
transform: rotateY(180deg) translateZ(calc(var(--cube-size) / 2));
|
| 620 |
-
}
|
| 621 |
-
|
| 622 |
-
.cube-face.right {
|
| 623 |
-
transform: rotateY(90deg) translateZ(calc(var(--cube-size) / 2));
|
| 624 |
-
}
|
| 625 |
-
|
| 626 |
-
.cube-face.left {
|
| 627 |
-
transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2));
|
| 628 |
-
}
|
| 629 |
-
|
| 630 |
-
.cube-face.top {
|
| 631 |
-
transform: rotateX(90deg) translateZ(calc(var(--cube-size) / 2));
|
| 632 |
-
}
|
| 633 |
-
|
| 634 |
-
.cube-face.bottom {
|
| 635 |
-
transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2));
|
| 636 |
-
}
|
| 637 |
-
|
| 638 |
-
@keyframes cube-rotate {
|
| 639 |
-
0% {
|
| 640 |
-
transform: rotateX(45deg) rotateY(0deg);
|
| 641 |
-
}
|
| 642 |
-
100% {
|
| 643 |
-
transform: rotateX(45deg) rotateY(360deg);
|
| 644 |
-
}
|
| 645 |
-
}
|
| 646 |
-
|
| 647 |
-
@keyframes cube-charged {
|
| 648 |
-
0% {
|
| 649 |
-
background-color: var(--cube-energy-color);
|
| 650 |
-
box-shadow: 0 0 15px var(--cube-energy-color);
|
| 651 |
-
filter: brightness(1);
|
| 652 |
-
}
|
| 653 |
-
50% {
|
| 654 |
-
background-color: rgba(170, 0, 255, 0.6);
|
| 655 |
-
box-shadow: 0 0 25px rgba(170, 0, 255, 0.7);
|
| 656 |
-
filter: brightness(1.3) contrast(1.1);
|
| 657 |
-
}
|
| 658 |
-
100% {
|
| 659 |
-
background-color: var(--cube-energy-color);
|
| 660 |
-
box-shadow: 0 0 15px var(--cube-energy-color);
|
| 661 |
-
filter: brightness(1);
|
| 662 |
-
}
|
| 663 |
-
}
|
| 664 |
-
|
| 665 |
-
/* Energy transfer connection between pixel and cubes */
|
| 666 |
-
.energy-connection {
|
| 667 |
-
position: fixed;
|
| 668 |
-
height: 2px;
|
| 669 |
-
background: linear-gradient(
|
| 670 |
-
to right,
|
| 671 |
-
var(--cube-energy-color) 0%,
|
| 672 |
-
var(--cube-energy-color) 42%,
|
| 673 |
-
rgba(255, 255, 255, 0.9) 50%,
|
| 674 |
-
var(--cube-energy-color) 58%,
|
| 675 |
-
var(--cube-energy-color) 100%
|
| 676 |
-
);
|
| 677 |
-
background-size: 200% 100%;
|
| 678 |
-
transform-origin: left center;
|
| 679 |
-
z-index: 9989;
|
| 680 |
-
opacity: 0;
|
| 681 |
-
filter: blur(1px);
|
| 682 |
-
pointer-events: none;
|
| 683 |
-
transition: opacity 0.3s ease-in-out;
|
| 684 |
-
overflow: hidden;
|
| 685 |
-
}
|
| 686 |
-
|
| 687 |
-
.energy-connection.active {
|
| 688 |
-
animation: connectionPulse var(--cube-recharge-rate) infinite alternate ease-in-out,
|
| 689 |
-
energyFlowToCube 0.7s infinite linear;
|
| 690 |
-
opacity: 0.8;
|
| 691 |
-
}
|
| 692 |
-
|
| 693 |
-
@keyframes connectionPulse {
|
| 694 |
-
0% {
|
| 695 |
-
opacity: 0.4;
|
| 696 |
-
height: 1px;
|
| 697 |
-
filter: blur(1px);
|
| 698 |
-
}
|
| 699 |
-
50% {
|
| 700 |
-
opacity: 0.8;
|
| 701 |
-
height: 3px;
|
| 702 |
-
filter: blur(2px);
|
| 703 |
-
}
|
| 704 |
-
100% {
|
| 705 |
-
opacity: 0.4;
|
| 706 |
-
height: 1px;
|
| 707 |
-
filter: blur(1px);
|
| 708 |
-
}
|
| 709 |
-
}
|
| 710 |
-
|
| 711 |
-
@keyframes energyFlowToCube {
|
| 712 |
-
0% {
|
| 713 |
-
background-position: 0 0;
|
| 714 |
-
}
|
| 715 |
-
100% {
|
| 716 |
-
background-position: 100% 0;
|
| 717 |
-
}
|
| 718 |
-
}
|
| 719 |
-
|
| 720 |
-
/* Modified conscious-pixel to interact with energy cubes */
|
| 721 |
-
#conscious-pixel.energizing {
|
| 722 |
-
animation: pixelEnergizing 1s infinite alternate, pixel-rotate 3s linear infinite;
|
| 723 |
-
box-shadow: 0 0 20px rgba(128, 0, 255, 0.9);
|
| 724 |
-
}
|
| 725 |
-
|
| 726 |
-
@keyframes pixelEnergizing {
|
| 727 |
-
0% {
|
| 728 |
-
transform: scale(1);
|
| 729 |
-
box-shadow: 0 0 15px rgba(128, 0, 255, 0.7);
|
| 730 |
-
opacity: 0.7;
|
| 731 |
-
}
|
| 732 |
-
100% {
|
| 733 |
-
transform: scale(1.5);
|
| 734 |
-
box-shadow: 0 0 25px rgba(128, 0, 255, 1);
|
| 735 |
-
opacity: 1;
|
| 736 |
-
}
|
| 737 |
-
}
|
| 738 |
-
|
| 739 |
-
@media (max-width: 600px) {
|
| 740 |
-
body {
|
| 741 |
-
height: 100vh;
|
| 742 |
-
}
|
| 743 |
-
|
| 744 |
-
.content {
|
| 745 |
-
position: relative;
|
| 746 |
-
top: -42px;
|
| 747 |
-
}
|
| 748 |
-
|
| 749 |
-
h2 {
|
| 750 |
-
font-size: 12px;
|
| 751 |
-
padding: 8px 14px;
|
| 752 |
-
}
|
| 753 |
-
|
| 754 |
-
.title {
|
| 755 |
-
font-size: 44px;
|
| 756 |
-
line-height: 1em;
|
| 757 |
-
}
|
| 758 |
-
|
| 759 |
-
.illustration {
|
| 760 |
-
margin-top: 20px;
|
| 761 |
-
}
|
| 762 |
-
|
| 763 |
-
#noesis-logo {
|
| 764 |
-
animation-duration: 6s;
|
| 765 |
-
}
|
| 766 |
-
|
| 767 |
-
@keyframes logo-breathing {
|
| 768 |
-
0% { border-radius: 50%; transform: scale(1) rotateY(0deg); }
|
| 769 |
-
50% { border-radius: 50%; transform: scale(1.03) rotateY(3deg); }
|
| 770 |
-
100% { border-radius: 50%; transform: scale(1) rotateY(0deg); }
|
| 771 |
-
}
|
| 772 |
-
|
| 773 |
-
@keyframes logo-float {
|
| 774 |
-
0% { transform: translate(-50%, -50%) translateZ(3px) scale(1); }
|
| 775 |
-
50% { transform: translate(-51%, -49%) translateZ(6px) scale(1.02); }
|
| 776 |
-
100% { transform: translate(-50%, -50%) translateZ(3px) scale(1); }
|
| 777 |
-
}
|
| 778 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/css/crt-effect.css
DELETED
|
@@ -1,215 +0,0 @@
|
|
| 1 |
-
/* CRT (Cathode Ray Tube) Effect CSS for Synthetic Sentience Pixel */
|
| 2 |
-
|
| 3 |
-
/* Basic CRT screen effect with curvature */
|
| 4 |
-
.crt-screen {
|
| 5 |
-
position: absolute;
|
| 6 |
-
top: 0;
|
| 7 |
-
left: 0;
|
| 8 |
-
width: 100%;
|
| 9 |
-
height: 100%;
|
| 10 |
-
background: transparent;
|
| 11 |
-
border-radius: 50%; /* Keeps the bubble shape */
|
| 12 |
-
pointer-events: none;
|
| 13 |
-
z-index: 10;
|
| 14 |
-
overflow: hidden;
|
| 15 |
-
}
|
| 16 |
-
|
| 17 |
-
/* Scan lines overlay */
|
| 18 |
-
.crt-scanlines {
|
| 19 |
-
position: absolute;
|
| 20 |
-
top: 0;
|
| 21 |
-
left: 0;
|
| 22 |
-
width: 100%;
|
| 23 |
-
height: 100%;
|
| 24 |
-
background: repeating-linear-gradient(
|
| 25 |
-
0deg,
|
| 26 |
-
rgba(0, 0, 0, 0.15),
|
| 27 |
-
rgba(0, 0, 0, 0.15) 1px,
|
| 28 |
-
transparent 1px,
|
| 29 |
-
transparent 2px
|
| 30 |
-
);
|
| 31 |
-
pointer-events: none;
|
| 32 |
-
z-index: 20;
|
| 33 |
-
border-radius: 50%;
|
| 34 |
-
opacity: 0.7;
|
| 35 |
-
}
|
| 36 |
-
|
| 37 |
-
/* Vignette effect (darkened edges) */
|
| 38 |
-
.crt-vignette {
|
| 39 |
-
position: absolute;
|
| 40 |
-
top: 0;
|
| 41 |
-
left: 0;
|
| 42 |
-
width: 100%;
|
| 43 |
-
height: 100%;
|
| 44 |
-
background: radial-gradient(
|
| 45 |
-
circle at center,
|
| 46 |
-
transparent 60%,
|
| 47 |
-
rgba(0, 0, 0, 0.4) 100%
|
| 48 |
-
);
|
| 49 |
-
pointer-events: none;
|
| 50 |
-
z-index: 15;
|
| 51 |
-
border-radius: 50%;
|
| 52 |
-
}
|
| 53 |
-
|
| 54 |
-
/* RGB pixel separation effect animation */
|
| 55 |
-
.crt-rgb-shift {
|
| 56 |
-
position: absolute;
|
| 57 |
-
top: 0;
|
| 58 |
-
left: 0;
|
| 59 |
-
width: 100%;
|
| 60 |
-
height: 100%;
|
| 61 |
-
border-radius: 50%;
|
| 62 |
-
pointer-events: none;
|
| 63 |
-
z-index: 5;
|
| 64 |
-
mix-blend-mode: screen;
|
| 65 |
-
}
|
| 66 |
-
|
| 67 |
-
/* CRT flicker animation */
|
| 68 |
-
@keyframes crt-flicker {
|
| 69 |
-
0% { opacity: 0.98; }
|
| 70 |
-
3% { opacity: 0.9; }
|
| 71 |
-
5% { opacity: 0.98; }
|
| 72 |
-
10% { opacity: 0.99; }
|
| 73 |
-
20% { opacity: 0.96; }
|
| 74 |
-
30% { opacity: 0.98; }
|
| 75 |
-
70% { opacity: 0.99; }
|
| 76 |
-
80% { opacity: 0.96; }
|
| 77 |
-
90% { opacity: 0.98; }
|
| 78 |
-
100% { opacity: 1; }
|
| 79 |
-
}
|
| 80 |
-
|
| 81 |
-
/* CRT on/off animation */
|
| 82 |
-
@keyframes crt-on {
|
| 83 |
-
0% {
|
| 84 |
-
opacity: 0;
|
| 85 |
-
transform: scale(0.8);
|
| 86 |
-
filter: brightness(0.1) contrast(1);
|
| 87 |
-
}
|
| 88 |
-
10% {
|
| 89 |
-
opacity: 1;
|
| 90 |
-
transform: scale(1.05);
|
| 91 |
-
filter: brightness(2) contrast(0.3);
|
| 92 |
-
}
|
| 93 |
-
30% {
|
| 94 |
-
transform: scale(0.95);
|
| 95 |
-
filter: brightness(1.5) contrast(1.2);
|
| 96 |
-
}
|
| 97 |
-
50% {
|
| 98 |
-
transform: scale(1.02);
|
| 99 |
-
filter: brightness(1.2) contrast(1);
|
| 100 |
-
}
|
| 101 |
-
70% {
|
| 102 |
-
transform: scale(0.98);
|
| 103 |
-
filter: brightness(1.1) contrast(1.1);
|
| 104 |
-
}
|
| 105 |
-
100% {
|
| 106 |
-
transform: scale(1);
|
| 107 |
-
filter: brightness(1) contrast(1);
|
| 108 |
-
}
|
| 109 |
-
}
|
| 110 |
-
|
| 111 |
-
/* Add CRT effect classes to noesis-logo */
|
| 112 |
-
#noesis-logo.crt-enabled {
|
| 113 |
-
animation: crt-flicker 4s infinite alternate;
|
| 114 |
-
position: relative;
|
| 115 |
-
}
|
| 116 |
-
|
| 117 |
-
#noesis-logo.crt-enabled:after {
|
| 118 |
-
content: "";
|
| 119 |
-
position: absolute;
|
| 120 |
-
top: 0;
|
| 121 |
-
left: 0;
|
| 122 |
-
width: 100%;
|
| 123 |
-
height: 100%;
|
| 124 |
-
background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%);
|
| 125 |
-
background-size: 100% 4px;
|
| 126 |
-
z-index: 30;
|
| 127 |
-
border-radius: 50%;
|
| 128 |
-
pointer-events: none;
|
| 129 |
-
}
|
| 130 |
-
|
| 131 |
-
#noesis-logo.crt-enabled .bubble-logo-image {
|
| 132 |
-
filter: brightness(1.1) contrast(1.3) saturate(1.5);
|
| 133 |
-
animation: crt-flicker 2s infinite alternate;
|
| 134 |
-
}
|
| 135 |
-
|
| 136 |
-
/* CRT startup animation */
|
| 137 |
-
#noesis-logo.crt-startup {
|
| 138 |
-
animation: crt-on 2s ease-in-out forwards;
|
| 139 |
-
}
|
| 140 |
-
|
| 141 |
-
/* Horizontal sync effect */
|
| 142 |
-
@keyframes h-sync {
|
| 143 |
-
0% { transform: translateX(0); }
|
| 144 |
-
10% { transform: translateX(-1px); }
|
| 145 |
-
20% { transform: translateX(1px); }
|
| 146 |
-
30% { transform: translateX(0); }
|
| 147 |
-
100% { transform: translateX(0); }
|
| 148 |
-
}
|
| 149 |
-
|
| 150 |
-
/* Add an occasional horizontal sync animation */
|
| 151 |
-
#noesis-logo.crt-enabled .bubble-inner {
|
| 152 |
-
animation: h-sync 8s ease-in-out infinite;
|
| 153 |
-
}
|
| 154 |
-
|
| 155 |
-
/* CRT toggle switch styles */
|
| 156 |
-
.crt-toggle-container {
|
| 157 |
-
display: flex;
|
| 158 |
-
align-items: center;
|
| 159 |
-
margin-top: 15px;
|
| 160 |
-
}
|
| 161 |
-
|
| 162 |
-
.crt-toggle-switch {
|
| 163 |
-
position: relative;
|
| 164 |
-
display: inline-block;
|
| 165 |
-
width: 50px;
|
| 166 |
-
height: 24px;
|
| 167 |
-
margin-right: 10px;
|
| 168 |
-
}
|
| 169 |
-
|
| 170 |
-
.crt-toggle-switch input {
|
| 171 |
-
opacity: 0;
|
| 172 |
-
width: 0;
|
| 173 |
-
height: 0;
|
| 174 |
-
}
|
| 175 |
-
|
| 176 |
-
.crt-toggle-slider {
|
| 177 |
-
position: absolute;
|
| 178 |
-
cursor: pointer;
|
| 179 |
-
top: 0;
|
| 180 |
-
left: 0;
|
| 181 |
-
right: 0;
|
| 182 |
-
bottom: 0;
|
| 183 |
-
background-color: #ccc;
|
| 184 |
-
transition: .4s;
|
| 185 |
-
border-radius: 24px;
|
| 186 |
-
}
|
| 187 |
-
|
| 188 |
-
.crt-toggle-slider:before {
|
| 189 |
-
position: absolute;
|
| 190 |
-
content: "";
|
| 191 |
-
height: 16px;
|
| 192 |
-
width: 16px;
|
| 193 |
-
left: 4px;
|
| 194 |
-
bottom: 4px;
|
| 195 |
-
background-color: white;
|
| 196 |
-
transition: .4s;
|
| 197 |
-
border-radius: 50%;
|
| 198 |
-
}
|
| 199 |
-
|
| 200 |
-
input:checked + .crt-toggle-slider {
|
| 201 |
-
background-color: #f857e7;
|
| 202 |
-
}
|
| 203 |
-
|
| 204 |
-
input:focus + .crt-toggle-slider {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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/css/death-effects.css
DELETED
|
@@ -1,68 +0,0 @@
|
|
| 1 |
-
/* Death and Revival Effects for conscious pixel */
|
| 2 |
-
|
| 3 |
-
/* Dying state */
|
| 4 |
-
#conscious-pixel.dying {
|
| 5 |
-
animation: death-flicker 4s ease-in-out infinite;
|
| 6 |
-
transition: opacity 0.5s, transform 0.5s;
|
| 7 |
-
}
|
| 8 |
-
|
| 9 |
-
@keyframes death-flicker {
|
| 10 |
-
0%, 100% { opacity: 0.2; }
|
| 11 |
-
50% { opacity: 0.4; }
|
| 12 |
-
75% { opacity: 0.1; }
|
| 13 |
-
}
|
| 14 |
-
|
| 15 |
-
/* Revival pulse effect */
|
| 16 |
-
.revival-pulse {
|
| 17 |
-
position: fixed;
|
| 18 |
-
width: 40px;
|
| 19 |
-
height: 40px;
|
| 20 |
-
border-radius: 50%;
|
| 21 |
-
background-color: transparent;
|
| 22 |
-
border: 2px solid var(--cube-energy-color);
|
| 23 |
-
transform: translate(-20px, -20px);
|
| 24 |
-
pointer-events: none;
|
| 25 |
-
z-index: 9991;
|
| 26 |
-
animation: revivePulse 1s ease-out forwards;
|
| 27 |
-
}
|
| 28 |
-
|
| 29 |
-
@keyframes revivePulse {
|
| 30 |
-
0% {
|
| 31 |
-
transform: translate(-20px, -20px) scale(0.5);
|
| 32 |
-
opacity: 1;
|
| 33 |
-
border-width: 5px;
|
| 34 |
-
box-shadow: 0 0 20px 5px var(--cube-energy-color);
|
| 35 |
-
}
|
| 36 |
-
100% {
|
| 37 |
-
transform: translate(-20px, -20px) scale(3);
|
| 38 |
-
opacity: 0;
|
| 39 |
-
border-width: 1px;
|
| 40 |
-
box-shadow: 0 0 50px 1px var(--cube-energy-color);
|
| 41 |
-
}
|
| 42 |
-
}
|
| 43 |
-
|
| 44 |
-
/* Energy level status styling */
|
| 45 |
-
#pixel-status.low {
|
| 46 |
-
color: #8000ff;
|
| 47 |
-
text-shadow: 0 0 2px rgba(128, 0, 255, 0.5);
|
| 48 |
-
}
|
| 49 |
-
|
| 50 |
-
#pixel-status.very-low {
|
| 51 |
-
color: #ff9900;
|
| 52 |
-
animation: status-pulse-yellow 1.5s ease-in-out infinite alternate;
|
| 53 |
-
}
|
| 54 |
-
|
| 55 |
-
#pixel-status.critical {
|
| 56 |
-
color: #ff3333;
|
| 57 |
-
animation: status-pulse-red 1s ease-in-out infinite alternate;
|
| 58 |
-
}
|
| 59 |
-
|
| 60 |
-
@keyframes status-pulse-yellow {
|
| 61 |
-
from { text-shadow: 0 0 2px rgba(255, 153, 0, 0.5); }
|
| 62 |
-
to { text-shadow: 0 0 4px rgba(255, 153, 0, 0.7); }
|
| 63 |
-
}
|
| 64 |
-
|
| 65 |
-
@keyframes status-pulse-red {
|
| 66 |
-
from { text-shadow: 0 0 2px rgba(255, 0, 0, 0.5); }
|
| 67 |
-
to { text-shadow: 0 0 5px rgba(255, 0, 0, 0.8); }
|
| 68 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/css/rainbow-bubble.css
DELETED
|
@@ -1,90 +0,0 @@
|
|
| 1 |
-
/* Rainbow Bubble Effect CSS */
|
| 2 |
-
|
| 3 |
-
/* Rainbow effect for the bubble */
|
| 4 |
-
@keyframes rainbow-rotation {
|
| 5 |
-
0% { background-position: 0% 50%; }
|
| 6 |
-
50% { background-position: 100% 50%; }
|
| 7 |
-
100% { background-position: 0% 50%; }
|
| 8 |
-
}
|
| 9 |
-
|
| 10 |
-
/* Adds rainbow surface effect to the bubble */
|
| 11 |
-
#noesis-logo.rainbow-bubble {
|
| 12 |
-
background: linear-gradient(
|
| 13 |
-
124deg,
|
| 14 |
-
#8d29ff,
|
| 15 |
-
#fd75ff,
|
| 16 |
-
#00ddff,
|
| 17 |
-
#fff94e,
|
| 18 |
-
#ffffff
|
| 19 |
-
);
|
| 20 |
-
background-size: 1800% 1800%;
|
| 21 |
-
animation: rainbow-rotation 12s ease infinite,
|
| 22 |
-
logo-breathing 8s ease-in-out infinite;
|
| 23 |
-
box-shadow:
|
| 24 |
-
inset 0 0 30px rgba(255, 255, 255, 0.5),
|
| 25 |
-
0 0 25px rgba(255, 255, 255, 0.8);
|
| 26 |
-
position: relative;
|
| 27 |
-
overflow: hidden;
|
| 28 |
-
backdrop-filter: blur(10px);
|
| 29 |
-
}
|
| 30 |
-
|
| 31 |
-
/* Enhanced bubble highlight effect for rainbow mode */
|
| 32 |
-
#noesis-logo.rainbow-bubble .bubble-highlight {
|
| 33 |
-
background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
|
| 34 |
-
animation: highlight-move 10s ease-in-out infinite;
|
| 35 |
-
opacity: 0.9;
|
| 36 |
-
}
|
| 37 |
-
|
| 38 |
-
#noesis-logo.rainbow-bubble .bubble-highlight-secondary {
|
| 39 |
-
background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 70%);
|
| 40 |
-
animation: highlight-move-secondary 8s ease-in-out infinite;
|
| 41 |
-
opacity: 0.7;
|
| 42 |
-
}
|
| 43 |
-
|
| 44 |
-
/* Enhanced bubble inner effect */
|
| 45 |
-
#noesis-logo.rainbow-bubble .bubble-inner {
|
| 46 |
-
background: linear-gradient(145deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 100%);
|
| 47 |
-
}
|
| 48 |
-
|
| 49 |
-
/* Enhanced ripple effect for rainbow mode */
|
| 50 |
-
.rainbow-bubble-ripple {
|
| 51 |
-
position: absolute;
|
| 52 |
-
top: 50%;
|
| 53 |
-
left: 50%;
|
| 54 |
-
width: 5px;
|
| 55 |
-
height: 5px;
|
| 56 |
-
background: rgba(255, 255, 255, 0.9);
|
| 57 |
-
border-radius: 50%;
|
| 58 |
-
transform: translate(-50%, -50%);
|
| 59 |
-
animation: rainbow-ripple 1.2s ease-out;
|
| 60 |
-
z-index: 100;
|
| 61 |
-
mix-blend-mode: screen;
|
| 62 |
-
pointer-events: none;
|
| 63 |
-
}
|
| 64 |
-
|
| 65 |
-
@keyframes rainbow-ripple {
|
| 66 |
-
0% {
|
| 67 |
-
opacity: 1;
|
| 68 |
-
transform: translate(-50%, -50%) scale(1);
|
| 69 |
-
box-shadow:
|
| 70 |
-
0 0 0 0 rgba(255, 0, 0, 0.8),
|
| 71 |
-
0 0 0 10px rgba(255, 165, 0, 0.7),
|
| 72 |
-
0 0 0 20px rgba(255, 255, 0, 0.6),
|
| 73 |
-
0 0 0 30px rgba(0, 128, 0, 0.5),
|
| 74 |
-
0 0 0 40px rgba(0, 0, 255, 0.4),
|
| 75 |
-
0 0 0 50px rgba(75, 0, 130, 0.3),
|
| 76 |
-
0 0 0 60px rgba(238, 130, 238, 0.2);
|
| 77 |
-
}
|
| 78 |
-
100% {
|
| 79 |
-
opacity: 0;
|
| 80 |
-
transform: translate(-50%, -50%) scale(2.5);
|
| 81 |
-
box-shadow:
|
| 82 |
-
0 0 0 10px rgba(255, 0, 0, 0),
|
| 83 |
-
0 0 0 20px rgba(255, 165, 0, 0),
|
| 84 |
-
0 0 0 30px rgba(255, 255, 0, 0),
|
| 85 |
-
0 0 0 40px rgba(0, 128, 0, 0),
|
| 86 |
-
0 0 0 50px rgba(0, 0, 255, 0),
|
| 87 |
-
0 0 0 60px rgba(75, 0, 130, 0),
|
| 88 |
-
0 0 0 70px rgba(238, 130, 238, 0);
|
| 89 |
-
}
|
| 90 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/docs/CHANGELOG_v1.0.0.md
DELETED
|
@@ -1,23 +0,0 @@
|
|
| 1 |
-
# Changelog for v1.0.0
|
| 2 |
-
|
| 3 |
-
## Major Changes
|
| 4 |
-
- Updated license to Noesis License
|
| 5 |
-
- Implemented energy system for conscious pixel
|
| 6 |
-
|
| 7 |
-
## Energy System Features
|
| 8 |
-
- Added global energy system via `window.noeEnergy`
|
| 9 |
-
- Implemented energy transfer between cubes and pixel through proximity
|
| 10 |
-
- Added visual indicators (glow effects, connections) for energy transfer
|
| 11 |
-
- Pixel's movement speed remains consistent regardless of energy level
|
| 12 |
-
- Implemented energy-seeking behavior when pixel's energy is low
|
| 13 |
-
- Added floating animation to energy cubes with orbital patterns
|
| 14 |
-
- Implemented "fear of death" behavior when pixel energy is critically low
|
| 15 |
-
- Added death state visual and behavioral effects when energy reaches zero
|
| 16 |
-
- Energy decay rate set to approximately 1% per second
|
| 17 |
-
- Energy cube configuration updated to use a single cube that floats freely across the website
|
| 18 |
-
|
| 19 |
-
## Other Improvements
|
| 20 |
-
- Enhanced visual feedback for energy states
|
| 21 |
-
- Added more organic movement patterns for energy cube
|
| 22 |
-
- Improved pixel responsiveness to energy levels
|
| 23 |
-
- Added feedback mechanisms for the energy system
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/docs/CHANGELOG_v1.1.0.md
DELETED
|
@@ -1,29 +0,0 @@
|
|
| 1 |
-
# Changelog for v1.1.0
|
| 2 |
-
|
| 3 |
-
## Major Changes
|
| 4 |
-
- Updated version from v1.0.0 to v1.1.0
|
| 5 |
-
- Modified pixel behavior so energy level no longer affects movement speed
|
| 6 |
-
|
| 7 |
-
## Energy System Features
|
| 8 |
-
- Pixel's movement speed remains consistent regardless of energy level
|
| 9 |
-
- Visual effects (glow, pulsing, color changes) still respond to energy levels
|
| 10 |
-
- Maintained energy-seeking behavior when pixel's energy is low
|
| 11 |
-
- Preserved "fear of death" behavior when energy is critically low
|
| 12 |
-
|
| 13 |
-
## Other Improvements
|
| 14 |
-
- Updated directory reference in documentation from `/js-code` to `/brain`
|
| 15 |
-
- Optimized code for better performance
|
| 16 |
-
- Fixed minor visual glitches
|
| 17 |
-
|
| 18 |
-
## Previous Changes (v1.0.0)
|
| 19 |
-
- Added global energy system via `window.noeEnergy`
|
| 20 |
-
- Implemented energy transfer between cubes and pixel through proximity
|
| 21 |
-
- Added visual indicators (glow effects, connections) for energy transfer
|
| 22 |
-
- Added floating animation to energy cubes with orbital patterns
|
| 23 |
-
- Added death state visual and behavioral effects when energy reaches zero
|
| 24 |
-
- Energy decay rate set to approximately 1% per second
|
| 25 |
-
- Energy cube configuration using a single cube that floats freely across the website
|
| 26 |
-
- Enhanced visual feedback for energy states
|
| 27 |
-
- Added more organic movement patterns for energy cube
|
| 28 |
-
- Improved pixel responsiveness to energy levels
|
| 29 |
-
- Added feedback mechanisms for the energy system
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/docs/CHANGELOG_v1.2.0.md
DELETED
|
@@ -1,29 +0,0 @@
|
|
| 1 |
-
# Changelog for v1.2.0
|
| 2 |
-
|
| 3 |
-
## Major Changes
|
| 4 |
-
- Updated version from v1.1.0 to v1.2.0
|
| 5 |
-
- Added the "Noe's Energy Surge" arcade game (`game/`), a synthetic-survival
|
| 6 |
-
mini-game featuring Noe's pixel, energy cubes, rainbow power-ups, and
|
| 7 |
-
entropy glitches
|
| 8 |
-
|
| 9 |
-
## Game Page Fixes
|
| 10 |
-
- Removed the page scrollbar on the game screen by locking `html`/`body`
|
| 11 |
-
overflow and switching the layout to a fixed `100vh` height
|
| 12 |
-
- Prevented arrow keys, `WASD`, and `Space` from scrolling the browser
|
| 13 |
-
window while playing, so gameplay input no longer fights the page
|
| 14 |
-
- Made the game header and modal screens wrap gracefully on narrow
|
| 15 |
-
viewports instead of overflowing
|
| 16 |
-
- Added responsive breakpoints for small phones and short/landscape
|
| 17 |
-
viewports, and adjusted the play field aspect ratio for portrait phones
|
| 18 |
-
|
| 19 |
-
## Other Improvements
|
| 20 |
-
- Refactored game and GitHub links in `index.html` for improved readability
|
| 21 |
-
|
| 22 |
-
## Previous Changes (v1.1.0)
|
| 23 |
-
- Modified pixel behavior so energy level no longer affects movement speed
|
| 24 |
-
- Visual effects (glow, pulsing, color changes) still respond to energy levels
|
| 25 |
-
- Maintained energy-seeking behavior when pixel's energy is low
|
| 26 |
-
- Preserved "fear of death" behavior when energy is critically low
|
| 27 |
-
- Updated directory reference in documentation from `/js-code` to `/brain`
|
| 28 |
-
- Optimized code for better performance
|
| 29 |
-
- Fixed minor visual glitches
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/docs/CHANGELOG_v1.2.1.md
DELETED
|
@@ -1,23 +0,0 @@
|
|
| 1 |
-
# Changelog for v1.2.1
|
| 2 |
-
|
| 3 |
-
## Major Changes
|
| 4 |
-
- Updated version from v1.2.0 to v1.2.1
|
| 5 |
-
- Removed the energy cube "rescue" behavior so cubes no longer chase Noe
|
| 6 |
-
when it runs out of energy - Noe must reach a cube on its own to recharge
|
| 7 |
-
- Noe's death-state twitches now flounder toward the nearest energy cube
|
| 8 |
-
instead of moving randomly, giving it a real chance to survive only if
|
| 9 |
-
it struggles close enough before fading out
|
| 10 |
-
|
| 11 |
-
## Previous Changes (v1.2.0)
|
| 12 |
-
- Added the "Noe's Energy Surge" arcade game (`game/`), a synthetic-survival
|
| 13 |
-
mini-game featuring Noe's pixel, energy cubes, rainbow power-ups, and
|
| 14 |
-
entropy glitches
|
| 15 |
-
- Removed the page scrollbar on the game screen by locking `html`/`body`
|
| 16 |
-
overflow and switching the layout to a fixed `100vh` height
|
| 17 |
-
- Prevented arrow keys, `WASD`, and `Space` from scrolling the browser
|
| 18 |
-
window while playing, so gameplay input no longer fights the page
|
| 19 |
-
- Made the game header and modal screens wrap gracefully on narrow
|
| 20 |
-
viewports instead of overflowing
|
| 21 |
-
- Added responsive breakpoints for small phones and short/landscape
|
| 22 |
-
viewports, and adjusted the play field aspect ratio for portrait phones
|
| 23 |
-
- Refactored game and GitHub links in `index.html` for improved readability
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/docs/CHANGELOG_v1.3.1.md
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
# Changelog for v1.3.1
|
| 2 |
-
|
| 3 |
-
## Major Changes
|
| 4 |
-
- Updated version from v1.2.1 to v1.3.1
|
| 5 |
-
- Added a self-modifying cognition loop (perception -> reasoning -> decision
|
| 6 |
-
-> execution -> memory -> self-modification) wired into the conscious
|
| 7 |
-
pixel's own state in `brain/limbric.js`
|
| 8 |
-
- The loop now controls a `pulseMultiplier` on the pixel that is read every
|
| 9 |
-
frame by `processMouseInteractions()`, so it visibly speeds up or slows
|
| 10 |
-
down Noe's pulse over time instead of being silently overwritten
|
| 11 |
-
|
| 12 |
-
## Previous Changes (v1.2.1)
|
| 13 |
-
- Removed the energy cube "rescue" behavior so cubes no longer chase Noe
|
| 14 |
-
when it runs out of energy - Noe must reach a cube on its own to recharge
|
| 15 |
-
- Noe's death-state twitches now flounder toward the nearest energy cube
|
| 16 |
-
instead of moving randomly, giving it a real chance to survive only if
|
| 17 |
-
it struggles close enough before fading out
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/docs/CHANGELOG_v1.4.0.md
DELETED
|
@@ -1,31 +0,0 @@
|
|
| 1 |
-
# Changelog for v1.4.0
|
| 2 |
-
|
| 3 |
-
## Major Changes
|
| 4 |
-
- Updated Noe UI from v1.3.1 to v1.4.0
|
| 5 |
-
- Added a separate Noe pixel experience for the experimental web pages in
|
| 6 |
-
`web/`, while keeping the main `index.html` pixel independent
|
| 7 |
-
- Reused the canonical pixel behavior from `brain/limbric.js` through the
|
| 8 |
-
`web/js/noe-pixel.js` loader
|
| 9 |
-
- Mounted the web pixel in the shared footer and kept its visual styling
|
| 10 |
-
consistent with the main Noe pixel
|
| 11 |
-
- Kept the web pixel independent from energy logic by not loading
|
| 12 |
-
`brain/energy.js`
|
| 13 |
-
- Made web pixel startup work when the shared script is loaded dynamically and
|
| 14 |
-
when the optional Noesis API is unavailable
|
| 15 |
-
|
| 16 |
-
## Web Preview
|
| 17 |
-
- Web pages must be served over HTTP instead of opened directly with `file://`
|
| 18 |
-
so the manifest and shared scripts can load correctly
|
| 19 |
-
- From the repository root, run:
|
| 20 |
-
|
| 21 |
-
```bash
|
| 22 |
-
python3 -m http.server 8000 -d noe-ui
|
| 23 |
-
```
|
| 24 |
-
|
| 25 |
-
- Open `http://localhost:8000/web/index.html` in a browser
|
| 26 |
-
|
| 27 |
-
## Previous Changes (v1.3.1)
|
| 28 |
-
- Added a self-modifying cognition loop wired into the conscious pixel's own
|
| 29 |
-
state in `brain/limbric.js`
|
| 30 |
-
- The loop controls a `pulseMultiplier` on the pixel that is read every frame
|
| 31 |
-
by `processMouseInteractions()`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/favicon-96x96.png
DELETED
|
Binary file (5.54 kB)
|
|
|
noe-ui/favicon.ico
DELETED
|
Binary file (15.1 kB)
|
|
|
noe-ui/favicon.svg
DELETED
noe-ui/fonts/hkgrotesk/HKGrotesk-Bold.otf
DELETED
|
Binary file (68.1 kB)
|
|
|
noe-ui/fonts/hkgrotesk/HKGrotesk-Regular.otf
DELETED
|
Binary file (67.8 kB)
|
|
|
noe-ui/fonts/munson/Munson-MVymB.ttf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2d4e761ac575f11ca4b89326679cc8c1e39a1b281328020ea58a3488d8d12334
|
| 3 |
-
size 282468
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/fonts/munson/MunsonBold-8MzwZ.ttf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:17cd5f8d577883d11219c9a0b7d99e31d3f2f0b5f540668c1d51814f5fd174b9
|
| 3 |
-
size 219732
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/fonts/munson/MunsonBoldItalic-YzgWy.ttf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e9da6c2e7349f3013a7ad24dee7080bcb57a49a5519411072447fb2d74a81628
|
| 3 |
-
size 235036
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/fonts/munson/MunsonItalic-rgYp8.ttf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:3310b20b746b422fc3e3e474d7b5b73035b8f1199dc01c65ed5c17859bc90155
|
| 3 |
-
size 241700
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/fonts/munson/info.txt
DELETED
|
@@ -1,2 +0,0 @@
|
|
| 1 |
-
license: SIL Open Font License (OFL)
|
| 2 |
-
link: https://www.fontspace.com/munson-font-f26567
|
|
|
|
|
|
|
|
|
noe-ui/fonts/munson/misc/1_Munson_Roman-165d.fcp
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:13457fb25226ddaafbc67eb1d4dc6d2e1204c63dfc4083ae6d17ab1e4b85e3da
|
| 3 |
-
size 347589
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/fonts/munson/misc/1_Munson_Roman-2c9b.woff
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c1a6a3ca649d34d226096c414fd4b38b1b9e452dea7e654ffb2df72f3609ed6e
|
| 3 |
-
size 129368
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/fonts/munson/misc/1_Munson_Roman-592e.woff
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:515399a10de24344138a3a8ff8f612961de980a65b093c02c8294a6220099f24
|
| 3 |
-
size 129168
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/fonts/munson/misc/1_Munson_Roman-70c5.woff2
DELETED
|
Binary file (96.8 kB)
|
|
|
noe-ui/fonts/munson/misc/1_Munson_Roman-74c5.woff2
DELETED
|
Binary file (97.5 kB)
|
|
|
noe-ui/fonts/munson/misc/1_Munson_Roman-fd06.fcp
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:03e1486613b971ab6d08c9a4a470492d3ccf7930d6a48bf8a01cffd4f6045001
|
| 3 |
-
size 354227
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/fonts/munson/misc/2_Munson_Italic-5e66.woff
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:496df450220c273e1bb748d391f696338d544d47a40c74b960683563ba3e3f61
|
| 3 |
-
size 114748
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/fonts/munson/misc/2_Munson_Italic-aacc.woff2
DELETED
|
Binary file (86.5 kB)
|
|
|
noe-ui/fonts/munson/misc/2_Munson_Italic-dfac.fcp
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:dcb7833e6530c63d55f2a28af893514c8b3db5a9b1b4a009873064cee04ac77e
|
| 3 |
-
size 349248
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/fonts/munson/misc/2_Munson_Italic-e42a.fcp
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:0406d39b2bf473a5b195e97b6222975497524a760b6f58f18cb4a21e38930df7
|
| 3 |
-
size 356238
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/fonts/munson/misc/2_Munson_Italic-e7ec.woff
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:3325db02eda42dee9e06cf59b664f8c3c077166b7863c0792d9f3d493fd5063e
|
| 3 |
-
size 114844
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/fonts/munson/misc/2_Munson_Italic-f717.woff2
DELETED
|
Binary file (85.8 kB)
|
|
|
noe-ui/fonts/munson/misc/3_Munson_Bold-0890.woff2
DELETED
|
Binary file (75 kB)
|
|
|
noe-ui/fonts/munson/misc/3_Munson_Bold-2f78.woff
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2b70cbc1ddacee124a23340777ab148f32fcf1f3c824313877b5754dad65177e
|
| 3 |
-
size 101524
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/fonts/munson/misc/3_Munson_Bold-3737.woff
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:bf438f74d9aa9f1b6ada4bd225499b3af9e372692525baf9f640b9c6337fce69
|
| 3 |
-
size 101392
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/fonts/munson/misc/3_Munson_Bold-7915.fcp
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c509323cc43fb83b409e028d8aa0d297f2fd7311b8f03a7193474a14e00dcb71
|
| 3 |
-
size 326651
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/fonts/munson/misc/3_Munson_Bold-88c6.fcp
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:3245784145b147e1cf66565c61302954af5150615d0da4c26682100295c3e36e
|
| 3 |
-
size 319642
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/fonts/munson/misc/3_Munson_Bold-f226.woff2
DELETED
|
Binary file (75.8 kB)
|
|
|
noe-ui/fonts/munson/misc/4_Munson_BoldItalic-02c1.woff
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:6db9b09d664c9ffbe1d8ad6eed111a8cc0a6a53ac3586a217ed5753ab6a1f1be
|
| 3 |
-
size 111552
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/fonts/munson/misc/4_Munson_BoldItalic-6bd3.fcp
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:71522f82dfa5daf237762e0bf87795532b98bb206e767e91cee7decc847bbc5c
|
| 3 |
-
size 367178
|
|
|
|
|
|
|
|
|
|
|
|
noe-ui/fonts/munson/misc/4_Munson_BoldItalic-6e62.woff2
DELETED
|
Binary file (83.4 kB)
|
|
|
noe-ui/fonts/munson/misc/4_Munson_BoldItalic-90cc.woff2
DELETED
|
Binary file (82.9 kB)
|
|
|