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:

141B49
687202
5360C5
B37973
8B3594
6DC018
1A0442
2A8F4F
239A4A
F9CDF4
F8354E
2059A3
B94C6E
ED06C1
1C3E79
22F311
7785E1
6DFE7E
2EDD9C
235AC1
C1DC45
0E38E6
38A223
CF95AC
FABB8A
67202F
0FF37D
F8B006
97ABD9
A4C474
B51FF7
B851EA
42C385
EEBA1E
F57EA5
730830
84B793
A5BBB6
55CD7C
97CA97
3217CA
681BEC
23F332
1B60AF
641EDC
DF27B1
B0CA27
E2591B
FC97A1
119470
975038
0D35FC
3A908A
BF13E1
F5859E
3EF70B
F256DB
BC865B
35C4CE
32B41B
279D8C
1081C8
98C6C0