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:

2E8827
E9FE8F
BC6D96
DF7ECC
A18F75
10DD18
AAC68B
FB73D0
B23220
D4CF61
7A66E1
4081D1
B3A9FA
DE2327
A0152F
67457E
978095
AAB1B1
851549
09ADFE
6F7D40
339981
044705
4FC7A7
8D6240
7EC2C9
8D4CBB
E2B185
5D18CB
11AF14
137A62
E9048F
1B8B53
A6934F
4B3246
0F014C
A4DE86
1735C8
6FC671
911F4C
A90C27
F30F1D
E35A95
21D1DE
0F564B
8C2944
ACC5ED
078B12
974733
F93990
B06665
BAB026
A13AC6
89EA7A
0BE384
DCEA53
00F0FE
01D35D
417F25
98AA26
8DFB24
8FAC08
C73A75
AF3A2B
6CED08
C85B5B
377E44
5B3639
C4129D
0CECC0
9299A8
C9C69E
2143A4
821492
80A278
5637E9
A906B4
173A72
E15FCA
0C576C
17630A
FC0B33
B93EF4
21DD27
4CD537
666CFF
C512D1
AFEEC9
819085
E07EBD
88035F
8EDF6D
AD4886
C6F6C6
A0226A
7065C2