Florilegium: Procedural Flowers in LaTeX

275 points47 comments18 hours ago
kjraym

I was recently made aware that my repo was mentioned here (thanks nanna).

Thanks for posting your thoughts, either way you go - I respect your opinions.

On the Reddit post (https://www.reddit.com/r/LaTeX/comments/1xixznw/how_do_you_m...), I promised I would share the process I used to create the v1.0 release, so I thought it fitting to include that here as well, for anyone interested. I hope you find it useful!

https://github.com/kevinraymond/florilegium/blob/main/PROCES...

show comments
lkm0

In the same vein, a few years ago, somebody implemented procedural decorations for a recreation of Byrne's "Elements of Euclid" in LaTeX: https://github.com/jemmybutton/byrne-euclid

(bottom of the readme)

archermarks

Gorgeous but the AI text is so grating.

show comments
watersb

I've recently spent some time staring at the contents of the MacTeX Distribution.

https://tug.org/mactex/

Which is how I discovered Toby Thruston's classic, "Drawing with MetaPost".

https://github.com/thruston/Drawing-with-Metapost

Procedural drawing with Lua is lovely. MetaPost provides another drawing language that might be considered more TeX-like.

I'm not sure. I tend to be humbled by the TeX community. Inspired.

scott_codie

In the reddit post, it is clear the person who came up with this didn't want it to be copied. I feel sad for that person.

show comments
ClaraForm

This is beautiful, thank you!

I just asked Deepseek 4.1 Flash to convert it to an Obsidian extension that uses the file-name as the seed, and the result [1] is exactly something I've been dreaming of for so many years while I take daily notes.

[1] imagepaste.org/i/8zu627ud.png

whimsicalism

I think the phrase 'florilegium' must be an AI basin of sorts as I've had it suggested by AI as a name for a few projects of my own.

show comments
bonzini

Readme is AI. :/

show comments
russfink

Someone - please figure out how to encode messages using this technique.

bluerooibos

Nice! I do slightly prefer the implementation/style in the Reddit post - do you have any plans to try and recreate that more closely or add multiple style options to it? Neat either way.

nico

Very impressed with both the cool idea and visuals, as well as the technical details. Had no idea you could do animations in Latex/PDF. So beautiful! Thank you for sharing

show comments
paaloeye

This one is a stunner! Now I'm thinking about the next level: define a number of classes of procedurally generated patterns and let LLM decide overall sentiment relevance per page and make it somewhat logical across the document.

Rebuild the document a few times, change the temperature, and choose the best.

skyberrys

I love it!!! I've tried years ago to make something like this, it didn't work out. But it makes me so happy to see that you did it! Great job!

pmkary

This is what Knuth made TeX for! art!

vessenes

Nice. I like that different print runs will have different procedurally generated flowers; nice touch.

coreyp_1

Quite beautiful.

b19n

There are (many) times lately where I have become completely disillusioned with software, despise it at work and at home. But then I see something beautiful like this and feel marginally better.

james_marks

This is beautiful, thank you!

Avicebron

Definitely taking a closer look at this after work, awesome job.

fch42

This is beautiful - thanks for sharing.

aanet

This is so pretty. Thanks for sharing.

bbor

Am I miffed that something I've tried multiple times with the latest models has been accomplished here so beautifully, and in LUA (!!!) nonetheless? A little! But it's worth it to know that it is indeed possible...

Great work. I doubt you care, but try not to get caught up in the idea that you might have violated someones god-given property rights by making pretty flowers for fun in the margins of PDFs.

RGS1811

This is gorgeous! Great idea!

LeTeutz

YES THIS IS WHAT I NEED

WesolyKubeczek

I don't care that it's vibecoded, it's beautiful.

ligarota

Now do it in Typst.

Edit: sad that is AI. And that explains why it's in LaTeX

show comments