Component Colourizing

The image shown on the left below can be coloured by selecting the relevent radio button for each component part. Once you have selected all your colours, click the [render] button to see the lovely colour image.

Hover your mouse over the component title to find which part of the image will be coloured for that selection.

Component Colourize Selector
LocationColour Select
base
turret
cannisters
panels
wheels
nodules


This gimmicky project was inspired by a forum post asking whether GD could emulate a system used on nike.com for showing trainers in certain colours. Currently it just runs by slinging a .png image reference into a user function with associated +red, +green, +blue values. The image is then iterated pixel by pixel and the found colour is adjusted (except if it is white - the exception colour) on the base image. Ping image types had to be used as they allow lossless compression meaning that the white (exception) areas remain pure white even after multiple open-save routines, unlike jpeg.

If I had to do a similar project for a commercial application I would undoubtedly use the proprietary .gd2 file format. This would certainly speed up the application process time and server overheads as well as allow use of the imagecreatefromGD2part function.
The above is therefore more a proof of concept application rather than something that should be used commercially.

Subnote: If you know who drew the image, please contact me -- Apparently (thanks Johannes) the image was drawn by Feng Zhu (http://www.artbyfeng.com) - go check his site for other cool images.

SiteMap