Hier ein super Artikel zur Grafikerstellung mit PHP.
How to build an object-oriented graphics library Zitat:
The goal
Creating a graphics object library involves three primary goals: - Move from primitives to objects
Instead of using imageline, imagefilledrectangle, and other graphics functions, this library should provide objects like Line, Rectangle, and Oval that can be rendered to an image. It should also support the ability to make larger complex objects or to group objects together. - Allow for z-ordering
Drawing programs let the artist move a graphics object above or below other objects on the drawing surface. The library should support this ability to position one object before or after another using a z value that defines the object's height from the surface of the drawing plane. Objects with higher z values are drawn later and, thus, appear on top of objects with a lower z value. - Provide for viewport transformations
Often, the data's coordinate space is not the same as the image. The graphics primitives in PHP work on the coordinate plane of the image. The graphics library should support the specification of a viewport so you can specify the graphics in a coordinate system that is friendlier to the programmer and automatically scales to fit an image of any size. |
Auf jeden Fall einen Blick oder sogar mehrere

wert.
Grüße Ben.