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:

EA63A7
4E755F
72862C
DB31B7
584F61
A396FD
818D5E
72A648
83782B
1CD71C
EA9E93
0D45A0
9A95A8
78CBAA
88DC4A
C13397
E611C1
C871FA
C8A32B
E47DB7
E2FB4C
49A2C5
1CDE7C
E3C9DD
82BE48
B0FE00
2B20F7
69AF0C
C03704
8E74AA
3B1F52
A0981C
81CBEB
106ECC
3EFDC9
9D99D7
C7C751
945C5A
3D9AAD
7A0967
28DC0E
E7CAC8
878754
63ACD5
ADBF13
DCBF18
0DE249
B48AF9
02A9CA
3109A9
E83874
2762C7
0BC56C
38F57A
370539
E28EB5
9280A4
2DB114
7089A9
3871DD
6EBE71
02C82F
3612A3
1AE19F
C94528
892870
0C2B41
FF24FE
DAD404
3379AA
CEA7EE
759666
77B3D6
766DF3
50E1D2
38C584
CA154D
CB3D0B
B87009
5D4BE9
5559F7
CFD2F7
4A6E67
754CC0
759C05
591D31
505037
4736D4
824E5D
9ECCA9
564585
4BF4F2
F757F8
891C13
C3410D
8E2150
9DC014