Xylo: A functional programming language for generative art

⚓ rust    📅 2025-06-05    👤 surdeus    👁️ 2      

surdeus

Hello! I recently released the first version of a programming language I've been developing called Xylo.

With it, you can write small bits of code that can be used to generate images. It's intended for creative coding purposes.

As an example, this code:

root = l 0 FILL : collect rows

rows =
    for i in 0..10
        collect (cols i)

cols i =
    for j in 0..10
        t (i * 40 - 180) (j * 40 - 180) (r (rand * 360) (ss 15 SQUARE))

Can generate this image:

random_squares

Every time you run it, it will generate a different output.

Repo:

1 post - 1 participant

Read full topic

🏷️ rust_feed