ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Broken output with xetex
@ 2008-12-14  2:21 Diego Depaoli
  0 siblings, 0 replies; only message in thread
From: Diego Depaoli @ 2008-12-14  2:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users

What goes wrong with this code using xetex engine?
No issues with pdftex and luatex.

\setupcolors[state=start]
\definecolor[a][yellow]
\definecolor[b][s=.4]
\definecolor[c][darkyellow]
\definecolor[d][green]
\definecolor[e][s=.4]
\definecolor[f][darkgreen]
\defineoverlay[my shade][\uniqueMPgraphic{MyShade}]
\defineoverlay[circular shade][\uniqueMPgraphic{CircularShade}]
\defineoverlay[linear shade] [\uniqueMPgraphic{LinearShade}]
\startuniqueMPgraphic{LinearShade}
  path p ;
  p := unitsquare xscaled \overlaywidth yscaled \overlayheight ;
  linear_shade(p,0,\MPcolor{a},\MPcolor{b});
\stopuniqueMPgraphic
\startuniqueMPgraphic{CircularShade}
  path p ;
  p := unitsquare xscaled \overlaywidth yscaled \overlayheight ;
  circular_shade(p,2,\MPcolor{a},\MPcolor{b}) ;
  \stopuniqueMPgraphic
  \startuniqueMPgraphic{MyShade}
  path p ;
  p := unitsquare xscaled \overlaywidth yscaled \overlayheight ;
circular_shade(p,3,\MPcolor{f},\MPcolor{e}) ;
\stopuniqueMPgraphic
\starttext
\framed[background=circular shade]
{frame 1}
\framed[background=linear shade]
{frame 2}
\framed[background=my shade]
{frame 3}
\stoptext

Cheers
-- 
Diego Depaoli
___________________________________________________________________________________
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] only message in thread

only message in thread, other threads:[~2008-12-14  2:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-14  2:21 Broken output with xetex Diego Depaoli

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