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:

3D2022
CCA527
1ADFEA
AD7C72
8C705E
EF6D59
7294A7
56AE67
C4E105
2FCF1E
23EB9A
838A16
8FEF16
ADE3B2
6C864A
1C26B0
2CFFF3
93033C
71031C
2D901F
92516B
7894B1
46DB3C
67536C
095ED4
7684AE
98B25A
C6DAE6
5A110C
FD89C2
C3C16D
B088F7
6D326C
22D12F
DE6BDE
078A26
74F937
64C9E8
C05C7A
8F10AB
2E79AE
9DFF9C
1BB14C
88A006
13CD2B
1772A9
7F26F7
A13A20
1157AB
3F96C9
7DEB45
58BDF0
1AC38C
2D5FEB
A68CFF
54748E
5194E5
8BF25D
0FF0D3
37B1C8
6724BB
670066
94C118