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:

8B0E5F
885D44
64EF05
8F16C2
A6EC2D
AD6C1E
7F5430
9D494E
0F188B
614868
A03765
56DCB2
E33B93
0D50A6
10A5AA
30F88C
5ABF6E
924CD6
C226A6
192BD0
2ECF24
5A3668
695491
0C7307
492766
BC1B06
CBB3AF
5E8B8A
E90091
542B93
986E66
5B3761
FE04F5
2D01F2
126DCF
33A9C0
435B12
F2E58A
450594
0A247C
D3B924
4A2C6B
9B1CB1
587BD1
8ADEEE
92F420
2A19DA
CAF1D1
F11084
382D56
3F6E3B
638DE8
CD9247
BEC476
E25548
BD9068
EFE686
6AD762
851BAE
CE767A
D75B70
FA49FC
7D64F9
9E9786
922E12
690FB7
D658FC
1FC91B
7A6456
885EFC
64EC26
2FFF2B
D36384
17D751
A6005F
5A6198
25B70A
FE5337
0DCC7D
996125
8C8256
338762
17E5E6
A3734E
F031EF
E9380D
C9AFFF
5A2734
C55A5D
735C6E
CA7274
9253F0
4BE50D
69A9CE