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:

844E97
A83B09
B3EA0A
537BF1
0F6603
E71A43
29EDDD
BE1751
9A7CB5
D66418
BD6C4C
8965D1
E25749
190425
B30059
1C2DEF
AF6E5F
090F80
2BA383
BF6DE4
D61260
3FECF9
2F3D67
A43E27
26D2F3
34CDE1
8CB0B9
87292D
7BBA8D
68BD4A
22F608
C63B52
00BB41
DEAAB3
676B04
35D9E2
E5BE95
A31673
587AEC
2740FA
42B29E
2781CA
174011
8D3976
466DEA
22360C
9FE045
524BC6
C87C38
2E3BBF
EB3A0C
8F9B8B
4C8B45
0B080F
619952
346DC8
CE1DF8
462962
3873E9
D8EE50
F6AC27
8BCE4F
726A49
E0B419
5246A0
010753
587BB3
A9BB3E
D5F1FE
64C987
4CA3CF
793624
9D1531
17C599
043CCE
2AD2F7
0B5F1B
F94ED3