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:

CA132D
D6F458
2B1AAA
8942C0
22AFB3
CE8C55
CBC707
FD7E1C
43B5F1
BCF9BB
52FD49
90EE7A
A184EE
7618AA
F610B3
3CC23B
E4EA61
9B5695
A7A1FF
BA6315
1B12E0
29CCE5
9A51F3
02D18B
E21296
A0EA30
145842
C8419A
6B1FDC
44E524
0BA1A6
28B452
FFD562
BFF4D1
A29270
CCA571
9B51F2
CCD314
56A42C
AEBEA8
8B466B
90C05D
C47D2D
428387
378991
443AF2
8A772B
069714
3B5AAC
A82339
8A1280
9CACD7
746194
0D1F72
3C392F
DD5FDD
D160DA
256A11
F0D352
C6E59F
AE3FA5
A68A7E
DDE887
5E3602
7B7FFA
75401C
8390E5
0B1474
FE8BFE
5DE750
AEE16A
DB1DE1
2984CD
670E66
71F2EB
B086D9
240FA2
96F31C
399C64
03D3DC
CD16EA
837388
DF550E
E9A84D
51DC0C
8568EF
D7E7AA
E2B98C
A6306C
DBFC91
FD9ADE
FDB492
2BFB0A
BE8B15
D369C5
F99EE7
571578
F257ED
1BE6C8
B98244