ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Color rendering & transparency with metapost
  2008-11-01  0:38 Color rendering & transparency with metapost Renaud Aubin
@ 2008-10-31 23:40 ` luigi scarso
  2008-11-01  1:06   ` Renaud Aubin
  0 siblings, 1 reply; 5+ messages in thread
From: luigi scarso @ 2008-10-31 23:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

On Sat, Nov 1, 2008 at 1:38 AM, Renaud Aubin <aubin@nibua-r.org> wrote:

> Hi,
>
> I have some trouble using a gradient background (solid) with a
> transparent element :
>
>  \startMPinclusions
>    def test_shade (expr a, b) =
>    pickup pencircle scaled 1mm ;
>    color ca ; ca := \MPcolor{a} ;
>    color cb ; cb := \MPcolor{b} ;
>    color cc ; cc := \MPcolor{c} ;
>    sh := define_linear_shade(origin
> shifted(0cm,.5*\overlayheight),origin,ca,cb) ;
>    fill fullsquare xscaled \overlaywidth yscaled \overlayheight
> withshade sh;
>    draw origin withcolor cc;
>    draw origin shifted(0cm,-.25*\overlayheight) withcolor cc;
>    enddef ;
>  \stopMPinclusions
>
>  \setupcolors[state=start]
>  \definecolor[a][r=.57254902,g=.784313725,b=.917647059]
>  \definecolor[b][white]
>  \definecolor[c][darkred]
>  \starttext
>
>  \defineoverlay[bgoverlay][\uniqueMPgraphic{bg_top_shade}]
>  \setupbackgrounds[page][background=bgoverlay]
>  \startuniqueMPgraphic{bg_top_shade}
>    test_shade(origin, origin shifted(0cm,1cm));
>    draw fullcircle scaled 10cm shifted (0cm,0.25*\overlayheight)
> withcolor transparent(1,0.5,white) withpen pencircle scaled 2cm;
>
> %%%%%%%% If you comment out the previous line the color rendering is
> definitelly different...
>
>  \stopuniqueMPgraphic
>
>  \input knuth
>
> \stoptext
>

This is my test.
Where is the problem ?

minimals-beta
Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008
i686 GNU/Linux
This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown
ConTeXt MtxRun | current version: 2008.10.31 13:58



-- 
luigi

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

[-- Attachment #2: test-renoud.pdf --]
[-- Type: application/pdf, Size: 8456 bytes --]

[-- Attachment #3: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Color rendering & transparency with metapost
  2008-11-01  1:06   ` Renaud Aubin
@ 2008-11-01  0:36     ` luigi scarso
  2008-11-01  1:11     ` Renaud Aubin
  1 sibling, 0 replies; 5+ messages in thread
From: luigi scarso @ 2008-11-01  0:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

On Sat, Nov 1, 2008 at 2:06 AM, Renaud Aubin <aubin@nibua-r.org> wrote:

> Thank Luigi for your response,  the problem is that the background color
> rendering isn't the same if you comment out or not the following line :
> draw fullcircle scaled 10cm shifted (0cm,0.25*\overlayheight) withcolor
> transparent(1,0.5,white) withpen pencircle scaled 2cm;
>
true

>
> After some experiments, the problem is solved ( hence not understood
> ???) using rgb=no in setupcolors...
>
They seem differents again

>
> It's maybe a viewer-centric problem : I use acroread 8.1.2 under linux.
>
no, I don't believe.
Try to investigate with \pdfcompresslevel0 at the beginning

-- 
luigi

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

[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Color rendering & transparency with metapost
@ 2008-11-01  0:38 Renaud Aubin
  2008-10-31 23:40 ` luigi scarso
  0 siblings, 1 reply; 5+ messages in thread
From: Renaud Aubin @ 2008-11-01  0:38 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

Hi,

I have some trouble using a gradient background (solid) with a 
transparent element :

  \startMPinclusions
    def test_shade (expr a, b) =
    pickup pencircle scaled 1mm ;
    color ca ; ca := \MPcolor{a} ;
    color cb ; cb := \MPcolor{b} ;
    color cc ; cc := \MPcolor{c} ;
    sh := define_linear_shade(origin 
shifted(0cm,.5*\overlayheight),origin,ca,cb) ;
    fill fullsquare xscaled \overlaywidth yscaled \overlayheight 
withshade sh;
    draw origin withcolor cc;
    draw origin shifted(0cm,-.25*\overlayheight) withcolor cc;
    enddef ;
  \stopMPinclusions

  \setupcolors[state=start]
  \definecolor[a][r=.57254902,g=.784313725,b=.917647059]
  \definecolor[b][white]
  \definecolor[c][darkred]
  \starttext
 
  \defineoverlay[bgoverlay][\uniqueMPgraphic{bg_top_shade}]
  \setupbackgrounds[page][background=bgoverlay]
  \startuniqueMPgraphic{bg_top_shade}
    test_shade(origin, origin shifted(0cm,1cm));
    draw fullcircle scaled 10cm shifted (0cm,0.25*\overlayheight) 
withcolor transparent(1,0.5,white) withpen pencircle scaled 2cm;

%%%%%%%% If you comment out the previous line the color rendering is 
definitelly different...

  \stopuniqueMPgraphic
 
  \input knuth
 
\stoptext

I have searched the ML without success, any idea ?

Regards,


Renaud
___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Color rendering & transparency with metapost
  2008-10-31 23:40 ` luigi scarso
@ 2008-11-01  1:06   ` Renaud Aubin
  2008-11-01  0:36     ` luigi scarso
  2008-11-01  1:11     ` Renaud Aubin
  0 siblings, 2 replies; 5+ messages in thread
From: Renaud Aubin @ 2008-11-01  1:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thank Luigi for your response,  the problem is that the background color 
rendering isn't the same if you comment out or not the following line : 
draw fullcircle scaled 10cm shifted (0cm,0.25*\overlayheight) withcolor 
transparent(1,0.5,white) withpen pencircle scaled 2cm;

After some experiments, the problem is solved ( hence not understood 
???) using rgb=no in setupcolors...

It's maybe a viewer-centric problem : I use acroread 8.1.2 under linux.

Renaud

luigi scarso a écrit :
>
> This is my test.
> Where is the problem ?
>
> minimals-beta
> Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 
> UTC 2008 i686 GNU/Linux
> This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown
> ConTeXt MtxRun | current version: 2008.10.31 13:58
>
>
>
> -- 
> 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://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>   

___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Color rendering & transparency with metapost
  2008-11-01  1:06   ` Renaud Aubin
  2008-11-01  0:36     ` luigi scarso
@ 2008-11-01  1:11     ` Renaud Aubin
  1 sibling, 0 replies; 5+ messages in thread
From: Renaud Aubin @ 2008-11-01  1:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I must add that I have defined the a color with cmyk.

Renaud Aubin a écrit :
> Thank Luigi for your response,  the problem is that the background color 
> rendering isn't the same if you comment out or not the following line : 
> draw fullcircle scaled 10cm shifted (0cm,0.25*\overlayheight) withcolor 
> transparent(1,0.5,white) withpen pencircle scaled 2cm;
>
> After some experiments, the problem is solved ( hence not understood 
> ???) using rgb=no in setupcolors...
>
> It's maybe a viewer-centric problem : I use acroread 8.1.2 under linux.
>
> Renaud
>
> luigi scarso a écrit :
>   
>> This is my test.
>> Where is the problem ?
>>
>> minimals-beta
>> Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 
>> UTC 2008 i686 GNU/Linux
>> This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown
>> ConTeXt MtxRun | current version: 2008.10.31 13:58
>>
>>
>>
>> -- 
>> 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://tex.aanhet.net
>> archive  : https://foundry.supelec.fr/projects/contextrev/
>> wiki     : http://contextgarden.net
>> ___________________________________________________________________________________
>>   
>>     
>
> ___________________________________________________________________________________
> 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://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>   

___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2008-11-01  1:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-01  0:38 Color rendering & transparency with metapost Renaud Aubin
2008-10-31 23:40 ` luigi scarso
2008-11-01  1:06   ` Renaud Aubin
2008-11-01  0:36     ` luigi scarso
2008-11-01  1:11     ` Renaud Aubin

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