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:

11240A
509D18
AE66F0
D4F8D7
3DC9DD
8F7137
9876B8
E4F451
71DB32
9F2797
C10881
B32B2B
9014A7
EE3031
390FB6
55B90F
2FF38B
0FDE1E
1716A0
8D0A4A
73E3BC
07385B
E255B9
D9A16B
AFBF35
56318E
194B7F
E7AFE0
F88127
C9DF23
4FB69E
39DF5C
657369
651ED5
6EAEA2
3148AB
053EEF
F66163
5EBCF8
8687D6
4E9429
3E1ABB
09E219
708001
076201
9EF44A
84380B
02E8D3
4DCD3A
96E37E
0A0C3F
689917
40D739
35BCCE
A6DF27
CAEBC9
AFAF23
0C4919
CDEAB0
C381FC
2008BA
C77137
2BEDAE
E14044
5AC564
160CD0
CEDBE2
DC3149
3B9DC7
6E61D9
F37F89
200755
B3CB1E
6FAE24
35EF2D
0DE1D2
6645DC
10B57A
C69153
2FF337
A6672B
108AC4
59A0FD
899528
18556D
8E719A
05B408
1D0ED3