Archive for September 2002

PopBg

This Perl script creates a background out of images that it finds on the internet through searching for random words out of the dictionary at images.google.com . It uses PerlMagick for the image functions and currently uses xloadimg to display it on the background.

Download
Edit the first few lines
Place in crontab
Enjoy

randomimage.pl

[Digg] [Reddit] [DZone]

SDL Lights Out

5×5 Grid of randomly lit and unlit boxes, clicking a box flips the boxes in a cross shape
around the box clicked
Uses SDL_Image and SDL_TTF
Press ~ to get to Console

lights.tgz

[Digg] [Reddit] [DZone]

SDL Bouncing Ball

A Simple SDL Demo that uses Hardware Acceleration and Double Buffering to draw
three Sphere images on the screen and bounce them around a bit.

It uses SDL_Image for loading the PNG file.

Copy and paste the source code to a file and compile it like this:

gcc -Wall -ansi -pedantic `sdl-config –cflags` -c bounce.c
gcc -Wall main.o -o main -lSDL_image -L/usr/X11R6/lib -L/usr/lib -lSDL -lpthread

Bounce.c

[Digg] [Reddit] [DZone]