I saw the post earlier about making maps using Python. I thought that was a really cool concept as I love seeing open art projects like that. Do you know any other projects that allow you to make art with code?

  • macroplastic@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    3 hours ago

    Processing and its descendants, p5.js, p5.py. Nannou for Rust.

    vpype is a really powerful python library/toolkit for generating art for plotters (drawing robots).

    Blender with python scripting is also widely used.

    Some relevant keywords: “procedural art”, “generative art” (generative AI is kinda killing this one), “creative coding”, “algorithmic art”, “plotter art”, “pen plotter”, “live coding” (for music with code)

    The fediverse (mostly mastodon) has a decent presence of artists, usually tagging works with some of the above keywords.

  • IanTwenty@piefed.social
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    4 hours ago

    https://strudel.cc/

    What can you do with Strudel?

    • live code music: make music with code in real time
    • algorithmic composition: compose music using tidal’s unique approach to pattern manipulation
  • hono4kami@piefed.social
    link
    fedilink
    English
    arrow-up
    20
    arrow-down
    1
    ·
    edit-2
    2 hours ago

    Ah, the real generative art, before ‘AI generative “art”’

    You should look into shader art. Basically “drawing” using code that runs purely inside GPU. Which reminds me I recently found an artist that does this with code that fit within Twitter character limit. Sadly I can not remember the name rn.

    Edit: the artist I was thinking of is XorDev

  • spartanatreyu@programming.dev
    link
    fedilink
    arrow-up
    6
    ·
    13 hours ago

    I’m usually programming, but I’ve got a few bits and pieces that can be shared:


    The rest are too experimental, or are released commercial projects.

  • ns1@feddit.uk
    link
    fedilink
    English
    arrow-up
    3
    ·
    12 hours ago

    In case you weren’t aware, there is actually a whole mastodon instance dedicated to this subject! Take a look at https://genart.social/tags/genuary2026 for some recent examples. Many posters include details of what software they are using or links to their code

    • wizardbeard@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      14 hours ago

      I’ve fooled around with Processing a lot, and have used it and later (iirc) a C++ or C# library many years ago to do “programmatic” edits to images and photos I had taken.

      Stuff like:

      • What if I treat the pixels in an image as one long strip and instead of placing them in left to right strips top to bottom, I lay them down in a spiral? Or in vertical strips despite the original image not being square?
      • What if I interleaved a copy of the image upside down every other row of pixels?
      • Let’s just apply random fucking math to the different color values!
      • Let’s select random rectangular sections of the image and paste them over the original at a random location, rinse and repeat 100 times.
      • What if I broke the image down into a grid of equally sized rectangles and shuffled their location?
      • What if I averaged the color of each rectangle and added that to the existing color value of those pixels?
      • etc etc.

      I’d come up with different ways to select portions of the image, different ways to place that back in, and different ways to combine the “pasted” section with original. I tossed together something like 30 different “formulas”, then would do like 10 runs of each one that had random elements, spit out the results into a folder of what ultimately was something like 300 “result” images, and then decide the five or so I liked the best.

      Add in the fact that I really don’t have any clue how color math works so I wasn’t basing my ideas off anything but whimsy, and some occasional pre and post processing with both paint.net plugins and audacity (you can sometimes open images as raw binary, avoid the file header, apply audio effects, and save it as raw binary to still have an image but it often just makes a corrupt file).

      Had a decent “glitch art” hobby going to keep me occupied in my free time.

      I desperately need to find that old code again. I miss tinkering with it.

      Unfortunately, the existing results are tied to a flikr account with connections to my real name, so I’d have to find the code and make more to share.

    • Pechente@feddit.org
      link
      fedilink
      arrow-up
      3
      ·
      16 hours ago

      Yep I used that in university for generative art. It was a lot of fun and actually got me into coding unlike many failed attempts before that.

  • hperrin@lemmy.ca
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    16 hours ago

    I made a sorting algorithm visualizer.

    https://sciactive.github.io/libsortjs/demo/

    It’s not really any different than a lot of other sorting algorithm visualizers. It has some additional features, like different visualizations, but it doesn’t have sound.

    I didn’t do it to make something better though, I did it to make it myself. I wanted to implement all of those sorting algorithms myself, which was very fun.

    I don’t know if you consider that art, but I think it can be beautiful, so maybe.

    (Btw, it will happily crash your browser if you try to sort an enormous list using a really inefficient algorithm, so be careful.)