Thank you Hans for pointing out, this makes a large difference already.


you can store the path as table at the lua end (e.g. document.mypath) and then use "mp.path" to print from a lua call at the mp end; or as string and print with "mp.print" or bypass the parser with "mp.inject.path" or ... (grep for these in the tree)

Is it possible to make the mp draw call also from lua, so that I can pass the pen and color as well ?

Or that can add the pen and color to the path before inserting it?
As you can tell, I'm not very familiar with the internals of mp...

.Floris

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to