From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: color check
Date: Thu, 6 Dec 2018 11:12:42 +0100 [thread overview]
Message-ID: <CAG5iGsBzQYTkhLC3aamGgDCar8rXE8r0oY8u19NwM7+QQa4AEw@mail.gmail.com> (raw)
In-Reply-To: <9A12627A-B77C-4FE1-9DE4-A10DBE4015B4@klankschap.nl>
[-- Attachment #1.1.1: Type: text/plain, Size: 2258 bytes --]
On Thu, Dec 6, 2018 at 10:55 AM Floris van Manen <vm@klankschap.nl> wrote:
> while experimenting with the sample transparency color code
>
>
> \definecolor [transparentred] [r=1,t=.5,a=1]
> \definecolor [transparentblue] [b=1,t=.5,a=1]
> \definecolor [solidyellow] [y=1,t=1,a=1]
>
> \starttext
>
> \startTEXpage
> ~This is some sample text that goes behind the rectangles\hskip-80mm
> \blackrule[width=18mm,height=10mm,depth=10mm,color=solidyellow]\hskip-6mm
> \blackrule[width=18mm,height=20mm,depth=1mm,color=transparentred]\hskip-6mm
>
> \blackrule[width=18mm,height=10mm,depth=10mm,color=transparentblue]\hskip-6mm
> \blackrule[width=18mm,height=20mm,depth=1mm,color=solidyellow]\hskip27mm
> \stopTEXpage
>
> \stoptext
>
>
>
> i get the intended result.
>
>
> if i change the yellow t value to .99
> \definecolor [solidyellow] [y=1,t=0.99,a=1]
> some green layer pops up.
>
>
> as this is all about software, there is a reason to this.
> it cold be the OSX preview program too, of course.
> can someone explain to me ?
> :-)
>
> here is ok under ubuntu
Can you convert pdf to png ? This should show almost the same png.
You can also prepend
\nopdfcompression
and post the pdf.
\nopdfcompression
\definecolor [transparentred] [r=1,t=.5,a=1]
\definecolor [transparentblue] [b=1,t=.5,a=1]
\definecolor [solidyellow] [y=1,t=1,a=1]
\starttext
\startTEXpage
\definecolor [solidyellow] [y=1,t=1,a=1]
~This is some sample text that goes behind the rectangles\hskip-80mm
\blackrule[width=18mm,height=10mm,depth=10mm,color=solidyellow]\hskip-6mm
\blackrule[width=18mm,height=20mm,depth=1mm,color=transparentred]\hskip-6mm
\blackrule[width=18mm,height=10mm,depth=10mm,color=transparentblue]\hskip-6mm
\blackrule[width=18mm,height=20mm,depth=1mm,color=solidyellow]\hskip27mm
\stopTEXpage
\startTEXpage
\definecolor [solidyellow] [y=1,t=0.99,a=1]
~This is some sample text that goes behind the rectangles\hskip-80mm
\blackrule[width=18mm,height=10mm,depth=10mm,color=solidyellow]\hskip-6mm
\blackrule[width=18mm,height=20mm,depth=1mm,color=transparentred]\hskip-6mm
\blackrule[width=18mm,height=10mm,depth=10mm,color=transparentblue]\hskip-6mm
\blackrule[width=18mm,height=20mm,depth=1mm,color=solidyellow]\hskip27mm
\stopTEXpage
\stoptext
--
luigi
[-- Attachment #1.1.2: Type: text/html, Size: 3623 bytes --]
[-- Attachment #1.2: Screen Shot 2018-12-06 at 10.53.21.PNG --]
[-- Type: image/png, Size: 8414 bytes --]
[-- Attachment #1.3: Screen Shot 2018-12-06 at 10.48.56.PNG --]
[-- Type: image/png, Size: 10306 bytes --]
[-- Attachment #2: Screen Shot 2018-12-06 at 10.53.21.PNG --]
[-- Type: image/png, Size: 8414 bytes --]
[-- Attachment #3: Screen Shot 2018-12-06 at 10.48.56.PNG --]
[-- Type: image/png, Size: 10306 bytes --]
[-- Attachment #4: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2018-12-06 10:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-06 9:55 Floris van Manen
2018-12-06 10:02 ` Taco Hoekwater
2018-12-06 10:12 ` Floris van Manen
2018-12-06 10:09 ` Pablo Rodriguez
2018-12-06 10:12 ` luigi scarso [this message]
2018-12-06 12:33 ` Floris van Manen
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=CAG5iGsBzQYTkhLC3aamGgDCar8rXE8r0oY8u19NwM7+QQa4AEw@mail.gmail.com \
--to=luigi.scarso@gmail.com \
--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).