Skip to main content
100%

Fork of Consciousness

✓ Published0🌍 Public
NNita
Last edited Apr 1, 2025
Created on Apr 1, 2025
Forked from 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 description

Consciousness 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

  1. Open index.html in a modern web browser
  2. 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 connections
  • renderer.js: Handles the canvas visualization
  • thoughtSystem.js: Manages thought generation and consciousness measurement
  • uiController.js: Handles user interface interactions
  • simulation.js: Coordinates all components
  • main.js: Entry point that initializes the simulation
MIT Licensed

Similar vizzes