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:

18CAFC
0B3845
18C616
844FB8
78B389
282B94
B89E6D
F4CA3E
234D8C
39E71E
FA6F36
BF5A68
EC9F99
039CD0
91BE16
43C404
97F277
813EDE
853D87
28D261
FA5AD7
BD38B9
15D6F3
FDD6E7
56906A
95ADD6
86446A
1A5D85
651EB2
C427EE
FC0C9D
629473
10F86D
900106
B4400B
1162F7
3F112B
97ACDC
C66220
93F792
0DFC63
A82536
D6AF48
ACA03B
5F5EFD
10ADB6
891B90
9814E7
4AC77C
690B56
97414A
1DF49E
3F6014
4F696C
758FB5
7DA166
22D816
32D7E0
D06749
E1ABA5
F3BE3B
53F6B0
B784A9
7A6A14
691FAC
F00C4B
8245D5
0FC4C4
44C583
7847BF
609E8D
494668
53CDDF
D85565
00533C
FD0831