Take the 2-minute tour ×  I want to create a small function in
PHP which takes in arguments like color, shape, transparency
etc. and outputs a PNG image. I heard about PHP GD library but I
want to know how can one create something as creative as
soon.media.mit.edu  share|improve this question  4 Answers 4  up
vote 11 down vote accepted  This is a good example, you can do
virtually everything using these functions. While possible,
creating an image like the one you described would be pretty
hard by I have done some weird stuff with gradients, loops and
colors though.  If you wanted to make an image like that
dynamically based on some parameters you can always create the
images beforehand in photoshop and then overlay them based on
what a user selects.  There is a lot of fun you can have.  Edit:
Oh by the way, if your interested giving an invalid parameter
shows some of the python code that is responsible for creating
the image and causing the error. It would be a good place to get
some idea of the code.  2nd E