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:

6EC5E9
DA339E
01E832
DC7C95
2ADA65
8FDB5D
9BEA12
A96914
C73688
DFDD8E
A24C53
8B2687
2A286F
5C05EC
F130C6
57C0A2
B45B8D
C705F6
DCCC2D
65AB0B
F34D57
46D97E
CD03A6
3D5FAC
2951DC
F0A99C
925EF8
2025FD
1702CA
446775
4F5BC2
A7A19C
256F9F
CCACFF
78D651
55C7FA
F25958
EB7A7E
E89181
B3D5E8
282544
EBCCE5
87F255
27BE02
2737D8
798D9F
737FF9
CC6B73
4B5305
CC06DA
B52F00
F91BCD
DFA3BF
34CA7E
36F2B6
0E6B44
AEDFC3
A8AC2E
1CF782
21C389
FC79B9
FC72D4
CA5177
8A8642
08BC35
BFCBA0
037A80
C7222C
F63F23
7960E7
035C60
BD59D3
912425
09AEAB
4CB768
817634
227AAE