I have had the ambition to make a more detailed neuron simulator. Especially after getting requests for such a feature from several users of Neuronify. In particular, I have wanted to make a multicompartmental neuron model based on the Hodgkin-Huxley equations.

Below is a first iteration of such a simulation, made with macroquad. In this version, it is possible to create compartments by drawing them on the screen. They will automatically connect to each other if they are close enough.

Afterwards, you can create an action potential by selecting the “Stimulate” tool and selecting a part of your neuron to affect.

In the future I will try to extend the simulation with features such as plotting voltage and other variables over time. I might also add myelinated compartments to simulate axons and synapses that can connect neurons together.