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:

F9B4FE
196ADF
B80D6F
30DBAB
E090A1
F241CC
08128B
ABB80E
9673AE
F86B83
1E8F52
E245A5
BE77EA
48F250
21D421
5F238E
A55C74
A98E27
9BA047
73369F
A16D13
786621
8FAD1E
C85B17
4DB07D
FC92BC
E3DA57
C77E71
7BDB62
FF76E9
55D68B
A36523
46CDCB
E4A8FD
B1BF57
FD562F
E32D3C
DDFA49
F0D04E
82774B
273E83
EC21E5
91B1B7
37F8F6
A1AB6D
B41C5D
DBA199
831BE4
4F4C5A
00E373
6EC010
DE701F
40E283
8AD802
799979
559A49
31645A
1B8CE0
4177A2
77101A
0E75A7
C89130
866B34
B1FF51
8F16C5
26CEBB
3D931E
459F20
F91293
7C212E
08732F
48E408
B4EC62
70B078
6FF26A
74FD72
58965A
F052A9
165B88