ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: Henning Hraban Ramm <texml@fiee.net>,
	mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: colors in MetaPost
Date: Wed, 11 Sep 2019 14:31:56 +0200	[thread overview]
Message-ID: <6a79f924-ce9f-5b79-be18-4e9c1f3b6210@xs4all.nl> (raw)
In-Reply-To: <01F1C6E3-07F2-440A-8624-5581C31ED90F@fiee.net>

On 9/11/2019 2:18 PM, Henning Hraban Ramm wrote:
> Am 2019-09-11 um 13:46 schrieb Henning Hraban Ramm <texml@fiee.net>:
>> \definecolor[VerlaufVon][c=75,m=5,y=95,k=60]
>> \definecolor[VerlaufNach][c=88,m=95,y=5,k=60]
> 
> Of course I need values between 0 and 1.
> Sorry for the noise.
> I think I’m too tired...
there is an alternative interface on top of the existing one (coming) ...

% maybe handy:

definecolor [ name = "MyColor3", r = 0.22, g = 0.44, b = 0.66 ] ;
definecolor [ name = "MyColor4", r = 0.66, g = 0.44, b = 0.22 ] ;

% parameter driven:

draw lmt_shade [
     path      = fullcircle scaled 4cm,
     direction = "right",
     domain    = { 0, 2 },
     colors    = { "MyColor3", "MyColor4" },
] ;

but tweaking shades will never be easy

Hans

(working in the metafun xl manual, more soon)

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2019-09-11 12:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-11 11:46 Henning Hraban Ramm
2019-09-11 12:18 ` Henning Hraban Ramm
2019-09-11 12:31   ` Hans Hagen [this message]

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=6a79f924-ce9f-5b79-be18-4e9c1f3b6210@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=ntg-context@ntg.nl \
    --cc=texml@fiee.net \
    /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).