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:

6D3858
03D623
C85B5B
6BF678
F3EE3E
7029C9
4F4DA5
4F5BB5
24A431
2ECD29
027E3D
BF13C7
5F75BE
260845
9C39C0
F975B3
9521C4
79A034
D68F4C
673175
79BEB9
327F79
01A979
3F1F5C
A6C213
C3E9CE
7D5D62
89C836
6648D0
32F6DD
C170C6
FE3947
6A52AA
3C861F
072D07
8499DE
C9FD0C
B840F9
FE545E
D20AE5
58B03E
6F8D1D
4C5B84
1A5E20
B2D18D
F0064C
B54698
4B2572
3BB15F
C6CCFF
E31FE8
2BC110
0FB85D
BBDF1B
F744B0
9D05B3
777765
E3D039
B9618C
C5B4A4
36EB33
D64894
5430AB
AF8A58
D7496A
9070C7
70495A
D7F5F2
A341FD
EEBE7E
0A2010
975717