From: Hans Hagen <pragma@wxs.nl>
Cc: ConTeXt <ntg-context@ntg.nl>
Subject: Re: how to include a circle with gradient fill?
Date: Mon, 21 Aug 2000 09:28:49 +0100 [thread overview]
Message-ID: <3.0.6.32.20000821092849.016e4800@pop.wxs.nl> (raw)
In-Reply-To: <00081703031103.01341@bilbo>
[-- Attachment #1: Type: text/plain, Size: 964 bytes --]
At 03:02 AM 8/17/00 +0200, Uwe Koloska wrote:
>Hello all!
>
>in de.comp.text.dtp someone posted a test for dtp programs. They want to
>compare the file size of the printing files.
>
>One object that has to be placed on the page is a circle without a border
>and with a gradient from white (center) to 100 % cyan. Is there an easy
>way to make this in context (maybe with the help of metapost)?
It happens to be possible using the following code:
% output=pdftex
\setuplayout[width=middle,height=middle]
\setupcolors[state=start]
\starttext
\startstandardmakeup
\startMPcode
numeric width ; width := \the\hsize ;
numeric shade ; shade :=
define_circular_shade (origin,origin,0,width,white,cyan) ;
fill fullcircle scaled width withshade shade ;
\stopMPcode
\stopstandardmakeup
\stoptext
Shading is present for some time, but the method presented here is only
availablein the beta version. [more on this in the metafun manual]
Hans
[-- Attachment #2: circle.pdf --]
[-- Type: application/pdf, Size: 1500 bytes --]
[-- Attachment #3: Type: text/plain, Size: 370 bytes --]
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
next prev parent reply other threads:[~2000-08-21 8:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-08-17 1:02 Uwe Koloska
2000-08-21 8:28 ` Hans Hagen [this message]
2000-08-22 10:05 ` Uwe Koloska
2000-08-22 13:27 ` 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=3.0.6.32.20000821092849.016e4800@pop.wxs.nl \
--to=pragma@wxs.nl \
--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).