[NTG-context] Show the letters of the alphabet with a loop (Metapost)

Fabrice Couvreur fabrice1.couvreur at gmail.com
Sat Feb 2 10:47:18 CET 2019


The idea is to display the first 25 letters of the alphabet. The code below
shows the letter a to show what I want to do.
Thank you.
Fabrice

\starttext

\startMPcode
  for i=0 upto 3 :
      for j=0 upto 3 :
          draw unitsquare scaled 4cm shifted (4*i*cm,4*j*cm) ;
      endfor ;
  endfor ;
  for i=0 upto 4 :
      for j=0 upto 4 :
          label.llft("A", (4*i*cm,4*j*cm)) ;
      endfor ;
  endfor ;
\stopMPcode

\stoptext
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190202/b0cad19d/attachment-0001.html>


More information about the ntg-context mailing list