Jubba
June 29th, 2003, 02:38 PM
Well, I thought of this idea the other night while I was talking to Thor about the PHP image functions. It is a Flash-base Pixel Drawing Program. You can select the colors and click on each individual pixel to change the colors around. Then it outputs an image from a PHP file.
couple things about the file.
The drawing area is so small (17*17) because my server has a 10 second timeout set for PHP scripts, and since the code was setting the color of 2500 (original was 50*50) pixels, it took longer than 10 seconds to run. So I had to decrease the number of pixels to 17*17 (or 189 total). This worked out for the best though. The code (php and AS) executes faster and does not crash my computer anymore.
Instructions
1) Wait for the stage to be built.
2) Draw the image that you want.
3) When finished click the "Compile" button. This converts the array of colors into a string so that it can be passed easily to the PHP page.
4) Once it is finished compiling the data, click the "Get Image" button and it will take you to a page where your image should be (hopefully).
Its still really buggy, and its still in test phases but I am still hapy with the results. What do you think?
http://www.bluefinatlantic.com/egTest/pixeldraw/pixel.php
Cheers,
Jubs :cowboy:
couple things about the file.
The drawing area is so small (17*17) because my server has a 10 second timeout set for PHP scripts, and since the code was setting the color of 2500 (original was 50*50) pixels, it took longer than 10 seconds to run. So I had to decrease the number of pixels to 17*17 (or 189 total). This worked out for the best though. The code (php and AS) executes faster and does not crash my computer anymore.
Instructions
1) Wait for the stage to be built.
2) Draw the image that you want.
3) When finished click the "Compile" button. This converts the array of colors into a string so that it can be passed easily to the PHP page.
4) Once it is finished compiling the data, click the "Get Image" button and it will take you to a page where your image should be (hopefully).
Its still really buggy, and its still in test phases but I am still hapy with the results. What do you think?
http://www.bluefinatlantic.com/egTest/pixeldraw/pixel.php
Cheers,
Jubs :cowboy: