On 02/21/2011 02:41 PM, Reviczky, Adam wrote:
but for this example it draws a small line through the letter:
\starttext
\framed[background=color,backgroundcolor=red,height=fit,width=fit]{
\startMPcode
path db[],df[],dc[];
drawoptions (withcolor (0.000000,0.329412,0.560784));
db1 := (86.812500,0.519531)--(92.457001,0.519531)--(92.457001,32.386700)
--(86.812500,32.386700)--(86.812500,19.679701)--(86.722702,19.679701)
..controls (85.390602,21.589800) and
(82.816399,22.718800)..(79.929703,22.718800)
..controls (73.976601,22.718800) and
(69.800797,17.253901)..(69.800797,11.617200)
..controls (69.800797,4.683590) and
(73.664101,0.000000)..(79.484398,0.000000)
..controls (82.949203,0.000000) and
(85.257797,1.820310)..(86.722702,3.640620)
--(86.812500,3.640620)--cycle;
df1 := (81.437500,19.246099)..controls (84.992203,19.246099) and
(86.812500,15.734400)..(86.812500,11.964800)
..controls (86.812500,7.625000) and
(85.128899,3.464840)..(81.171898,3.464840)
..controls (77.753899,3.464840) and
(76.062500,7.542970)..(76.062500,11.746100)
..controls (76.062500,15.953100) and
(77.621101,19.246099)..(81.437500,19.246099)
--cycle;
dc1 := db1 -- df1 -- cycle;
fill dc1;
drawdot (86.812500,0.519531) withcolor blue withpen pencircle scaled 2pt;
drawdot (81.437500, 19.246099) withcolor green withpen pencircle scaled 2pt;
drawarrow db1 withcolor green; drawarrow df1 withcolor blue;
drawarrow dc1 withcolor white;
\stopMPcode
}
\stoptext
The above code is just intend to tell you that you can change the way
you construct db1 and df1 to achieve your desired results. The actual
changes necessary to this example are not given.
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________