python script that opens a SDL window which fades from black to white and then closes (using only NATIVE LIBRARIES)
from ctypes import* from struct import* from time import* S=CDLL('libSDL-1.2.so.0') u=S.SDL_SetVideoMode(640,480,32,0) r=unpack('iPiihP',string_at(u,40)) f=S.SDL_Flip for a in range(0,0xff): memset(r[5],a,r[4]*r[3]) f(u) sleep(0.01)
python script that opens a SDL window which fades from black to white and then closes (using only NATIVE LIBRARIES)
from ctypes import*
from struct import*
from time import*
S=CDLL('libSDL-1.2.so.0')
u=S.SDL_SetVideoMode(640,480,32,0)
r=unpack('iPiihP',string_at(u,40))
f=S.SDL_Flip
for a in range(0,0xff):
memset(r[5],a,r[4]*r[3])
f(u)
sleep(0.01)
S.SDL_Quit()