ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] transparent color
@ 2024-05-06  8:41 Hans van der Meer via ntg-context
  2024-05-06  9:20 ` [NTG-context] " Henning Hraban Ramm
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Hans van der Meer via ntg-context @ 2024-05-06  8:41 UTC (permalink / raw)
  To: NTG ConTeXt; +Cc: Hans van der Meer


[-- Attachment #1.1: Type: text/plain, Size: 359 bytes --]

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? 

yours sincerely
dr. Hans van der Meer




[-- Attachment #1.2: Type: text/html, Size: 1146 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [NTG-context] Re: transparent color
  2024-05-06  8:41 [NTG-context] transparent color Hans van der Meer via ntg-context
@ 2024-05-06  9:20 ` Henning Hraban Ramm
  2024-05-06 13:30 ` Bruce Horrocks
  2024-05-06 14:01 ` Jacob Kauffmann via ntg-context
  2 siblings, 0 replies; 6+ messages in thread
From: Henning Hraban Ramm @ 2024-05-06  9:20 UTC (permalink / raw)
  To: ntg-context

Am 06.05.24 um 10:41 schrieb Hans van der Meer via ntg-context:
> 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?

Interesting task. Perhaps via multitone colors?
https://wiki.contextgarden.net/Spot_Colors

Otherwise you can use \definetransparency and \starttransparent around 
\color (or \startcolor).

Hraban

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [NTG-context] Re: transparent color
  2024-05-06  8:41 [NTG-context] transparent color 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
  2024-05-06 14:01 ` Jacob Kauffmann via ntg-context
  2 siblings, 1 reply; 6+ messages in thread
From: Bruce Horrocks @ 2024-05-06 13:30 UTC (permalink / raw)
  To: ntg-context mailing list



> 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.

—
Bruce Horrocks
Hampshire, UK

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [NTG-context] Re: transparent color
  2024-05-06  8:41 [NTG-context] transparent color 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 14:01 ` Jacob Kauffmann via ntg-context
  2024-05-06 14:15   ` Henning Hraban Ramm
  2 siblings, 1 reply; 6+ messages in thread
From: Jacob Kauffmann via ntg-context @ 2024-05-06 14:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Jacob Kauffmann


> Am 06.05.2024 um 10:41 schrieb Hans van der Meer via ntg-context <ntg-context@ntg.nl>:
> 
> 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? 

I think like this:

\definecolor[myred][r=.5]
\defineprocesscolor[myredish][myred][a=1,t=.2]
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [NTG-context] Re: transparent color
  2024-05-06 14:01 ` Jacob Kauffmann via ntg-context
@ 2024-05-06 14:15   ` Henning Hraban Ramm
  0 siblings, 0 replies; 6+ messages in thread
From: Henning Hraban Ramm @ 2024-05-06 14:15 UTC (permalink / raw)
  To: ntg-context

Am 06.05.24 um 16:01 schrieb Jacob Kauffmann via ntg-context:
> 
>> Am 06.05.2024 um 10:41 schrieb Hans van der Meer via ntg-context <ntg-context@ntg.nl>:
>>
>> 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?
> 
> I think like this:
> 
> \definecolor[myred][r=.5]
> \defineprocesscolor[myredish][myred][a=1,t=.2]

Oh, another one that I didn’t know. (Of course it’s in the source, but 
only Wolfgang knows all of it. ;-)

Hraban

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [NTG-context] Re: transparent color
  2024-05-06 13:30 ` Bruce Horrocks
@ 2024-05-06 15:21   ` Wolfgang Schuster
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2024-05-06 15:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Bruce Horrocks

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-05-06 15:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-06  8:41 [NTG-context] transparent color 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
2024-05-06 14:01 ` Jacob Kauffmann via ntg-context
2024-05-06 14:15   ` Henning Hraban Ramm

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).