I try to introduce a per character rotation using lua.
But a negative rotation angle seems to introduce a vertical offset to
the base line.
It might be intended, but how to get it gone?
Any hints?
.Floris

\def\streepA{%
\rotate[rotation=\ctxlua{context(math.random(1,15))}]{\|}%
}
\def\streepB{%
\rotate[rotation=\ctxlua{context(math.random(-15,-1))}]{\|}%
}
\def\stapA#1{\dorecurse{#1}{\streepA}}
\def\stapB#1{\dorecurse{#1}{\streepB}}
\starttext
\startTEXpage[offset=20mm, width=297mm]
\startalignment[width]~
\dorecurse{50}{\stapA{10}\stapB{10}}
\stopalignment
\stopTEXpage
\stoptext


Attachment: pEpkey.asc
Description: application/pgp-keys

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to