[metapost] how to express "struct"

Qiong Cai qiong.cai at gmail.com
Sat Mar 11 19:23:17 CET 2017


I am trying to define a C-like struct in metapost:

       struct Pixel {
             numeric x;
             numeric y;
             numeric val;

What's the best way to define such a struct in MetaPost?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/metapost/attachments/20170311/9dc52ef1/attachment.html>

More information about the metapost mailing list