PDA

View Full Version : New Experiment: Project Pd 0.8



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:

Jubba
June 29th, 2003, 02:39 PM
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. :)

NaliWarCow
June 29th, 2003, 02:41 PM
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.

Jubba
June 29th, 2003, 02:43 PM
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.

Mik3
June 29th, 2003, 02:48 PM
wow, that's cool

kirupa
June 29th, 2003, 02:49 PM
Really awesome jubba ;)

Millad
June 29th, 2003, 02:58 PM
OmG this is very cool.

there is many experiments these days... mhm

λ
June 29th, 2003, 03:01 PM
It's cool, but a Reset Stage option or something would be useful.

Other than that it's awesome. :thumb: :thumb:

Jubba
June 29th, 2003, 03:02 PM
Yeah, I'm planning on adding features. If anyone can think of anything to add then let me know.

This is what I have "in development"

1) Reset stage button.

2) Different sized "brushes"

3) preview screen

ahmed
June 29th, 2003, 03:33 PM
that's great jubba =)

there's a similar tool that eyez has posted before, http://www.f-mod.com/?p=2, but this is just great. I really like it :)

Jubba
June 29th, 2003, 03:39 PM
oh wow, I never saw that... :)

Jubba
June 29th, 2003, 03:49 PM
yeah future version would be like that. Allowing users to actually draw using the drawing API, and not just pixels...

ahmed
June 29th, 2003, 03:51 PM
yup, that shouldn't be much of a difference scripting-wise i guess :)

Alex
June 29th, 2003, 03:54 PM
WOW. thats cool!!!!!!!

great job jubba

VisualAid
June 29th, 2003, 04:41 PM
u can use my server http://www.visualamp.com

500mb space and stuff i dont use it :P

Luigifan
June 30th, 2003, 04:24 AM
thats great! brightend up my morning!

:m: mariofan