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:

37984F
809E8C
ED9E54
10872C
CEB57F
CA0A8D
A56EDF
009DA3
4602EC
6C7886
AE4F74
7F442D
30A37C
E5677D
517FAA
54C303
639F4C
FD76C5
A5E3DC
24EB64
D34FAF
0BFA97
07878D
8D8415
0D0DAE
140D52
1D9FDD
C13C46
AC01A8
97BAF0
AE0094
BA6780
6A360C
FD0059
E37DC8
5B94AD
B93CE3
343C52
D29FFA
DC13E8
8ECEC6
E32CD8
B1324D
6E5B1D
80D345
150CB9
4AABD3
D73771
00D500
7DDA1D
5E9161
0D0F30
5A860C
70C67E
B88E4C
3E1867
5B9867
20E592
E81142
53236F
935AF1
9A63BC
68403B
ECD900
969840
7E5962
CBD0D0
3F09D1
5F47E1
A2C69F
7FE426
A53BB2
F9E29D
D8F8C7
AE6656
A4E01F
A60486
D7A44D
1CDC6E
499704
D4C0DE
B4E714
BB88C3
2A67B6
B404E2
6B1B5A
74A4F1
CDD396