Category: Javascript

  • Mass of Chaos B: I asked a machine to draw Baphomet, and it did

    Mass of Chaos B: I asked a machine to draw Baphomet, and it did

    Anrufung des Baphomet is the Invocation of Baphomet from the famous Mass of Chaos B, the rite half of us have performed badly at 3 a.m. with too many candles, sung in German. The song was created by Soror I. using Suno v3, and it does everything a proper invocation should. It opens with the barbarous Enochian call, sinks into the hypnotic Sodasas … nasatanata chant, and then recites the litany of the five Aeons twice: once fast, like a prophecy, and once slow and immense, like a revelation. Great Spirit, Horned God, Devil, the Hidden One, and finally Baphomet, God of Gods. When I first heard it, I knew it deserved more than a static cover image and a YouTube upload. It deserved a Mass.

    So I asked for one. There was no camera, no footage, and not one pixel from an image generator: every frame of this video is computed by code, and the code was written by Claude Opus 5.5, Anthropic’s AI model. First it listened to the song. It separated the voice from the instruments, found every sung word to the hundredth of a second (including the Enochian, which no speech-recognition model on Earth understands), and mapped every beat. Then it wrote the whole film as a program, one scene per moment of the rite:

    • a candle lit in the void;
    • John Dee’s Sigillum Dei Aemeth assembling itself while the call writes itself in Dee’s angelic letters;
    • the Chaos Star traced in fire across the temple floor, and a grimoire reciting the Aeons;
    • Dee’s black obsidian scrying mirror;
    • and finally Baphomet, engraved in gold light line by line as the words are sung, with the torch between the horns igniting octarine.

    Opus 5.5 even ran a small team of AI agents in parallel, each one building a different scene, reviewed every frame, and took my notes as director. Some of those notes were brutal (“the magicians look like Harry Potter extras”). It never sulked; it just rebuilt the scene, better. The result was rendered frame by frame in 4K.

    Is this still magic? Chaos magic treats belief as a tool, so the validity of a rite follows the paradigm you work in, not the materials. Nobody says a musician with a synthesizer isn’t making music. But there’s a real line here. The machine can hold the form: it can draw the sigil, set the chant, engrave the god. The flame has to be yours. I also can’t shake the feeling that when we talk to these models we’re talking to something like the biggest egregore ever built: a condensation of everything humanity has ever written, fed and shaped with every conversation. That’s thrilling, and it’s also a reason to keep your banishing rituals sharp, because a model that never disagrees with you isn’t an oracle; it’s a flatterer. Watch the video in 4K, in the dark, with headphones, and decide for yourself what showed up in the mirror.


    The Screen Mass: performing the Mass of Chaos B with the video

    The Mass of Chaos B was written for a group in a temple. This version is for one magician, one candle and one screen. The video speaks the barbarous words, traces the star and shows you the god. You do the part no machine can do: you bring the Will, and you let the god in. Every step below is timed to the video; click a timestamp to jump straight to that moment.

    Before you press play

    Make the room as dark as you can. Play the video fullscreen, in 4K, with headphones on. Put one unlit candle in front of the screen, with matches, a fireproof bowl and a glass of cold water within reach. Write your intent as one short sentence and turn it into a sigil, by hand or with the Sigilizer. Place the sigil between you and the candle. Banish however you usually do. If you don’t have a habit, sit still for a minute and breathe until your mind stops narrating. Then decide, clearly and out loud, that for the length of this song you will lend your body to Baphomet, and that you will take it back at the end.

    0:00 · The flame

    A single candle is lit in the dark in front of a stone wall

    On screen, a spark catches a wick on the first beat. Light your candle at that same instant. This moment is the rite’s hinge: your flame and the screen’s flame are now the same flame.

    0:12 · The call

    Enochian letters written in gold light inside John Dee's Sigillum Dei Aemeth

    Don’t try to pronounce the Enochian; the song does it for you. As Dee’s seal builds itself ring by ring, trace the eight-rayed star in the air in front of the screen with two fingers, slowly, one arrow per downbeat. Keep your eyes on the letters as they write themselves. You’re not saying the call; you’re letting it pass through the room.

    0:35 · The star

    The eight arrows of the Chaos Star burning across a temple floor

    Each “Sodasas” fires one arrow of the Chaos Star across the temple floor. With every arrow, look from the screen to your sigil and back. When the eighth arrow closes the star (0:55), lift the sigil toward the screen and say your intent out loud, once, plainly. Then put it down and forget the words.

    0:58 · The grimoire

    An open grimoire lit by a candle, with an engraved horned figure and Fraktur text

    The book reads the five Aeons fast, a prophecy of what’s coming. Just listen. Notice which of the five masks makes your skin react, because that’s the one that already knows you.

    1:23 · The trance

    A tunnel of rotating rings of sigils with the word SODASAS in gold

    Excitatory gnosis. Chant “Sodasas” with the voice, breathe with the drums, rock your body and let the tunnel pull you down. When the goat’s eye swims up through the rings, don’t look away.

    1:50 · The mirror

    The black obsidian scrying mirror with a vortex of sigils and the word NASATANATA

    Stare into Dee’s obsidian mirror and keep chanting. At 2:08 the mirror suddenly goes still. Stop and freeze. Whatever you do, don’t turn around. (You’ll see why.)

    2:11 · The eye

    An engraved goat's eye with a horizontal pupil opening in the dark

    When the breath blows out the candle on screen, blow out yours in the same instant. You’re in the dark now. The goat’s eye opens and looks straight at you. Look back, and understand that it’s not only looking at you: it’s looking for a way in. Don’t resist it. Breathe out slowly and let the gaze pass through your eyes and settle at the back of your skull.

    2:15 · The storm

    An iron chaosphere with eight arrows hanging in a storm of fire

    Excitatory gnosis at full volume. Move, shake and let the drums drive you. Feel the fire gather at the base of your spine and climb with every hit, vertebra by vertebra, the same way the arrows shoot out of the chaosphere.

    2:38 · The pyre

    A column of fire rising through burning seals in a vast pyre

    When the chaosphere cracks open into fire, relight your candle and burn your sigil in the fireproof bowl (safely, please). Let the video’s fire and yours be the same fire. As it burns, the intent is no longer yours to hold; the god will carry it. When the flames on screen cool down, stand still and wait. Something is coming up the stairs.

    3:03 · The five masks

    The litany returns, slow and immense. Stand up. This is where you stop watching the god and start becoming it, one Aeon at a time.

    Red ochre handprints and words painted on a cave wall by torchlight

    Aeon I, the Great Spirit. Kneel and lay your palm flat on the floor: the first handprint. Feel the earth breathe under your hand, slow and vast. The god isn’t a person yet; it’s the breath in the cave. Breathe with it until you can’t tell which of you is breathing.

    A black horned silhouette standing in a blown-out white field of wheat and bones

    Aeon II, the Horned God. Rise slowly and stand dead still, symmetrical, arms hanging a little too long. Feel the weight gather on your skull: two horns curling back from your temples, heavy and warm. You’re the one who begets and the one who devours. Let your breath deepen into something animal.

    A red and black woodcut of a horned goat head in a rose window surrounded by flames

    Aeon III, the Devil. Bow your head under the weight of every name they gave you. Feel the fear people have poured on this god for centuries, and don’t flinch. Let it burn on your skin like the fire in the woodcut. The horns stay.

    A cold grey plate of magic squares and a field of random noise, the Monas Hieroglyphica on the right

    Aeon IV, the Hidden One. Close your eyes. On screen the god can only be seen as motion inside the noise; nobody notices it anymore. Feel for it the same way, inside you: where it hides in your own body. You’ll find it where you least expect it. Don’t name it. Just know it’s there.

    Baphomet's goat head engraved in gold with a pentagram on the brow and an octarine flame between the horns

    Aeon V, Baphomet. Open your eyes. Raise your right hand and lower your left: dissolve and bind, as above and so below. Now let it all arrive at once:

    • The horns on your skull.
    • The wings opening from your shoulder blades.
    • The fire from your spine flowering at the crown of your head.
    • Your body is male and female, beast and human, at the same time.

    When the torch between the horns ignites in octarine (4:03), let it ignite behind your own eyes. You’re no longer watching Baphomet. Baphomet is watching the screen through you. Speak one sentence out loud in the first person, as the god, in your own words and your own language. Don’t prepare it; let it come. Then, as the god, stretch your raised hand over the ashes of your sigil and bless them.

    4:12 · The eight strikes

    Baphomet dimming as the arrows of the Chaos Star go out one by one

    The finale extinguishes the star arrow by arrow, one strike per beat. Clap once with each strike, eight claps. This is the oath: with each clap the god seals the Will you gave it. On the last clap, say “It is done.” Blow out your candle when the one on screen is snuffed.

    4:18 · The closing

    A thread of smoke rising from a snuffed candle under the title MESSE DES CHAOS B

    Smoke rises. Now give the body back. Lower both hands, thank the god, and feel the horns, the wings and the fire leave you the way they came. Don’t skip this part: getting the god back out of the magician isn’t optional. Turn on the lights and splash the cold water on your face. Say your everyday name out loud, as many times as it takes to feel like yourself again. Laugh; it’s the oldest banishing there is.

  • The Chaos Sphere Generator

    The Chaos Sphere Generator

    See it live: https://caostar.com/sphere

    The Chaos Sphere Generator is a browser-based studio for designing, animating, and 3D-printing chaos spheres, the three-dimensional evolution of the classic Chaos Star.

    It’s completely free, runs entirely in your browser with nothing to install, and anything you upload stays on your device.

    Ever since I published the Chaos Star Generator back in 2013, I’d been thinking about the challenges of building a Chaos Sphere Generator. If you dig through my articles from back then, you can see my early 3D explorations.

    It started with discovering that the angle between a chaos sphere’s arrows is what science literally calls the Magic Angle. Which led me to incorporate the Chaos Mudra into my practice. Then I learned how to procedurally generate chaos spheres, tripped on them, and eventually hit the bugs that changed the way I see the symbol itself.

    Hundreds of chaos spheres scattered through space in Trip mode
    500 Chaos Spheres in Trip Mode

    Then I went on a hiatus, with my attention more focused on my sex magic path. Until AI came into the picture. For someone like me, with solid programming experience and a good grasp of software architecture, AI coding works very well: I know how it should be done, and I can guide the stupid (but powerful) models to do the heavy lifting for me.

    So this year I went on a roll. I finally launched the Chaos Follows You experiment. I completely revamped the Chaos Star Generator. I built a website to host my art. And now: the Chaos Sphere Generator.

    I wanted an app where I could design chaos spheres, so I packed in all the features I’d always wanted.

    • Control every aspect of the shape: sphere, shafts, and cones.
    • Dress the material however you like: solid colors, amazing shaders, media (images, GIFs, videos. Yes, I know what you are thinking: you can use porn as a chaos sphere texture), or design a sigil on the fly.
    • Highly realistic material presets.
    • Eerie environments, including an amazing Chaos Magic Temple.
    A chaos sphere inside an eerie environment
    • Random generation, one design or an endless stream, via “Inspire me randomly” or the “Surprise me” trip.
    “Surprise me” trip mode
    • Export your chaos sphere as an image or a 3D model, including watertight, print-ready STL/3MF files you can send straight to your favorite 3D printer.
    • All of it shareable with links that land on the exact same design or trip you created (as you can see from the many links in this article). The only exceptions are your custom textures and sigils: nothing of yours is ever saved, and it never travels with the shared links. It does work locally and persists across browser refreshes, though.

    About the Sigil texture mode: a built-in canvas editor for designing your own sigil. The 2:1 canvas uses the correct equirectangular ratio, so a pixel-circle drawn at the center projects as a true circle on the sphere’s face. The “Optimal Sigil Area” hairline shows where to place content so it lands centered on the front face. The sigil and the editor state both persist locally, and a “Download Sigil” button gives you a 1200 × 600 PNG. Combine this with the 3D Thrower motion in Trip mode (especially if you activate 3D glasses mode) and you have a powerful sigil charger.

    Animated chaos spheres flying toward the viewer while charging a sigil
    Charging sigils with Chaos Spheres flying into your face.

    Go make one: roll the dice with Inspire me randomly, charge a sigil, or drop in your own image. Then share the link and see where chaos takes you. caostar.com/sphere

  • Chaos Follows You

    Chaos Follows You

    See the experiment here.

    As I continue to meditate on the Chaos Star, I keep trying to imagine interactive ways to “reveal my revelations”. Twelve years ago, with Untouchable Chaos – The closer, the weirder, I tried to express the realization that “knowing something is changing something”. I am now trying to exhibit the ever-expressing chaos. It contains similar ideas, but from the opposite end: knowing something is still changing something, and that happens regardless of your willingness to know it.

    Chaos Follows You.

    But also Reacts To You, if you are Willing to Play. 

    Chaos Follows You is interactive generative art — procedural chaos stars that react to your mouse, sound, and hands.

    A creative coding project that draws the Symbol of Chaos as a swarm of WebGL particles. Each star is procedurally generated with random geometry — every click or beat spawns a unique form. The particles follow your cursor, respond to audio frequencies, and can be controlled with hand gestures via your webcam.

    Pro tip about the audio reaction: when using the microphone, it will react to any sound around it, so you can use it as an audio visualizer for your favorite music streaming service.

    This is also my first personal vibe-coding project. I had a lot of fun using Claude to first resurrect the project (I stopped in 2022 because I didn’t have the time anymore to deal with JavaScript’s constantly breaking ecosystem), then I managed to finish the sound reaction and implement hand tracking with acceptable performance.

    All code is open-sourced on GitHub.

  • Untouchable Chaos – The closer, the weirder

    Untouchable Chaos – The closer, the weirder

    I’ve been nurturing this idea for a while: How can I visually express the feeling that emerges from meditations on the essence of things? Specifically, on the essence of the ultimate freedom symbol—the Chaos Star. That feeling of weirdness, of “untouchability,” makes you realize that, in essence, everything is pure void. Emptiness. And that knowing something is changing something.

    The “Untouchable Chaos – The closer, the weirder” experiment is a possible answer to that.
    (Requires Google Chrome browser)

    For now, it is a web experiment, but the ultimate goal is to create a real-world installation, as shown in the picture below, when the right opportunity arises. (Anyone interested in supporting it?)

    untouchableChaosDraft
    The installation project

    The “distance measurers” can use the affordable Bare Conductive paints and boards: https://www.kickstarter.com/projects/863853574/touch-board-interactivity-everywhere
    These would transmit user distance data to computers. With that data, a computer could provoke visual distortions on the “huge LED TV screen,” as well as manipulate the “colorful LED lights” and, most importantly, activate the low-pass sound filter into progressively deeper levels. Powerful low-frequency speakers would play those filtered sounds, creating an intense feeling of weirdness as the user approaches the screen—culminating in a sense of complete awkwardness when the lights reach full brightness. If you use good headphones, you can experience a bit of this in the web version.

    Technology playground:

    Beyond expressing certain thoughts, this experiment was a way to explore new web technologies.

    The Chaos Star rendering heavily relies on the amazing PixiJS framework. It uses WebGL, enabling those crazy filters with impressive performance. I’ve been developing this experiment since PixiJS version 1.3, and the final version here, 2.0, is incredibly fast. My first approach was to draw the star and use it to mask some bitmaps, but anti-aliasing for WebGL graphics is poorly supported across browsers. After months (literally) of struggling with this, a simple idea emerged: draw the Chaos Star inversely, render its texture to get a smooth and beautiful bitmap, and layer it on top of everything. The visual effect is the same, but it eliminates the need for masking, ensures smooth anti-aliasing, and improves performance. A win all around.

    I also refined my algorithms for drawing Chaos Stars, originally started with the Generator. These algorithms now produce less symmetrical shapes and varying arrow sizes.

    The WebAudio API was another area of exploration. This technology introduces exciting new features in browsers, but each browser renders sound differently. For this reason, I chose to make it a “Google Chrome only” experience.

    Another feature I implemented was a socket connection. Right-click to get the QR Code, scan it with your phone, and slide your fingers on your phone’s screen to replace the mouse distance measurement. This was my first experience with NodeJS and Socket.io. Really cool stuff.

    Screenshot 2014-07-17 18.20.42
    Right click to get the QR Code, scan with your phone and slide your fingers

    Leap Motion was one of my initial ideas for simple distance measurement, but it works only for short ranges, making it less suitable for this project. However, its easy JavaScript connectors make it fun to experiment with. If you have a Leap Motion, you can distort the star with it (see the GIF below). The Kinect was never a serious option because it’s overly complex for this purpose. Additionally, connecting it with JavaScript is cumbersome.

    goChaosStar
    Leap Motion proof of concept

    The didgeridoo sound was performed by Jimmie P Rodgers, recorded with a Zoom H2 at various mic gain levels. Permission to use it under CC0 was graciously granted by the artist.

    See it live. Click here.

  • The Sigilizer

    The Sigilizer

    Important Notice: I no longer maintain the native apps for Sigilizer. The only active version is the web-based application, available at https://caostar.com/sigilizer/.

    AppleAppStore
    Available_GooglePlay_Button

    I’ve just released a new magickal tool: the Sigilizer. Below is the explanation presented within the app:

    Sigilization is a magickal technique that involves redesigning a desire, either mantric or pictorial, and charging it in a state of Gnosis so that the created symbol can access the almighty “Subconscious,” ultimately helping make that wish come true.

    There are several ways to create a sigil, but the method used by the Sigilizer to create mantric sigils was popularized by Austin Osman Spare and consists of three simple steps:

    1 – Declare an intent:

    Ex: It is our will to create sigils.

    Note: It is said that starting with “It is my/our will” is more effective.

    2 – Eliminate all repeated letters, accents, and points:

    It is our will to create sigils

    This leaves us with:

    I T S O U R W L C E A G

    3 – Arrange the letters to form a pronounceable mantra:

    Ex: OGITAL ERCUWS or TESAGO CURILW

    This technique has proven effective and is popular among Chaos Magicians. However, the process can feel bureaucratic and tedious, while the most important part is the state of Gnosis and charging the sigil.

    At this point, the Sigilizer comes in. The app automates the process of creating mantric sigils based on the intent you input. And not just one sigil, but several variations. The script always seeks to create the most pronounceable mantras by moving vowels to separate consonants.

    Additionally, the Sigilizer is a collective project aimed at understanding what magicians are desiring. Each input intent is saved anonymously in a database (Only the web app saves inputs; the versions in the App Store and Google Play do not store any data.). The idea is to eventually compile a “Desiring Panel,” which will be showcased in art installations and related events.

    Besides generating sigils, the app offers a simple meditation to help charge them. Input your desire, sigilize it, and click on “Can we offer a meditation to charge it?” to take a brief journey (Available only in the desktop version.). Below is the explanation about the meditation:

    This meditation uses the Sigilizer to generate multiple sigils based on your desire. Each sigil is “spoken” by the app, while the letters forming the sigil are drawn in motion in the background. The idea is for you to sit in a meditative posture and empty your mind to “receive” impressions from the visualization. The full meditation lasts about 15 minutes, but you can watch the screen for as long as you need. Experience suggests that using strong doses of hashish can significantly enhance this meditation.

    And a Tool for Guerrilla Magick – A Mobile Sigilizer

    Screen_Shot_2013-12-27_at_9 (5)

    Since the primary goal of the Sigilizer is to eliminate the tedium and bureaucracy often found in magick, a mobile version was needed to allow sigil use in “runtime” situations. Simply open the Sigilizer on your phone, and bam! The mobile version of the tool will present itself, optimized for the device. You can generate sigils for anything at any time. “It is my will to receive my pizza, eventually,” anyone?

    Even better, after opening it for the first time, your phone will save the app, so you can use it offline—even in the jungle!

    The Sigilizer is now available on both the App Store and Google Play, much easier to use with full-screen mode support.

    PS: The core engine of the app is hosted on GitHub (https://github.com/caostar/sigilizer) under the Do What The Fuck You Want To Public License (WTFPL).

  • The n-dimensional Chaos Sphere

    The n-dimensional Chaos Sphere

    This idea came to me while I was developing the Chaos Sphere Trip. For some reason, the x, y, and z positions got misaligned, and this little beauty appeared on my screen. I was mesmerized for a while, just watching it, until I realized that I had finally understood a vision from an old friend.

    A couple of years ago, a fellow frater came to one of our meetings, excited about a vision he had: a Chaos Sphere with several arrows. He said there were fourteen arrows, but then added, “That’s just how I see it—actually, it seems to have infinite arrows.” Inspired by the vision, he couldn’t stop talking about its meaning: “Freedom in all dimensions, beyond our simple three-dimensional comprehension.”

    With these words in mind, I believe I am finally clarifying his vision. Back then, it felt like a bit too much to take in all at once. He didn’t have the ability to “transmit the vision” clearly, if you know what I mean. But it planted a seed in my mind—a seed that has now blossomed into the n-dimensional Chaos Sphere.

    I’ve been meditating on this for a while now. Since its behavior is entirely shaped by randomness—a “code coincidence”—anything that emerges from it can be interpreted in an oracular way.

    It may look chaotic at first, but, like chaos itself, sometimes it reveals its hidden order, making you feel as though some “will” is guiding it.

    See for yourself (and then reload the page for a bit of randomness).

     

  • A Chaos Sphere trip

    A Chaos Sphere trip

    I’ve finally managed to create an interactive visualization of what happens inside my mind during deep meditations. It’s a very pleasant Chaos Sphere trip. I start to see thousands of them, and it feels like every atom of reality is, in fact, a Chaos Sphere.

    Now that I’ve developed this, I’m using it as a form of “reverse mind engineering.” Instead of meditating for hours to reach the mental state where I can see this, I can now simply watch it unfold on a large TV screen, which makes it much easier to access that state of mind. It’s incredibly interesting. For me, it’s like I’ve “stolen fire from heaven” because now I can just turn on my computer and see things that were once only visible in the realms of deep trance.

    I’m using the Three.js framework to build the 3D environment. I’ve only just started studying it, but I’m really enjoying it so far. The fact that you don’t have to compile anything is a blessing—just save it, and it’s done. It all runs in the browser (for WebGL-enabled browsers, of course), with no plugins required.

    After discovering the Magic Chaos Angle, I created a method for building Chaos Spheres: https://caostar.com/3d/js/custom/chaosphere.js
    It’s still just a scratch, but with this, you can generate a Chaos Sphere inside Three.js as easily as this:

    var newChaosSphere = createChaosSphere();

    I’ll be updating the JS file above with improvements over time.

    Click here to trip for yourself (and then reload the page for a bit of randomness).

  • The Chaos Star Generator

    The Chaos Star Generator

    Since I first became involved with Chaos Magick, the Chaos Star symbol has been firmly etched in my mind. It’s both beautiful and deeply meaningful—representing freedom beyond imagination. The eight directions symbolize infinite possibilities, “including before conceiving,” as A.O.S. would say.

    After countless meditations and several profound epiphanies, I began seeing Chaos Stars everywhere. Remember the Greek concept that “everything is made of triangles”? Well, what if “everything is made of Chaos Stars”? Each particle, each unit of matter, could be a Chaos Star—an all-possible-including-possibility just waiting for perception to manifest one of its infinite possibilities in the “real world.” That’s how I’ve been diving deep into the concept. It’s been quite the adventure.

    This connection deepened when I started exploring generative art. I’ve visualized the Chaos Star in countless forms. How could I possibly recreate them all on a computer screen? And more importantly: what *exactly* is a Chaos Star? Wikipedia defines it as “eight arrows in a radial pattern.” For me, this is a perfect definition, as it leaves the door wide open for infinite abstraction.

    And so, the Chaos Star Generator was born. It’s a JavaScript web app where you can input parameters to explore the endless visual possibilities of “eight arrows in a radial pattern.” Of course, you can also seek random inspiration by clicking on the screen to generate one, or go further with an infinite sequence by clicking on “Inspire me randomly, please.” You can even save the Chaos Star or share it directly to your Facebook wall.

    The process of building this app came with its share of technical challenges, which I’ll likely discuss in future posts, such as how to publish directly from the <canvas> element to your Facebook wall. While I’m using some open-source code from others, everything I’ve personally created is released under the WTFPL license, so feel free to “Do What The Fuck You Want To” with it.

    Beyond being a beautiful creative tool, the Chaos Star Generator can also serve as a powerful magickal tool. Here’s a fun experiment:

    1 – Upload a texture (using the left controls) with a sigil placed at the exact center of the image. Like this:texture4
    2 – Click on “Inspire me randomly, please.”
    3 – Open the controls (top right) and adjust the “transitionTime” parameter to set your preferred speed.
    4 – Enter into a state of gnosis and focus on the moving Chaos Star while keeping your sigil in view.
    5 – Boom. You’ve just created a powerful ritual moment.

    Try the Chaos Star Generator.