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:

75BC0A
7C9116
6DB587
5B0AC7
3AB16C
82E5E5
AD3D42
8631D1
E3B520
FE44F9
FBBF4C
49DB0E
35DA71
AABEC7
740CB9
D2DF15
B3C2E8
114571
7E27BE
FE1081
68203D
2134BC
B893DE
3E919C
373FCE
2E3C3D
623B55
741446
D085AF
E6A703
6E1FED
17CC1A
363449
BE0A3F
C26D80
431B12
6A3E27
05EDB1
66FB80
BD31E9
FFFF79
5361F3
2CE9EB
6AA71F
BFA235
0B494B
94F913
3DDFD0
2C877E
B1B86A
184BF2
4A6AB6
C54D5B
041B89
288220
18267F
8888EE
69D7DB
DE0F62
D1DBC5
BB2EEE
C930F2
D20734
FDA95F
C35C86
CAECA9
147923
4FB175
CDB4A8
0CCD52
FC740E
AB5F58
F0D736
37A0D6
4E0C20
9617FF
B7369C
611553
60114E
FAE511
2D106E
E737A5
7ECBB3
46544B
BA0D77
AE6388
A2668F
CF8616