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:

34BEED
FF70CB
640708
AE345D
06BD9E
37BD69
D43DE1
F66488
20568E
054DA5
2D586C
1055BB
9C1A75
C6B1A5
F86480
909E1C
E266AF
C1DE24
59A46D
A2FC6F
8AB46F
9A793D
966443
051712
8E00D2
6D6BEB
6C07AB
6111B4
1B1CB5
D0E325
59A50D
B0693E
D9D539
040DEF
F9607D
E38CD2
742EAC
C85FA9
17EAC4
2B51B2
D2A6FB
0748A8
A6B80F
32F51D
98D2E0
43B944
E85E27
3715EF
A244C2
8E86EC
3AA5CC
5EFACD
3F79D4
006D08
41F0BB
5D6CCC
3B9AF1
86DA5A
DC9430
5A8495
0BE65D
900120
0EC71D
78BA0F
2FBCA5
4BDE9F
171BEF
A0DD4F
74F7D2
CF5581
CA7C21
6C4DCE
68CF61
4001E7
984427
03D578
61FACE
BA4C35
F3C69A
372506
3DAAE2
92133D
07FD8B
F536B7
940828
CAFA03
CFF650