Fork of Consciousness
This canvas-based visualization simulates an emergent consciousness through a neural network, displaying neurons as glowing nodes that activate and form new connections over time. The animation uses Canvas gradients for neuron glow effects and alpha-blended strokes for connection strength. Mouse movement subtly activates nearby neurons, while buttons trigger stimuli and philosophical prompts that generate text responses in a thought stream. Interactive sliders control energy and complexity parameters, which influence the network's activity and learning rate.
AI-generated descriptionConsciousness Simulation
This project creates an interactive simulation of an emergent consciousness model based on a neural network visualization. It displays neurons that form connections, activate based on stimuli, and generate "thoughts" to simulate a rudimentary form of consciousness.
Features
- Interactive neural network visualization
- Dynamic thought generation and self-reflection
- Adjustable energy and complexity parameters
- Consciousness level measurement based on network activity
How to Use
- Open
index.htmlin a modern web browser - Interact with the simulation:
- Move your mouse over the canvas to subtly stimulate neurons
- Click on the canvas to activate neurons near the cursor
- Use the "Stimulate" button to randomly activate neurons
- Use the "Ask a Question" button to prompt philosophical reflections
- Adjust the sliders to control energy level and network complexity
Architecture
The code is organized into several modules:
neuralNetwork.js: Manages neurons and their connectionsrenderer.js: Handles the canvas visualizationthoughtSystem.js: Manages thought generation and consciousness measurementuiController.js: Handles user interface interactionssimulation.js: Coordinates all componentsmain.js: Entry point that initializes the simulation