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:

3A4CBB
A676A1
D63FC5
9E9ABC
E6DEF7
CA0D7B
97AF96
FF8D0D
A7CDED
FFCB84
AF9E5A
EAAB64
E93C91
763258
982DEC
CAC4CE
E89A6E
AE1B53
2BB83F
4A3771
71723B
57BA85
955F1A
02EBB9
932686
473904
EB1755
7E93BE
731906
343D7A
2A659A
4904F9
34B343
8E69DD
B9D8B7
803627
AEC318
846F63
8B9BB1
CEA7BB
ACB2CF
2752D5
0B4224
2F664F
C912B3
63B9DE
182FE1
C62DD8
B68F22
F99C9B
398C96
9BBCAF
3B6A2E
7487A0
F669AA
2A07DE
201A2C
52E7A2
355EF0
34F1C7
5A62EB
FB33DA
E3464A
5C2C3A
1DF7F1
F4A4A4
C30916
D2711D
14051A
E475D4
348142
F18A3E
6CC9A7
12498B
97CC4F
4EE628
31488A
304449
57602C
505820
1CE27A
BB6AD8
5FE2B9
0C6C92
04C592
161509
F5C289
A4E713