Orbital Autumn

My code art had turned dark during the pandemic. I enjoy seeing my futuristic space stations floating in the dark.

But it is autumn now – time of soft warm colors. The soft, rounded shapes of my spherical harmonic functions would match autumnal colors perfectly!

This is my starting point: Alien structures on black.

I create the software equivalent of a doodle on a white background, and I am searching for proper colors:

For the first time, I am gradually varying the colors of the contour lines while I walk along the surface. I have picked three colors: My favorite orange and light blue, and black to add contrast.

It has not been black enough though, as I had a bug in my code. The “spherical” in “Spherical functions” means that the “radius” (distance from the origin) varies with two angles. Think of longitude and latitude. I keep one angle constant per contour and vary the other one while I traverse the loop. Mindlessly, I had varied both from 0° to 360°. That’s fine for the loopy contour. But I have been drawing over half of the contours when varying the other angle, missing half of my color palette.

The fixed-per-contour angle defines the plane whose intersection with the funny shape is the contour. You get the same plane for 180° and 360° (disregarding some sense of orientation of the normal vector of the plane that does not matter for me).

I just need to stop at 180° to see my full range of colors.

To test my fix, I resort to showing a single surface only, not nesting several of them. My virtual structure has a clear-cut edge now – which I like to my surprise.

Finally, I see all the colors I wanted!

Autumn, exploding spherically harmonically. Code art by elkement 2024.

However, I like the white background not as much as I like the black. It must be softer, less bold. It should not look like a scientific visualization on the usual default white background. Maybe it should look like yellowed paper, like an antique hand-made scientific visualization.

The function above is again a weirder combination of sine and cosine functions of “longitude” and “latitude”. I wonder, if the new color palette and the new method of coloring would make one of the boring basic functions art-worthy.

I pick a symmetrical function that looks like a pacifier or a ninepin. I like it, but I like lots of them even more … and I love creating collages!

Here finally is an invasion of spherical harmonics. But I drop the alien / science-fiction metaphors and call it: Orbital Autumn

Orbital Autumn, code art by elkement 2024.
Orbital Autumn, code art by elkement 2024.

~

All images have been created with custom JavaScript code using the threejs framework. No AI involved!

I am rotating these structures until I find a viewpoint I am satisfied with.

The multitude of ninepins is a collage created from these code-generated images with GIMP.

~

Contact and Newsletter Subscription

Subscribe via email and receive notifications for new posts:

Check your spam folder – you need to confirm your subscription by clicking a link! You can unsubscribe any time! If you do not receive a confirmation email or if there are other issues, contact me via email!

Or simply follow this blog via RSS:

You can also follow via your favorite fediverse platform:

elkemental Force
elkemental Force
@elkement.art@elkement.art

Art inspired by physics.

515 posts
5 followers

Comments

5 responses to “Orbital Autumn”

  1. Peter Mander Avatar

    Orbital Autumn reminds me of 2p carbon orbitals. Weird and wonderful things they are.

    1. elkement Avatar

      Thanks a lot! I am always happy when a scientist takes note of my creations!

  2. eccentera Avatar

    I don’t really get how these are made (my brain shuts down when confronted with code) so it’s so interesting to see a bit of the process. I get the math part (probably) just trying to visualize the keyboard as your palette and the code your brushstrokes makes my head explode! But that’s the thrill of it – seeing something seemingly “magic”. Orbital Autumn is fantastic!

    1. elkement Avatar

      Thanks!! I am using statements in my code that basically say “Create a point at this position in space, in this color”. So, I am giving my mechanical painting device instructions where to leave a mark, according to the equations that describe my functions!
      I am writing a program with many loops, like “go around at that longitude, make a dot, make a dot”, then “turn around a bit more, next loop”, etc., repeat. The code I use displays the resulting image in a browser. It’s probably not very exciting, but I type the code in a text editor, then click refresh in the browser, finally save the image!
      The actual artistic work (if I can even call it that) is in a long series of small iterative refinements: I place my contours differently, change how the colors vary, or even choose another mathematical functions. I am always oscillating between the text editor with the code and the browser window with the image. It may sound super weird, but to me it still feels a lot like drawing traditionally though… and gradually refining a painting layer by layer!

      1. eccentera Avatar

        Weird, maybe, but good weird! It’s definitely art. You’re creating something visual out of something else (that isn’t a stolen aggregate of previously made art). I’m suddenly remembering a class in LOGO (maybe?) as a kid that was kind of like that. Draw a box with “go 15” “turn” or something. No sin/cos though (way before calculus!!). Anyway it’s fascinating. I don’t need to understand it all to like it but it’s cool to get a glimpse at the process. Thanks for sharing!

Leave a Reply