Home
Source Tarball | Source Zip

This little page does a few nifty things via PHP:

  • Generates a random quantity, between 1 and 100, of hex color codes.
  • Calculates the best color, either black or white, to use for the text to show up when displayed on top of the color.
  • Populates a little div block with the color as background and the label with the white or black text.
  • Calculates two darker shades of the color to be applied to the various parts of the object.
  • Randomly picks one of two different object templates. One faces left, the other, right.
  • Paints three of the parts of the object shown below
  • Combines each of the four parts as layers into a single little object image to be displayed next to its color block.
  • This is the right-facing template:

CE15C0
475DB3
432A53
DD927D
41EFA3
089DA5
A7701E
C55B82
978088
131887
706BDE
F129C9
96EE4C
00E462
01EC77
0F7BA2
D30962
F8B170
E99019
669B6B
14B036
54044E
2B8DDC
DDB59D
362DB8
3367A6
456C87
32AA62
0EE2C4
581F46
BA5D29
11301A
73521A
25A9F4
392BC4
5FB240
5DC112
4CE827
8C6765
35EDA9
99D8DD
130C6C
0C60F9
004854
F19B60
DFB470
DFF97C
FB35DD
0DB63F
53968A
D2BFCE
786272
D9A39C
B3D1F6
FE905A
4DF359
4624D3
5F23C2
6FACA1
AC3086
255692
847DA5
CD57E7