\starttext \enabletrackers[localanchor] \startoverlayMPgraphic{mp:whatever-6} draw anchorcell (1,1) withpen pencircle scaled 1pt withcolor "blue" ; fill anchorspan (2,2) (3,5) withpen pencircle scaled 1pt withcolor "yellow" ; draw anchorcell (2,2) withpen pencircle scaled 1pt withcolor "green" ; draw anchorcell (3,3) withpen pencircle scaled 1pt withcolor "red" ; \stopoverlayMPgraphic \starttabulate[synchronize=background,background=mp:whatever-6,format={|l|c|r|}] \NC test \NC test \NC test \NC \NR \NC test \NC test test \NC test \NC \NR \NC test test \NC test \NC test \NC \NR \NC test \NC test \NC test \NC \NR \NC test \NC test \NC test test \NC \NR \stoptabulate \stoptext -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 09/06/2021 20:42, Hans Hagen wrote:
\startoverlayMPgraphic{mp:whatever-6} draw anchorcell (1,1) withpen pencircle scaled 1pt withcolor "blue" ; fill anchorspan (2,2) (3,5) withpen pencircle scaled 1pt withcolor "yellow" ; draw anchorcell (2,2) withpen pencircle scaled 1pt withcolor "green" ; draw anchorcell (3,3) withpen pencircle scaled 1pt withcolor "red" ; \stopoverlayMPgraphic
The fill works with multiple cells, but the draw does not: fill anchorspan (2,2) (3,5) withpen pencircle scaled 1pt withcolor draw anchorspan (2,2) (3,5) withpen pencircle scaled 1pt withcolor
On 6/9/2021 9:46 PM, Floris van Manen wrote:
On 09/06/2021 20:42, Hans Hagen wrote:
\startoverlayMPgraphic{mp:whatever-6} draw anchorcell (1,1) withpen pencircle scaled 1pt withcolor "blue" ; fill anchorspan (2,2) (3,5) withpen pencircle scaled 1pt withcolor "yellow" ; draw anchorcell (2,2) withpen pencircle scaled 1pt withcolor "green" ; draw anchorcell (3,3) withpen pencircle scaled 1pt withcolor "red" ; \stopoverlayMPgraphic
The fill works with multiple cells, but the draw does not:
fill anchorspan (2,2) (3,5) withpen pencircle scaled 1pt withcolor draw anchorspan (2,2) (3,5) withpen pencircle scaled 1pt withcolor
you forgot the color
___________________________________________________________________________________
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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Floris van Manen
-
Hans Hagen