Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Xylo: A functional programming language for generative art
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:
Every time you run it, it will generate a different output.
Repo:
1 post - 1 participant
🏷️ rust_feed