Well there are two ways. The first one uses an XPM file, (if you have the xscreensaver source it is in <source dir>/hacks/images) called matrix3.xpm. You can edit this with the Gimp or someother editor to change all the colors to whatever you like. (don't forget to recompile)
however if you typically run the screensaver without textures (ie wireframe) you'll have to get a little more technical:
in the function 'draw_glyph' of glmatrix.c there is a declaration around line num 376:
GLfloat r,g,b,a = 1;
then an 'if' statement that decides what values to set these to. I'm at work at the moment so I'm afraid I can't provide a patch, but altering these lines of code and remaking glmatrix should be able to set the color to just about anything you want. Below is a code snippet that will make the letters a pretty blue:
/* in function draw_glyph */
GLfloat r,g,b,a = 1;
if (!do_texture && !spinner_p)
/* orig line is r=b=0, g=brightness; */
r=g=0, b=brightness;
else
r=g=b=brightness;
Last edited by jpbarto; 09-17-2004 at 09:18 AM.
|