Jarrod Trainque

12Feb

randomized horizontal bars

I’ve played around with variations of this script before, and it’s always been a favorite. Simple, randomly determined colors arranged in horizontal rows.

Example image created with the script:

sig1

Here is the live script. Reload for new combinations.

Source code here.

This is similar to earlier experiments, but use PHP’s image generation functionality to output a PNG image.

What’s interesting is that PHP seems to crap out on the last bar. Note the glitch on the far left,and the run-over on the far right. I’m not sure why it does this, but my guess is that PHP limits the number of variables or operations contained in one script(?). Or loops can only iterate a finite amount…

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a comment, or trackback from your own site.

2 Comments

  1. Comment by erik — February 13, 2005 @ 12:25 am

    reminds me of the old c64 hacker screens

  2. Comment by erik — February 13, 2005 @ 9:06 pm

    you should be doing imagedestroy at the end to clear out the memory…

    from php.net:
    imagedestroy() frees any memory associated with image image. image is the image identifier returned by the imagecreate() function.

RSS feed for comments on this post.

Leave a comment