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:

E1016C
962E70
AC6D6D
51DADF
9D76AE
EFED55
56265D
A5ECCF
981AB2
1C7100
C70BD5
EE5402
6B2CFF
2F8A47
96146A
367349
214B7D
B77393
F5D784
6150D8
EC786C
CE005A
2B5A86
8E9FFE
E2AE2C
DE5D5B
2150C5
649136
2A29BD
E1D043
45B321
935EA3
55C4DB
0B88CF
C36847
CB6D0F
C738B3
F5FED6
1AAE99
CF0B33
F7C42B
0B2980
4114B9
A16F17
08019B
F4AF6E
71E181
18C21B
36B020
2DCE2D
B78DEF
1D582E
9DEE29
BDE4F4
965513
681244
A4413D
0BC48F
A8456F
03B13F
94877F
7310FC
B62BF7
86BF31
E85447
11DB38
50EFBB
1EAE9E
273DF0
1B77AA
9869BD
BDE7DD
8CA017
2B7440
C1A5E6
C5AC2B
8B3A73
169012
42FC90
BBF7B7
E3816D
730906
2E2637
086C55
D6B16F
AE0277
916D59
C5620F
43C6C5
FF2D49
A7365E
ECBE9E