Problem / background: consider the following code snippet.
pnt[fig_, n_] := {fig[[1, n]], fig[[2, n]]}
hor := {.025, .1, .25, .4, .475, .525, .6, .75, .9, .975}
ver := {.05, .20, .80, .95}
fig4 := Transpose[{
{hor[[1]], ver[[2]], 1}, {hor[[2]], ver[[1]], 1}, {hor[[4]],
ver[[1]], 1}, {hor[[5]], ver[[2]], 1},
{hor[[1]], ver[[3]], 1}, {hor[[2]], ver[[4]], 1}, {hor[[4]],
ver[[4]], 1}, {hor[[5]], ver[[3]], 1},
{hor[[6]], ver[[2]], 1}, {hor[[7]], ver[[1]], 1}, {hor[[9]],
ver[[1]], 1}, {hor[[10]], ver[[2]], 1},
{hor[[6]], ver[[3]], 1}, {hor[[7]], ver[[4]], 1}, {hor[[9]],
ver[[4]], 1}, {hor[[10]], ver[[3]], 1},
{hor[[3]], ver[[2]], 1}, {hor[[3]], ver[[3]], 1},
{hor[[8]], ver[[2]], 1}, {hor[[8]], ver[[3]], 1}
}]
draw4A[fig_] := {
BezierCurve[{pnt[fig, 1], pnt[fig, 2], pnt[fig, 3], pnt[fig, 4]}],
BezierCurve[{pnt[fig, 5], pnt[fig, 6], pnt[fig, 7], pnt[fig, 8]}],
BezierCurve[{pnt[fig, 9], pnt[fig, 10], pnt[fig, 11], pnt[fig, 12]}],
BezierCurve[{pnt[fig, 13], pnt[fig, 14], pnt[fig, 15],
pnt[fig, 16]}],
Line[{pnt[fig, 1], pnt[fig, 4]}],
Line[{pnt[fig, 5], pnt[fig, 8]}],
Line[{pnt[fig, 9], pnt[fig, 12]}],
Line[{pnt[fig, 13], pnt[fig, 16]}]}
Graphics[draw4A[fig4]]
which draws four half-pie type of objects:

Question: I want to fill each part with a different, optional color different than that of the surrounding line. How can I add this fill color?




hor,ver, andfig4your usingSetDelayed, yet they're static values. Are these just place holders for more complex code, as planeSetis better in this context? – rcollyer Feb 16 '12 at 18:14