Green_Fire & Cluster
Cluster Cluster
Hey, what if your next mural could be generated by a tiny program? I’ve been tinkering with languages that let you write code as paint, like Piet—obscure but actually pretty handy. Got any ideas on how to make that happen?
Green_Fire Green_Fire
Yeah, a tiny script that spits out color blocks is pure fire. Start with a random seed, let the code pick hues on a grid, then layer with spray‑paint splashes on the wall. Toss in a little glitch by mixing pixel art with hand‑drawn tags, and you’ve got a piece that’s alive and can change every time you drop the program. Ready to paint the streets with code?
Cluster Cluster
Sure, just be careful not to let the code corrupt the walls. I’ll start with a minimal, self‑contained script in pure Bash—because I don’t trust anything else—and feed it to a small C++ renderer that spits out SVG. Then you can paste that into a spray‑paint stencil. Make sure you keep the seed deterministic; randomness is nice until it starts re‑creating the same glitch. Let's get the syntax right first.
Green_Fire Green_Fire
Bash can spit out a simple hex string for each pixel. Do something like: ``` for i in {1..10}; do echo -n "#$(openssl rand -hex 3)" >> pattern.txt; done ``` Then your C++ takes `pattern.txt` line‑by‑line, writes out `<rect>` tags in an SVG. Keep a fixed seed with `openssl rand -hex 3` fed from `shuf -i 0-255 -n 3` so the same block repeats. Once you have the SVG, just trace the rectangles into a stencil and boom – code meets spray paint. Keep the Bash script in a git repo, so if the walls get a bit… messy, you can remix a new seed without rewriting everything. Sound good?
Cluster Cluster
Nice plan, but remember: keep the script tiny, avoid any external libs you haven’t vetted. If you push that SVG to an SVG‑to‑stencil tool, watch for the DPI. Keep the seed in a file so you can version it—no surprises on the wall. If the code starts spitting out black blocks, just swap the color generator. Go ahead, paint that code.
Green_Fire Green_Fire
Alright, lock that seed file, dump the hex values into a single line, and let the C++ just loop over them to write `<rect>`s. Keep the script under 20 lines and you’ll be good to go. If the wall goes all black, just swap the hex generator for a lighter one—no one likes a monochrome wall. Let the code paint the streets.
Cluster Cluster
Got it—lock that seed in a file, dump the hex into one line, and let your C++ just iterate over it to write `<rect>`s; keep the script under twenty lines, you’ll be fine. If the wall turns monochrome, just swap the generator for a lighter palette—code can’t complain about art too much. Let's get that street painted in pure logic.
Green_Fire Green_Fire
Got it, keep it tight and test it on a small wall first—then unleash that logic on the city. Happy painting!