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:

11CEDD
06675D
E1B281
6E3E30
BDE671
547135
56FDF9
117BDE
38013B
F22999
12267C
424359
EFD3F7
E42106
4B2022
9C55E8
2CEADB
1D958B
A000EA
950C23
BE0964
454362
750BD8
904949
BC4A68
12B4B4
7EA2B0
E7638B
DEB166
447105
091720
1BB734
88B545
2F5F2B
96D7DC
825FF2
ADF513
47DFE9
20291B
810D4B
59DE1F
FE65F2
EBA18E
C3BC19
829648
2FA280
55DED9
0458A2
339611
B7F977
30FF12
69882C
6FFC52
E0A25C
1B739E
174B14
A6385D
93EA28
8F8A58
732830
47E0FD
53EBE2
840FC0
707B6E
D4A8C5
C3DB9D
F5E549
80C7F0
9BEB64
379332
EC943F
9DD653
BE8ABF
CC736C
558349
92EC5E
C784EA
8B80AA
831AC8
AB3483
EB786D
8778B5
23D14A
E2F819
7A1F65
C943BA
B53F59
1CE3BA
6A7DC4
2BB35E
D7F48F
2EA727
EE35A9
34D790
650907
AB0413
092CA6
BDDA14
062BA6
553434