From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: TikZ and wrong drawing order
Date: Mon, 15 Jun 2015 13:47:33 +0200 [thread overview]
Message-ID: <557EBB55.1060004@wxs.nl> (raw)
In-Reply-To: <CALBOmsZUyiGwW-WyGp7RVtmXd2C25HkdGcPf8y_CsKYrUsQnNA@mail.gmail.com>
On 6/14/2015 11:26 PM, Mojca Miklavec wrote:
> Your example uses just two colours, while TikZ uses five and I don't
> know how to translate this "ball shading" to MP (I know or at least
> knew how to do it in plain PostScript and could dig it up; I think it
> uses function shading with predefined colours at predefined distances,
> but it's all a single shading (a single function), not a composition
> of multiple sections).
Ok, as I suppose you need it for you thesis ... a new beta ...
I didn't play with values for the circular one but here's a linear:
\startMPpage
fill fullsquare scaled 50pt
withshademethod "linear"
withshadevector (0,1)
withshadestep (
withshadefraction .3
withshadecolors (red,green)
)
withshadestep (
withshadefraction .5
withshadecolors (green,blue)
)
withshadestep (
withshadefraction .7
withshadecolors (blue,red)
)
withshadestep (
withshadefraction 1
withshadecolors (red,yellow)
)
;
fill fullsquare scaled 50pt shifted(60pt,0)
withshademethod "linear"
withshadevector (0,1)
withshadecolors (red,green)
;
\stopMPpage
so the withshadestep is new
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2015-06-15 11:47 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-11 17:27 Mojca Miklavec
2015-06-11 17:59 ` Aditya Mahajan
2015-06-11 20:14 ` Mojca Miklavec
2015-06-11 20:43 ` Aditya Mahajan
2015-06-11 20:58 ` Mojca Miklavec
2015-06-11 21:26 ` Hans Hagen
2015-06-14 21:09 ` Mojca Miklavec
2015-06-11 21:12 ` Hans Hagen
2015-06-11 22:28 ` Mojca Miklavec
2015-06-11 22:45 ` Hans Hagen
2015-06-14 21:26 ` Mojca Miklavec
2015-06-14 21:38 ` Mojca Miklavec
2015-06-15 7:43 ` Hans Hagen
2015-06-15 8:02 ` Mojca Miklavec
2015-06-15 13:02 ` Hans Hagen
2015-06-15 13:36 ` Mojca Miklavec
2015-06-15 9:48 ` Alan BRASLAU
2015-06-15 11:47 ` Hans Hagen [this message]
2015-06-12 7:11 ` Alan BRASLAU
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=557EBB55.1060004@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).