Index: captcha.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/textimage/captcha.inc,v
retrieving revision 1.2
diff -u -r1.2 captcha.inc
--- captcha.inc	31 Jan 2007 09:46:06 -0000	1.2
+++ captcha.inc	31 Jan 2007 23:30:30 -0000
@@ -299,15 +299,17 @@
     if (count($images) > 0 && function_exists(imagecolorallocatealpha)) {
       // We're going to be using an image, and need a tranparent background to start with
       $im = _textimage_create_transparent_image($imageWidth, $imageHeight);
-      $noisecolor = imagecolorallocatealpha($im, 0, 0, 0, 127);
     } else {
       // Just make a plain-jane color brackground
       $im = imagecreatetruecolor($imageWidth, $imageHeight);
       $background = imagecolorallocate($im, rand(180, 250), rand(180, 250), rand(180, 250));
-      $noisecolor = $background;
       imagefill($im, 0, 0, $background);
     }
 
+    // Set the foreground and the noise color
+    $foreground = imagecolorallocate($im, rand(0, 80), rand(0, 80), rand(0, 80));
+    $noisecolor = $foreground;
+
     // Add the text
     for ($i=0;$i<drupal_strlen($string);$i++) {
       imagestring($im,max(2,5-rand(0,$charSizeAmount)),$x,$y,drupal_substr($string,$i,1),$foreground);
