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:

ACF489
6CA075
731E3D
D27363
66192C
AF65CD
B572C4
69E043
1E36B0
B9B5F4
64F653
38ADA0
57B913
55A8FA
A29D14
89970E
D180F6
A80E24
71F438
10345A
B7695D
D57CA7
A1E6BF
322E11
69F5DD
8F9458
CC9CD9
3AA4C6
8F43C0
470ABE
6C435E
A9B722
93835C
13A2DE
E9C018
2B261A
06AD8D
80BAAD
F162F2
00E53A
DF7F3B
8A35FE
2953C6
468FBE
884B86
7BC404
FF8587
F90C1F
8DB9AB
75BE3E
2DFDB8
E82DBD
283F82
05FEA4
5C88BE
52B3FB
1ECE88
98D6DF
5FD654
889D35
C89714
CC1A62
D301EE
723447
F462C5
43862E
3512DE
249F26
A77592
23FA3A
6263BC
AE37A9
38B9B7
F54345
C5BDC8
0ED1DE
F7B5CB
7A0D0E
072D1C