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:

5074B3
04EEC1
257659
3D52FE
3F8617
1BD301
F6CDF2
197DE4
D15809
0A62FB
B3F6CB
ADDAAA
C36E59
75AFA2
D3DB93
5CCE67
6B9450
026429
CC5752
217357
5B85AF
87C0E8
30177D
D6AC22
4E051E
54722B
DAAB46
05E5C0
433D89
3970E5
9CB7BA
84FDB0
5ACDA1
9234DC
7C4FB4
BD75EC
96E4C3
5A5259
4E166F
990E6F
CF5A1A
FEC6FE
7DBE29
198919
FD35E6
A6E902
2D3B25
CAF6A3
D0C563
1A28D2
F9ADE6
7978E5
6050BC
A16DAB
C8E4E5
40EA0E
9C67FA
EB8274
6918EB
556915
7D7CF5
B5870A
FD540F
EDBFD4
9C2882
6AEE71
F37752
5A8A3D
C5ABB8
E96DBD
A6E245
19D69B
42CABB
C435CE
602DB0
45C465
7916AF
F50C38
3DA94D
EF2EDE
982E64
13C691
393AC2
C3ECCD