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:

E60F05
275C40
3EC861
4C3E05
68EC25
654B1A
031E64
104971
ACD19C
0DFB02
B7380D
65BE1B
DCB5A0
BD96FD
86BC6C
A11A07
A8384B
0DC181
67B3A0
366B20
F9C32B
9ACBD3
F43BCA
9603BA
38A9FE
11A3D1
76749B
A2BF75
55D000
8DCFA8
067B04
C9F0FC
CD5BEA
A37EAF
704684
4BDDE3
A93879
A052C6
FD2261
76DAAF
894EA5
D6B94B
DC73BA
707E4B
C937DC
94E750
DD1A35
BCCC3B
16235C
5D5480
5CF788
EEB7E3
E7DD49
68506C
C61C15
6E9244
761519
ED46C1
4C61BD
AD64FC
A2E83A
E7C341
580D11
A6E230
ADB778
9977E4
0DDDE8
98DED9
D21B47
A932D7
EDBF2B
FE0945
3439D4
366211
BB32F1
6E3EFF