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:

49C24A
7B092E
89E10C
58A68C
08DBD3
819B04
B9229E
A3F905
08E296
3B91CB
E58ECB
03CB57
DEB4F3
A516EE
94B57B
29CD47
C5717E
357DC8
915770
296D02
B47ED5
53C3EC
CD56A8
941AF9
7D5DB2
B95240
5F03AD
8F120E
E6FFB5
916B48
4D5B0B
8E2E16
D99081
068369
D32F0B
09F466
CBC1EE
1056DB
576BF4
75AF4B
031883
055C8D
31B1DD
AEBC22
3952C7
60036D
61173A
46FB01
F3A9A7
3BE7DA
AF4445
7D2585
E49BAC
1EF6DF
1B1885
73F891
5FE76B
4CCCC4
A4B98F
F17453
A0004D
4D0B48
F57122
C69E91
D06F4F
D945F1
35EB7F
D5E9FF
DC5AE9
83BC59
CE6F14
0139A1
E93614
0A6D52
C63007
0103C6
98843A
465742
CE7224
582DEC
325169
3E04F5
669F99
7B1524
834F1C
281DD8
AFE198
0C46FA
42337D
2DE5F2
39F727
CE70C2
182BAF
55BD3C
D09C5A
75B366
35F820
016C9F
F67CB3