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:

B933C2
2CF5B3
B896BD
10239F
2074EB
4F3162
0739D7
0609F2
12663F
D9CFD5
61D0AD
F78E61
81A1E3
F77DB2
92B534
410656
83518A
E4D858
940AE7
651973
8D5126
F51132
22F1FA
7B97A6
9CCF27
87AABF
38F69D
7EA76D
D6E544
21D706
952955
95FBB1
A9B851
4E7707
9ABCF7
F7C2CB
73EBB1
C41A9B
3388F6
610AF0
E3AB79
82ABD7
10930F
D80DBD
A171CC
FB3832
1BBAB1
0B98D5
7424F4
78D55B
C8DC02
49FC41
2448C6
CFD995
10138A
529273
7F6423
19328B
828119
39511E
7FCBAF
819C3E
294451
9E096D
4624E9
C877C2
28BCA0
F51B2B
30682B
D76FBD
091988
19B307
B7AAC4
536611
E1B322
5A6F82
D2C86E
5FCC72
3648E4
264DDE
14709D
B6CF39
75E5B4
A272FD
D9E91B
4A9EF5
574D60
C16CB3
F3E65D