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:

B74DE5
AEF8C5
3A5664
5ED23D
DDCEEB
F066FF
8B5A95
5087F2
A8FDF5
B21A2F
C40626
E2A8B4
DA1ACD
C5721E
674C50
368ED7
838AAE
1663C6
5DD378
8C3527
D533AB
57C16B
33C40F
953CD4
01D4DC
E37174
1480E0
F69376
D5B564
D4C174
4BF8C1
C8365D
AD6C25
954DA8
EA77D2
1D0582
711563
64220B
51E1BD
8F25A6
AF5E4B
87670C
6650B2
C506D5
1980D4
99702B
F5CAA0
6DEC87
8090AC
8240B9
079FFF
C1C9CE
4BC429
F7705A
13208C
95CAEB
94EA17
CCE563
FD41D9
787064
5B6229
184C59
D166BE
35F975
A6919F
975BEA
034579
7C8041
BF53A9
6557DD
05773E
8FA2DF
49B057
C5CF3E
F3FB12
40ECE8
42C78A
F9487D
1E2A82
BB5F98
A4C442
9C484D
7E2AB3
7CBA7E
ED2B79
E3217C
9F8199
C88AA8
6F2C05
3A085A