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 ? :-) .F
Hi Floris,
if i change the yellow t value to .99 \definecolor [solidyellow] [y=1,t=0.99,a=1] some green layer pops up.
Test works OK for me, with the two ConTeXt releases I tried: current version: 2016.11.24 12:05 current version: 2018.12.01 13:20 macOS Mojave 10.14.1 Best wishes, Taco
indeed, it’s probably related to the preview of osx 10.11.6 version. e.g. if i paste the pdf into this mail, i shows up correctly.
On 6 Dec 2018, at 11:02, Taco Hoekwater
wrote: Hi Floris,
if i change the yellow t value to .99 \definecolor [solidyellow] [y=1,t=0.99,a=1] some green layer pops up.
Test works OK for me, with the two ConTeXt releases I tried:
current version: 2016.11.24 12:05 current version: 2018.12.01 13:20
macOS Mojave 10.14.1
Best wishes, Taco
___________________________________________________________________________________ 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 ___________________________________________________________________________________
On 12/6/18 10:55 AM, Floris van Manen wrote:
while experimenting with the sample transparency color code [...] 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 ? :-)
Hi Floris, this is an Apple Preview issue. I wonder what it might be doing wrong. Evince, mupdf-gl and acroread for Linux display it fine (see the attached image). Pablo -- http://www.ousia.tk
On Thu, Dec 6, 2018 at 10:55 AM Floris van Manen
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
it is the behaviour of the (old) osx preview app for sure. when looking at the pdf, the thumbnails are correct, however when focussing on the page it turns green. its getting more urgent to move to Linux ;-) .F
On 6 Dec 2018, at 11:12, luigi scarso
wrote: On Thu, Dec 6, 2018 at 10:55 AM Floris van Manen
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
___________________________________________________________________________________ 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 ___________________________________________________________________________________
participants (4)
-
Floris van Manen
-
luigi scarso
-
Pablo Rodriguez
-
Taco Hoekwater