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:

0EEAB6
FBD524
D3E8DF
572993
9B0366
81C082
4F5B02
246B44
E5EC53
61730B
D25233
4CA24E
8BDA31
12795F
31F946
326D59
903A2B
CEAF72
0F689B
739678
15A411
4FA897
4C1A27
24BD59
A363C9
A6CF9D
6A5D84
056983
F87C8D
84AA13
7E5BCA
B20AE7
9568EC
5185C3
CF081C
641715
B22002
87077B
EF70F2
71893B
14D252
8CEEAC
9D6A77
B82983
26BF56
3B276F
533F0C
4C5B51
24F961
E6EF99
32DD44
D7EDED
0E2D31
5882A3
05668F
D571D9
F4A8AC
E9172E
F51925
7C0629
F41A64
7ABA01
28380A
B3154A
541D9C
E9D8A3
5CF2C6
96BA9B
A434F8
6AAF8E
43012D
510073
BA85EC
05D49E
9AF03F
196158
02205F
42C90A
5EE334
324354
F521C3
A7B1DB
16D210
D1F21F
3D8B2E