ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: David Arnold <dwarnold45@cox.net>
Subject: Re: hlingrid text t parameter?
Date: Mon, 26 Dec 2005 23:46:52 -0800	[thread overview]
Message-ID: <9E6C8274-763C-4CC4-844A-5F7C521642BA@cox.net> (raw)
In-Reply-To: <Pine.WNT.4.63.0512270225440.3400@nqvgln>

Perfect! Thanks.

On Dec 26, 2005, at 11:29 PM, Aditya Mahajan wrote:

> <--- 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
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

  reply	other threads:[~2005-12-27  7:46 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
2005-12-27  7:46   ` David Arnold [this message]
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=9E6C8274-763C-4CC4-844A-5F7C521642BA@cox.net \
    --to=dwarnold45@cox.net \
    --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).