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:

ECFD8D
7AE1E9
65FDF1
520A88
1BD890
1D6A88
5CB23F
19B26B
4C481B
35209C
AFD643
A1A99E
10B631
BC6074
F98471
0C9C67
4351FC
2A7315
5F2C96
D9BA7F
0977E8
6EBC7D
A5838C
4FB852
E4548D
B4E86E
18520F
C391D5
D285FA
95518B
2B93B2
4E364B
420FB8
93DE57
72C6BE
194042
0C8BAF
A5B01B
4E0AB9
09CF2B
A8798A
C9AC10
12333B
3085DA
834D02
5D97E8
D43EFB
999B14
99A84C
966A05
77C0C0
4A097A
20E6F3
686876
C484CF
7B1AC8
F6B5CA
1A4B7C
33485F
0EBA9F
5C1477
5860B1
C8230B
284859
F179E0
B6273F
4E3A36
694F91
AD1C63
5D2DF3
B1E9F1
EF029A
E7B0D1
188A8C
43CAAF
0AF915
933B3D
57B5CA
C44544
AACE96
C84109
27B256
70F197
C62DC1
4FEAA0
6B777E
EF309C
AB3D39
14D0B7
DF7C84
9DC376
3693D9
FF5FE2