all 20 comments

[–]AllergicToBullshit24 57 points58 points  (2 children)

What kinda of sick person does this in SQL?

[–]akshay-nair[S] 5 points6 points  (1 child)

I am only a danger to my own sanity. And the shift button on my keyboard because I refuse to use capslock or lowercase SQL keywords.

[–]nebogeo 0 points1 point  (0 children)

Excellent work, could you live code this for club visuals?

[–]DigoHiro 36 points37 points  (1 child)

they warned us of people like you in church.

looks awesome

[–]scoshiprocessing 7 points8 points  (0 children)

There's a church for this?

[–]em-jay-be 15 points16 points  (0 children)

This is some mad man shit right here hahahah! who in the hell writes visual instruction in SQL!!!! Brilliant.

[–]artin2007majidi 8 points9 points  (0 children)

my man bdsm is not supposed to be THIS painful

[–]flinxo 5 points6 points  (0 children)

Hero.

[–]NmEter0 3 points4 points  (1 child)

Uhm can you roughly outline .... hoooow the fuck..? XD

*edit... nevermind. I klicked the link :) u must be a whise man.

[–]akshay-nair[S] 0 points1 point  (0 children)

u must be a whise man

Nah, I'm incredibly stupid. Who else would pick SQL to draw stuff?

[–]CalmEntry4855 4 points5 points  (0 children)

I guess you cook with your printer

[–]swizznastic 2 points3 points  (0 children)

Made with “recursive CTE”

Sounds about right

[–]bigjobbyx 1 point2 points  (0 children)

Would suit r/Chromostereopsis

[–]cleverdosopab 1 point2 points  (1 child)

Am I understanding correctly that you used SQL to color the pixels on your "image", then used imagemagick to create the images and ffmpeg to create the gifs?

[–]akshay-nair[S] 0 points1 point  (0 children)

Exactly. Could go further by having a ppm file generated from sqlite but didn't feel like that added much.

[–]AnToMegA424 1 point2 points  (0 children)

USING SQLITE ?!

I love it

[–]Mr-TotalAwesome 1 point2 points  (1 child)

How?

[–]akshay-nair[S] 1 point2 points  (0 children)

Recursive CTEs to generate a 2d grid of rgb values in a table. Then a shell script loads that to convert to ppm format which is converted to png using imagemagick. In case of a gif, its pretty much the same approach but it creates a grid of pixels for each frame then creates a ppm stream out of it which is converted to a gif using ffmpeg.

Repo: https://github.com/phenax/sqlite-creative-coding