From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: hlingrid text t parameter?
Date: Tue, 27 Dec 2005 02:29:57 -0500 (EST) [thread overview]
Message-ID: <Pine.WNT.4.63.0512270225440.3400@nqvgln> (raw)
In-Reply-To: <5D4662B1-8F87-4FFB-9464-A6421C6C272A@cox.net>
<--- On Dec 26, David Arnold wrote --->
> All,
>
> In mp-grid.mp, I find this definition:
>
> def hlingrid (expr Min, Max, Step, Length, Width) text t =
> image ( for i=Min step Step until Max+grid_eps :
> draw (origin--(Width,0)) shifted (0,i*(Length/Max)) t ;
> endfor ; ) ;
> enddef ;
>
> See the text t at the end of the first line? Can someone tell me what
> that does and can I have a small example of its use?
I think, (I can not test it right now), that this should allow you to
do things like
hlingrid(0,10,0.1,5cm,3cm) withcolor 0.5white ;
which will draw the line with 50% gray, and
hlingrid(0,10,0.1,5cm,3cm) dashed evenly ;
which will draw a dashed grid and so on.
Aditya
--
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
next prev parent reply other threads:[~2005-12-27 7:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-27 6:38 David Arnold
2005-12-27 7:29 ` Aditya Mahajan [this message]
2005-12-27 7:46 ` David Arnold
2005-12-27 21:03 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.WNT.4.63.0512270225440.3400@nqvgln \
--to=adityam@umich.edu \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).