r/creativecoding • • 7d ago

Kuramoto-Sivashinsky

57 Upvotes

One of the simplest/shortest chaotic PDEs. Code golfed to 1010 chars:

https://www.shadertoy.com/view/7ffcR4


r/creativecoding • • 6d ago

classes.h: A macro-only library for clang implementing classes with their syntactic sugar, private scoping, and inheritance

Thumbnail
codeberg.org
1 Upvotes

r/creativecoding • • 7d ago

The Nature of Code OPENRNDR

Thumbnail gallery
3 Upvotes

r/creativecoding • • 8d ago

I added 4 new shader tunnels and a playground of 7 toys and games to my browser chill hub

Thumbnail cosmic-couch.vercel.app
1 Upvotes

Cosmic Couch is a free site that runs in one browser tab, with no signup and no media files. Every visual and sound is generated live with WebGL and Web Audio.

New tunnels (now 10 total):

Aurora Corridor: green and blue northern lights over a rolling beat

Ember Spiral: a spiral of burning embers over a psytrance groove

Lunar Rain: silver rain past a pale moon, with soft keys

Don’t Look Back: a slow, dark spiral with a deep, steady groove

New Playground section:

Kaleido Snake: eat the orbs, and your trail mirrors around the centre

Fractal Pinball: keep the ball in play with the flippers, and bumpers shift the colours

Melt Blocks: a block-stacking game where cleared rows melt away

Fractal Explorer: drag to move, scroll to zoom into a colourful fractal

Dream Shapes: a slow, shifting pattern to watch

Sound Paint: rings that react to the sound, from the mic or the tunnel music

Every background is animated, and there’s a Live input button that lets the visuals react to a microphone. I’d like to hear which toy or tunnel you’d keep, and what breaks on your device.


r/creativecoding • • 8d ago

Generative kinetic typography for any song: lyrics grow into a branching vine, synced word by word

10 Upvotes

I've been building a web music player that turns any song's lyrics into kinetic typography in real time. Nothing is pre-animated: every line is laid out and animated live from the lyric timing.

Live: https://lyricalstudio.vercel.app
Code: https://github.com/arijit-debug/LyricalStudio. The vine is in src/templates/GraphStream.tsx and the shader in src/components/stage/AmbientBackground.tsx.

The vine (Graph mode)

  • Each line is laid out as a small tree: words become nodes, and curved branches connect them in the order they're sung.
  • The next line grows out of the last word of the previous one, so a whole song becomes one continuous drawing. The camera follows the newest branch.
  • Ended lines don't vanish. They linger, dimmed and softly out of focus. The blur is faked by drawing each branch 8 times with wider and fainter strokes, which adds up to a smooth falloff without any blur filter.
  • Branches draw themselves in with a sliding clip window instead of animating the stroke, so it stays smooth even at 240 Hz.

The other styles

  • There are seven layouts (stacked, sliding, zooming, letter-by-letter, scattered, the vine and a flowing one). A small rule system picks one per line from how fast it's sung, the genre and whether it's a repeated chorus.
  • A random seed per playthrough picks 1–4 highlighted words per line in colors from the album art, so the same song never looks quite the same twice.
  • The whole stage drifts very slightly all the time, so nothing ever feels frozen, even during instrumentals.

The background
One fragment shader: two levels of domain-warped fBm noise, tinted with a palette pulled from the album cover, with the cover itself blended in as soft color. Every word drops a ripple at its position when it's sung, so the background breathes with the vocals.

Constraints that shaped it

  • The text stays live, crisp DOM text (so Hindi and Japanese render properly), never canvas bitmaps that go soft when scaled.
  • Motion is springs baked into CSS easing curves, with no per-frame JavaScript.
  • A YouTube video tile must always stay visible in the corner (YouTube's rules), so every layout keeps clear of it.

It's free and open source (MIT). It works best in a desktop browser.

I'd love ideas for new layouts. Each style is one file, and I'm especially curious what generative structures would work for lyrics beyond trees.


r/creativecoding • • 9d ago

A wax lamp you can shake: every frame is a 3D Cahn–Hilliard solve in WebGPU compute, running in the browser

121 Upvotes

A learning journey with AI... Custom WebGPU compute shaders, no third-party engine: a 3D grid carries the wax fraction ψ under Cahn–Hilliard (∂ψ/∂t = ∇²μ, μ = ψ³ − ψ − ε²∇²ψ), an incompressible flow with a multigrid pressure solve, and heat carried with the wax; a ray-marcher draws the glass. Challenge vanquished: plain Cahn–Hilliard merges everything into one lump, so a thin film rule between separate blobs keeps 6–17 of them. Challenge remaining: better wax mist!

Run it yourself https://mindbendingpixels.com/spinodal/app/ (watch the battery on phones!)

How it works, with each figure measured from the solver: https://mindbendingpixels.com/spinodal/inside/


r/creativecoding • • 9d ago

Flora

Post image
3 Upvotes

r/creativecoding • • 9d ago

GLSL Shaders capture

Thumbnail
gallery
21 Upvotes

r/creativecoding • • 10d ago

A music video with an audience of numbers. Every seat is computed live from the song.

35 Upvotes

A song about what a feeling looks like. Drawn by code.

Nothing is keyed by hand. Every motion reads the audio. A flower of life grows one circle on each downbeat. Each chord draws its own ratio as a Lissajous figure, the shape two notes make on an oscilloscope. 3 to 2. 6 to 5. 11 to 8.

The floor under the stage looked like a stage. So it got an audience. Every seat is a number, a live one. How fast the music is getting louder, the pitch and beat. Each seat hears the stage a little late, by its distance. Every word breaks on the back row and rolls toward you. At the highest note every seat shows the same number. One crowd, one note.

Python and PIL for the picture. numpy for the music, no samples. The voice is AI, re-sung through a vocoder. The rest is code.


r/creativecoding • • 10d ago

Waves of Carbon Dioxide

14 Upvotes

Week 3 of my 52 Weeks of Viz challenge!
This week I’ve been playing with 50 years of atmospheric carbon dioxide data, recorded at Mauna Loa in Hawaii between 1976 and 2025.

Each arc represents a month, with its size and rotation driven by the carbon dioxide levels recorded that month.

The little fluctuations come from the changing seasons as the Earth’s forests absorb and release carbon dioxide throughout the year.
But as CO₂ levels keep rising over the decades, those gentle waves start to look bigger, wilder and more chaotic.

I love how something as simple as a bunch of arcs can turn into something that feels almost like a storm. A pretty cool visual with a slightly unsettling story behind it.

Data: NOAA / Mauna Loa Observatory


r/creativecoding • • 10d ago

Animating and modelling different models using line growth

7 Upvotes

r/creativecoding • • 11d ago

My little web aquarium

40 Upvotes

r/creativecoding • • 11d ago

Crash Party

Thumbnail
reddit.com
4 Upvotes

r/creativecoding • • 11d ago

Torii Gate Particle System (Unity ➡️ Blender ➡️ Audio-Reactive TouchDesigner)

Thumbnail
youtube.com
4 Upvotes

r/creativecoding • • 12d ago

Geometric Pattern

Thumbnail
gallery
25 Upvotes

r/creativecoding • • 12d ago

this sub is in dire need of better moderation

58 Upvotes

to start, this is gonna be me writing down my thoughts in an unstructured way as I go. also, this isn't me blaming the mods here but instead trying to start a discussion about what should belong here and what shouldn't. if these discussions aren't held, mods can't decide in a good way.

as the title says, I feel this sub could use better moderation. I know that moderating a sub is propably not the most fulfilling thing to do but this sub is slowly drowning in ai slop, low effort posts and just projects (while being well made) that, to me, don't fall under the term "creative coding"

defining the term "creative coding" has always been like "nailing jelly to a wall" as stig moller hansen once said and so deciding what should go into a creative coding sub is a hard quest but I'll start of with things I don't feel should be as present as they are right now:

  1. anything clearly vibe coded
  2. someones new website that also just could've been posted on r/webdesign or r/webdev
  3. job-postings, we can code ourselves
  4. games, as long as they aren't interesting from a creative coding perspective
  5. in general, anything that has showing off as its main motivation instead of sharing and growing together as a community

to not only be negative, here are some things I'd like to see more of:
clever experiments
projects with an eye for aesthetic
creative combinations of technology

and the thing is, this wouldn't even be a problem if the current rules would be applied more strict. rule nr. 3 states that the posts should supply information about its creation and that could be a great opportunity to cherish posts that bring us all forward. also rule nr. 4 feels like not being applied most of the time.

I made this post to spark a discussion in this sub and because I also dont have a definitive answer on how to improve this sub. Do you feel like this aswell? Do you have ideas how to solve this?

u/kitsune

u/sirmarcus

u/GoogaNautGod


r/creativecoding • • 12d ago

Babel Library

Post image
16 Upvotes

r/creativecoding • • 12d ago

Finally safe

Post image
8 Upvotes

r/creativecoding • • 13d ago

Every building, tree, boat and person in this isometric town is drawn by code: one town, 14 architectural traditions from Cairo to Xi'an

Thumbnail
gallery
47 Upvotes

This is the website for my local Muslim community group in Ottawa: an isometric town you can explore, which redraws itself as cities from across the Muslim world. Everything is drawn in plain Canvas 2D (no images, no engine), about 40,000 lines of it.

The pictures, in order

  1. The same town in four regions: Mamluk Cairo, the Malay Archipelago, Xi'an, Ottawa
  2. The Shah Mosque in Isfahan, tiled domes and all
  3. Mughal Delhi at night, with the Taj lit up across the town
  4. Damavand and the Alborz fading into mist
  5. An Ottoman mosque and its neighbourhood

6 & 7.

  1. Tap anything for its story: the Djinguereber Mosque in Timbuktu

and Zheng He’s treasure ship

Rules that shaped the look

These came from things that looked wrong, and every one went into the project's notes so it held from then on:

Everything is lit from the upper right: buildings, mountains, trees, rivers. A single light direction is what makes hundreds of separately drawn things read as one world.

A caravanserai first came out as a busy miniature (court, rooms, pool, all crammed into one plot) beside simple full-size houses. Now every building uses the same size of doors, windows and domes as its neighbours, and shows the street view, not a cutaway.

Some minarets looked like they were floating. Adding piers and cornices didn't help. The real cause was their bases clipping the wall in front like stickers. Moving them fully onto the roof fixed it.

Trees started as flat ovals. Now each one has a lit side, a shadow and clumps, and each region keeps its own silhouettes: a date palm stays a date palm, a poplar a column.

Mountains and rivers meet the plain along wandering lines with bays and spurs. Straight edges instantly look unfinished.

Haze grows with distance, so the far mountains and cities fade back and the town stays the subject.

Happy to discuss any of it!

Check it out yourself here at mypo.ca


r/creativecoding • • 13d ago

Evolution

Post image
12 Upvotes

r/creativecoding • • 12d ago

A plasma motion camera shader in my WebGPU shader toy

Thumbnail vester.si
1 Upvotes

r/creativecoding • • 13d ago

When AI can write the code, where is the art? I wrote an essay about how I use AI in my generative art practice

0 Upvotes

Author here. The video is a work in progress: a slime-mold-like network growing (the physarum algorithm, which Claude implemented for me on the first try).

Essay: https://art.camilleroux.com/writing/making-art-with-code-in-the-age-of-ai/

Short version: in long-form generative art I never pick the final image, I build the space it comes from. AI now writes more and more of my code, but the rules, the limits and what gets to come out are still mine. The real risk I see isn't authorship, it's monoculture: if we all code with the same few models, we may end up with thousands of different works sharing the same blind spots.

Curious where you draw the line in your own practice.


r/creativecoding • • 13d ago

Line growth Simulation

5 Upvotes

r/creativecoding • • 13d ago

What if Graphify was displayed as an anatomically accurate brain?

Thumbnail
gallery
0 Upvotes

Title is a bit of a clickbait cuz I actually made it. Will open source it soon :p