ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Bruce Horrocks <ntg@scorecrow.com>
Subject: [NTG-context] Re: transparent color
Date: Mon, 6 May 2024 17:21:45 +0200	[thread overview]
Message-ID: <b48909b0-5733-d646-ffcc-b4e3d20ae888@gmail.com> (raw)
In-Reply-To: <26773B09-46D1-4F40-BE76-6F7B2B4A899C@scorecrow.com>

Bruce Horrocks schrieb am 06.05.2024 um 15:30:
>> On 6 May 2024, at 09:41, Hans van der Meer via ntg-context <ntg-context@ntg.nl> wrote:
>>
>> I would like to use a transparent version of an existing color. Thus
>> \definecolor[transparentcolor][color,t=0.2,a=1]
>> instead of
>> \definecolor[transparentcolor][r=..,g=..,b=..,t=0.2,a=1]
>> because I do not know the rgb values of the color that must be made transparent, only its name.
>>
>> How to accomplish?
> The Wiki page <https://wiki.contextgarden.net/Color> gives the source files for various sets of colours (built in, crayola etc) and the source has the RGB values in a fairly obvious format.

\definecolor [wolley] [\colorcomponents{yellow},t=0.5,a=1]

\starttext

%\showcolorcomponents [yellow]

\framed[background=color,backgroundcolor=darkblue,foregroundcolor=yellow]{yellow}

\framed[background=color,backgroundcolor=darkblue,foregroundcolor=wolley]{wolley}

\stoptext

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2024-05-06 15:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-06  8:41 [NTG-context] " Hans van der Meer via ntg-context
2024-05-06  9:20 ` [NTG-context] " Henning Hraban Ramm
2024-05-06 13:30 ` Bruce Horrocks
2024-05-06 15:21   ` Wolfgang Schuster [this message]
2024-05-06 14:01 ` Jacob Kauffmann via ntg-context
2024-05-06 14:15   ` Henning Hraban Ramm

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=b48909b0-5733-d646-ffcc-b4e3d20ae888@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=ntg@scorecrow.com \
    /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).