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:

4DF4CB
F06A2C
19A624
8EAAE7
B9DC68
C0AA79
BA0D0F
5C9387
C0489D
9538B5
A27A93
BE3633
A444E6
F8B6E5
3FA959
434665
14D991
E6742F
66F1FF
F472EA
178AEE
D5C8D7
76BCE5
B8F836
2EDE8A
E4286E
512DC8
761E55
B4EE6C
39B8EA
1B8095
3C27A3
DC9F3F
F67C2D
C6A558
D91E9E
7B3118
CDFD19
98D4FD
C0C1EC
BB2671
9855E5
093BBA
72B52F
AD9AAF
1C0E4A
8FCE31
24E211
C0F4C2
715572
E46A96
3B449A
036EE6
9D9029
14F363
450A84
F99EDB
C8DF59
B977EB
FB10F4
934DED
1A4C70
0E98D1
FEF3B8
AC39F7
6A75B0
ABEFDE
930433
2F2A48
D4E870
49C680
125190
25C2F9
FEC3AB
4250B5
A66C2A
21EEA8
DB777F
7EB917
23D413
5FE225
E75133
D9DAA6
C399CD
84C999
DA2CD6
F23A67
096B1A
5C1C29
2C3FFC
DB1792
BBD710
B2E248
29510E
5AD10F
E308E9
75ACEF
F8B974
C7852B
5A1C72