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 (1717) because my server has a 10 second timeout set for PHP scripts, and since the code was setting the color of 2500 (original was 5050) 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
Wait for the stage to be built.
Draw the image that you want.
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.
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?
oh, on a side note. Once I get my own server set up for testing where I can configure the php.ini file on my own I will host something that is larger and has a higher timeout time set.
Very nice jubba. Only thing I’d consider changing would be that after you click the “get image” button, the picture is extremely small and I can barely see it.
yeah i Know. its only 17 by 17 pixels. It makes a real-size image based on the enlarged thing in Flash. I will make something that is larger once I get my own server, but for now, at least it works and it outputs the (somewhat) correct image.