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:

88F10A
6B72B8
36B7BB
26217C
245423
A889C8
607075
B9A489
849CC0
100649
F63ED7
7B4E83
3393C2
E4CD7A
EAD1BB
D76E19
FDAEED
DEDE2E
0EFB33
76264B
22F9EC
E5401E
22BD36
9AA679
CA41EF
C42B0D
51C577
4FEB2F
4C689F
5E92CE
2E7D0C
B967AB
295551
3EFF1D
736E59
6A2CEB
532188
242B34
8A5852
AC3F66
560277
29E145
C7387A
5F1E28
A1B675
A4D1E1
CFFA77
599446
1B6BAC
AB3164
C4FE22
46D5D7
C30D14
BB45F9
3FC316
CCAD30
FE0610
3AF3C2
F05F68
6C8A26
6A842E
E8AE02
141C9E
BAF7DA
FDFCD5
5BFA2B
2963CB
7C87B6
EE7A64
C12DFD
0949C1
EFC263
5857FB
60B0B7
C86A22
632E31
8FB5A1
EBCFB2
21BE7A
C70523
2B34F2
C3503B
639330
F3F026
0ED185
A5EECF
EB0FCA
1A0AFD
648C7F
14D54F
22AA65
D056FF
2715A6
2AE17E
75303C
8C1A02
2A3641
4DBC76
96B42C