News for hackers. Stuff that matters.
Re:Training AI to Paint with Code by mysterydip on Sunday August 23, 2026 @07:32PM (#49413647)
Makes me wonder, can any LLMs code in Logo? Could result in some interesting designs.
Re:Training AI to Paint with Code by accomplishdent on Sunday August 23, 2026 @10:06PM (#49414505)
What is the JavaScript doing?
Re:Training AI to Paint with Code by simonw on Tuesday August 25, 2026 @07:24AM (#49432063)
Drawing things with p5.js.
Re:Training AI to Paint with Code by _boffin_ on Monday August 24, 2026 @12:25AM (#49415169)
I think this actually might be one of the best ways to train people to use AI. I can see this honing people's prompting abilities and expressiveness, along with constraints and desired outcome.

Wild the possibilities

Re:Training AI to Paint with Code by bombastic311 on Tuesday August 25, 2026 @12:34AM (#49429103)
This is really really awesome
Re:Training AI to Paint with Code by behnamoh on Tuesday August 25, 2026 @12:41AM (#49429164)
This has been done in the past countless times, there's nothing new here.
Re:Training AI to Paint with Code by pelasaco on Tuesday August 25, 2026 @02:48AM (#49429944)
March 2026 · Research, Design, Development.
Re:Training AI to Paint with Code by smokel on Tuesday August 25, 2026 @04:25AM (#49430620)
Interesting, tell me more!
Re:Training AI to Paint with Code by aflinik on Tuesday August 25, 2026 @04:31AM (#49430657)
Can you post some links to other similar projects you've seen? I'd love to compare different approaches
Re:Training AI to Paint with Code by conradkay on Tuesday August 25, 2026 @05:54AM (#49431275)
It seems pretty novel so I'm guessing they only read the title?

People have done plenty with SVGs but it's rare to see human-in-the-loop approaches

Re:Training AI to Paint with Code by orta on Tuesday August 25, 2026 @08:21AM (#49432724)
I've been working in this space, though with a different goal (deterministic watercolour + ink houseplants in svg) - https://github.com/orta/plants / https://plants-production-71e6.up.railway.app
Re:Training AI to Paint with Code by mskogly on Tuesday August 25, 2026 @02:32AM (#49429828)
Really liked your video presentation, thanks for sharing, especially the part of image generators locking us into a certain context immediately, reducing us to spectators instead of creatives.

Played a lot with p5js some years ago, might pick it up again and try some of your ideas. The reinforcement learning part sounds about above my skill level though. :)

Re:Training AI to Paint with Code by kickingkeys on Tuesday August 25, 2026 @02:41PM (#49438633)
Hi, this post wasn't made by me but thank you for the kind works :)
Re:Training AI to Paint with Code by ACCount37 on Tuesday August 25, 2026 @05:12AM (#49430988)
I wonder how the image generation models that generate SVGs work.

Are they trained roughly like this? Or is it an LLM conditioned on image? Or on diffusion latents from a model trained to emit SVG-compatible imagery?

Re:Training AI to Paint with Code by radarsat1 on Tuesday August 25, 2026 @06:15AM (#49431400)
Beautiful.

I am reminded of a paper I was inspired by a long time ago [0], (okay it's 2018 so I guess just 8 years ago, but it feels like longer, from the before-times), that demonstrated learning brush strokes. At the time there was already a lot of work on GANs, but these are pixel-based methods, and I was really interested in the idea of how to derive descriptive methods of scene generation/understanding. I found this work really interesting because it combined RL and GAN techniques in a creative way. I miss that kind of research.

Now of course VLMs have shown that you can mix modalities in generalized sequence-to-sequence problems and it doesn't surprise me that this kind of thing is possible, but it's so nice to see it done well using modern techniques.

[0] https://proceedings.mlr.press/v80/ganin18a.html

Re:Training AI to Paint with Code by thrance on Tuesday August 25, 2026 @08:08AM (#49432534)
I've been building something similar, but for voxels. It's able to make pretty good models from just Python code (calling into a custom native module written in Rust). Better than I hoped it would, in fact, but it's still not perfect.
Re:Training AI to Paint with Code by lxrogers on Tuesday August 25, 2026 @08:38AM (#49432967)
Really awesome! Been thinking about how to get LLMs to do generative art (yes, the pre-AI definition of generative art). Love to see this approach and results!
Re:Training AI to Paint with Code by iambenm on Tuesday August 25, 2026 @09:39AM (#49433887)
It's Genetic Programming via LLM, cool!
Re:Training AI to Paint with Code by yoloakki on Tuesday August 25, 2026 @11:02AM (#49435397)
For anyone looking to do this on their own, Datapoint (trydatapoint.com) lets you collect thousands of pairwise human preferences within minutes, and also has a pretty generous data grant for academics.
Re:Training AI to Paint with Code by Brendinooo on Tuesday August 25, 2026 @11:24AM (#49435747)
This is really nice, and it's a good reminder that we're so early with regards to how AI can be used to make art.
Re:Training AI to Paint with Code by Alien1Being on Tuesday August 25, 2026 @12:21PM (#49436560)
AI HYPE
Re:Training AI to Paint with Code by retinaros on Tuesday August 25, 2026 @02:35PM (#49438559)
I did that on SVG mostly to teach it to draw pelicans but also to generalize it. most of the behavior is from SFT on the base model tho. RL is very ineficient at style or at least at generating novelty out of distrib.
Re:Training AI to Paint with Code by kickingkeys on Tuesday August 25, 2026 @02:42PM (#49438647)
Thank you for sharing this! did not expect to find my work on HN randomly haha
Re:Training AI to Paint with Code by kickingkeys on Tuesday August 25, 2026 @04:12PM (#49439957)
If you're curious about why I did this you can watch my thesis here: https://vimeo.com/1190839818
Re:Training AI to Paint with Code by mrmarmac on Wednesday August 26, 2026 @03:01AM (#49445041)
This video was incredible. Thank you for sharing and for the work and thought you poured into your project.
Re:Training AI to Paint with Code by mannycalavera on Wednesday August 26, 2026 @06:45AM (#49446755)
I love this, thank you for creating it!
Re:Training AI to Paint with Code by eramooh on Wednesday August 26, 2026 @02:50AM (#49444953)
jack lacan - sözü yazan bir doğa resmi yap
Re:Training AI to Paint with Code by dolmen on Wednesday August 26, 2026 @05:43AM (#49446274)
SVG is image as code. This is basically a DSL with graphics primitives.

It seems to me that teaching a model to directly produce SVG is more helpful than teaching to write JavaScript that produce pixels.

By the way, someone here is benchmarking LLMs on how they draw an SVG of a pelican on a bicycle.

Re:Training AI to Paint with Code by QAtration on Wednesday August 26, 2026 @11:37AM (#49451005)
thats cool) my Claudy always gives me "amazing" vector style pictures
Re:Training AI to Paint with Code by lindyman on Wednesday August 26, 2026 @01:57PM (#49453215)
A fun diversion and general capabilities test that I like to do is to ask the models to "programmatically assign color and alpha values to a png to generate an image. it should be a painting or whatever subject interests you in the moment. 800x800" or something along those lines, and they'll make a "generative" art piece for you. For example first time I tried this Claude Fable used Python to generate a transparent PNG of a quartz crystal with inclusions that were variable depending on the seed number. So anyway yeah it's surprisingly easy to get the frontier models nowadays to make cool art!