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:

584D2A
8B3A69
7BD52A
D9D89C
EFA956
4701AC
3FE40A
55F9DE
E6FBDF
C0352A
EBC8EF
36D4A3
029B74
3D7B7B
C103E5
9C1CE8
3BC479
56DC9C
F9D899
50E3DB
68794B
3EEDB2
85084A
819865
85B75B
977BB7
3D9AA2
552E1E
E1E0D8
9D873B
94442D
73841E
05BD7D
E08EFB
3668CF
1EC10A
E0F54C
C23D64
D7D633
AC8B3A
20DF16
BBECFC
4643D7
286F3E
A41A5E
500C0B
4CE4AD
753CF4
7E2FA5
B5C087
5BC360
6C0A15
5CF6D7
EF7D3F
E155A4
7AE0C5
A6B97F
CDDD3B
B123F4
A6272B
6A7BD2
9E1E15
E497A8
CDC499
81C6E9
4BA1B1
738069
5C4152
C2C080
02BD37
971E66
F9F741
8D7E1C
3AB616
38EE6F
1A6A54
C33DEA
883848
9BA3F2
35FF95
7B4DEB
2A1C78
51A027
5FF898
8C98D1
46FE1B
D82430
162415
BF620A
CE143F
C480DD
970BAC
FF9E5E
B1E39B
897796
DBC7FE
5CA0B3
4B0A05
81AA44
14FEAF