Mycelia

jmy · 2023 · Presents

On a near-black ground, lacy filigree blooms spread like lichen or frost. Fine threads and stippled clusters in gold, ochre and pale blue branch outward from a denser central tangle, thinning into sparse tendrils at the edges. The intricate, web-like growth feels organic and quietly luminous.
jmy · via Art Blocks ↗ · © the artist
Sample output of Mycelia
jmy · via Art Blocks ↗ · © the artist
Sample output of Mycelia
jmy · via Art Blocks ↗ · © the artist
Sample output of Mycelia
jmy · via Art Blocks ↗ · © the artist

*Mycelia* explores the beauty and intricacy of mycelium. Mycelium is the vegetative part of a fungus, consisting of a mass of branched, thread-like hyphae. In addition to playing a crucial role in the growth and reproduction of fungi, it also seems to interweave with nature at large. *Mycelia* takes place in a similar domain to my previous works centered around the connection between math, music, art, and nature. What can we learn from nature's generative processes, and how could these be used in a digital environment? It is fascinating how something that seems to be such a simple algorithm can achieve such tremendous results. #### The Algorithm In a similar way to the mycelium we find in nature, my virtual mycelia grows by extending its hyphae, absorbing nutrients, and breaking them down into energy. As the mycelium grows and matures, it forms a network of interconnected hyphae. In a simplified way, every hypha has a core algorithm with the following instructions: 1. Absorb nutrition from the soil and convert it into energy. 2. Use the energy to move one step forward. Does the new position contain more of the nutrition it needs? If yes, repeat step 1, otherwise go to step 3. 3. Divide into two new hyphae growing slightly to the left and right to increase the chance to find more nutrition. On top of the core algorithm, a few other things could happen: - There are different kinds of nutrients. A hypha can only focus on one kind at a time. But if it travels long distances, its DNA can change to absorb another kind of nutrient. This opens up more complicated networks and surprising outcomes. - The angle used when a hypha divides could sometimes change to be wider or narrower, always with the goal of optimizing the nutrient intake. - When the hypha collides with another branch in the network, they grow together. But there is also a chance that it could cross a branch depending on the difference in age between the branches. Think of it like it grows slightly up or down, which makes it possible to pass over or under a branch. - There is a survival mechanism that is triggered when only a few hyphae exist in the network, which can force it to cross its own branches. A challenge with the project was how to achieve an aesthetic outcome that could please the eye. The solution was to find a way to generate the amount and position of nutrients in the ground. Influenced by how sound spreads through the air, the nutrients spread from a single point and are being pushed out in wave-shaped circles over time. The waves are built synthetically by mixing sine waves with different frequencies and amplitudes. This gives each layer of nutrients its own characteristics and rhythm. To describe the age of the hypha, it changes color over time. When it's young, it picks the first color in the palette, and over time it gradually changes color until it reaches the end of its lifecycle. As you venture deeper into the world of *Mycelia* you'll feel a sense of magic and wonder begin to envelop you. You'll be transported to a realm where the boundaries between the natural and digital worlds blur, and the true power of mycelium is revealed.

How it works

The core is branching, growing hyphal agents. Each hypha (Mycelia) advances as a single walker and absorbs 'nutrients' from several field functions (a superposition of sinusoidal distance fields from a centre = Elm). Once it has accumulated enough, it branches off (divide) at a shifted angle and spreads so as to fill space. What matters is collision detection: using a spatial hash, the hyphae avoid overlapping one another too much, so an organic, gap-filled aggregation pattern like DLA (diffusion-limited aggregation) emerges. The hyphae are drawn as growing polylines, their colour changing according to their lifespan. The work takes as its theme the beauty and complexity of the fungal mycelium interweaving with the whole of nature.

Palette

Extracted from outputs · 8
#303f3c#212427#8d694d#5b6556#5c4b3d#6f4627#55352c#1e6377

Algorithms

Details

Tools
p5.js
Runtimes
Browser (Canvas / 2D), On-chain Deterministic
Movement
Long-form Generative Art
Medium
On-chain generative edition
Relations
released-on (2023-06) → art-blocks
Script hash
39110c53622d7f0dceac3d98ba4d7ca863e836004f89d03cee493ef6c79da5e1
On-chain
ethereum · 0x99a9b7c1116f9ceeb1652de04d5969cce509b069 · #458

View generator ↗ · Art Blocks ↗

Sources

Related works (by shared algorithms)

Blooms
cory-haber · 2024
Axo
jiwa · 2023
Drift
paolo-ceric · 2023
Flows
ryley-o-eth · 2023
Essenza
stefano-contiero · 2022
Hōrō
makio135 · 2022
Lacunae
james-dalessandro · 2022
Through Curved Air
jacob-gold · 2022

Last updated 2026-07-16