Show newer

@8zu because i wanted audio and i didnt know what to do so i did the one thing i know

i mean SDL makes you implement a fucking *audio callback function* to play audio though so

programmer says to me "but boots, python wasn't built for real-time video and audio generation using ctypes SDL and an aplay subprocess!!"
"Fuck you nerd" i reply and then drive into the sunset, blazing along at 4-16 fps

@blackle you can probably do better, those 1s in the RLE are pretty bad

@squirrel try replacing "libSDL.so" on line 4 with "libSDL-1.2.so.0"

here's a fun edit to do: after line 13, add "f(u)" into the for loop! it's slower, but you can watch it *as it loads in!!*

Show thread

here's the most smallest i could get it!!

ghostbin.com/paste/aupxt

pops a SDL window and loads a test image into it!!

this basically
turns the image from a digit into a boolean list
and then loads in the image data from the *bottom of memory*

Show thread

@squirrel that's what i was planning on doing since it's just a really long binary number but in hexadecimal

@squirrel that would be neat if i had any clue what i was doing!!!!

@bea im trying to do SDL_Surface stuff with really low level python ctypes stuff and native libs

okay so i was trying to blit an image to the screen and it was loading fine until i realized that it was loading in upside down so that's fun

@blackle you dont get to choose which one of those you get

Show older
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!